Hello. I'm using the upload control in my proyect. And I put a ID at the element, like that: <xforms:upload ref="instance('file-instance')/file" id="id-input-explorar">... But, when I see the code of the view the span element and de input element has the same id. Is not a important problem for me, but I think perhaps It's usefull for you. Thank you very much! Consigue el nuevo Windows Live Messenger Pruébalo -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi,
I don't reproduce this. The <span> has an id attribute, but the <input> has a name attribute and no id attribute. Is that what you see as well? -Erik aa aa wrote: > > Hello. > > I'm using the upload control in my proyect. And I put a ID at the > element, like that: > > <xforms:upload ref="instance('file-instance')/file" > id="id-input-explorar">... > > But, when I see the code of the view the span element and de input > element has the same id. > > Is not a important problem for me, but I think perhaps It's usefull for you. > > Thank you very much! Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by aa aa-2
Sorry, I wanted to say that the span have an id attribute and the input a name attribute, but that with the same name.
So I can't access to the input with document.getElementById, because there is two element with the same id. In other controls the span id is some like "id-span" but the input name is some like "input-id-span". > Date: Mon, 9 Jul 2007 15:28:06 +0200 > From: [hidden email] > To: [hidden email] > Subject: Re: [ops-users] xforms:upload ID > > Hi, > > I don't reproduce this. The <span> has an id attribute, but the <input> > has a name attribute and no id attribute. Is that what you see as well? > > -Erik > > aa aa wrote: > > > > Hello. > > > > I'm using the upload control in my proyect. And I put a ID at the > > element, like that: > > > > <xforms:upload ref="instance('file-instance')/file" > > id="id-input-explorar">... > > > > But, when I see the code of the view the span element and de input > > element has the same id. > > > > Is not a important problem for me, but I think perhaps It's usefull for you. > > > > Thank you very much! > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > Busca desde cualquier página Web con una protección excepcional. Consigue la Barra de herramientas de Windows Live hoy mismo GRATUITAMENTE. Pruébalo -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 7/9/07, aa aa <[hidden email]> wrote:
> Sorry, I wanted to say that the span have an id attribute and the input a > name attribute, but that with the same name. > > So I can't access to the input with document.getElementById, because there > is two element with the same id. > > In other controls the span id is some like "id-span" but the input name is > some like "input-id-span". It is fine in HTML to have an element with id="gaga" and another one with name="gaga". Name and ID are two different things. But you might be hitting a bug in IE where getElementById returns element with the ID you specified. If this is indeed the problem you are hitting, use instead: ORBEON.util.Dom.getElementById(...), which gets around this bug in IE. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by aa aa-2
Thank you again!
I'll used your getElementById implementation > Date: Mon, 9 Jul 2007 10:49:35 -0700 > From: [hidden email] > To: [hidden email] > Subject: Re: [ops-users] xforms:upload ID > > On 7/9/07, aa aa <[hidden email]> wrote: > > Sorry, I wanted to say that the span have an id attribute and the input a > > name attribute, but that with the same name. > > > > So I can't access to the input with document.getElementById, because there > > is two element with the same id. > > > > In other controls the span id is some like "id-span" but the input name is > > some like "input-id-span". > > It is fine in HTML to have an element with id="gaga" and another one > with name="gaga". Name and ID are two different things. But you might > be hitting a bug in IE where getElementById returns element with the > ID you specified. If this is indeed the problem you are hitting, use > instead: ORBEON.util.Dom.getElementById(...), which gets around this > bug in IE. > > Alex > -- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > http://www.orbeon.com/ > Consigue el nuevo Windows Live Messenger Pruébalo -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |