Hi, I am using the nightly build of 3.0.beta3.200511110403. I have a link that calls java script. The java script pops
up a window and allows the user to choose something then the javascript sets
the value of an xforms input using the id. The xforms input is bound to an element in one of my
instances called displayString. displayString starts off being empty. Ok this bit all works fine. When the user picks something the
instance value displayString changes. I have another element in a different instance called readOnlyFlag.
Which has bind <xforms:bind nodeset="instance('tests')"> <xforms:bind nodeset="readOnlyFlag"
readonly="string(instance('UIData')/displayString) eq ''"
type="xs:string"/> </xforms:bind> and an input <xforms:input ref="instance('tests')/readOnlyFlag "> <xforms:label>test</xforms:label> </xforms:input> so the idea is that this element is readonly until the user
has picked something from the javascript provided window. This works OK in IE6 but not in firefox 1.5. What happens in firefox is that when you pick something new
from the javascript provided window the value in the input for displayString changes
but the input for readOnlyFlag is still read only. If I type something in the input for displayString and then
tab put of input then the readOnlyFlag input becomes not readonly as required. So it looks like under firefox when the value of displayString
is changed from javascript the code is not noticing the change and so not
reevaluating the bind for readOnlyFlag. any ideas ? Doug Doug Young Software Engineer Teleflex IT
+44 (0) 1506 407107 -- 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 Doug,
Would it be possible for you to put this code together in a single XHTML+XForms file that we can run in the XForms sandbox, so we can quickly reproduce the issue? Alex On 12/9/05, Doug Young <[hidden email]> wrote: > > > > Hi, > > I am using the nightly build of 3.0.beta3.200511110403. > > > > I have a link that calls java script. The java script pops up a window and > allows the user to choose something then the javascript sets the value of an > xforms input using the id. > > The xforms input is bound to an element in one of my instances called > displayString. displayString starts off being empty. > > Ok this bit all works fine. When the user picks something the instance value > displayString changes. > > > > I have another element in a different instance called readOnlyFlag. Which > has bind > > <xforms:bind nodeset="instance('tests')"> > > <xforms:bind nodeset="readOnlyFlag" > readonly="string(instance('UIData')/displayString) eq ''" > type="xs:string"/> > > </xforms:bind> > > > > and an input > > <xforms:input ref="instance('tests')/readOnlyFlag "> > > <xforms:label>test</xforms:label> > > </xforms:input> > > > > so the idea is that this element is readonly until the user has picked > something from the javascript provided window. > > > > This works OK in IE6 but not in firefox 1.5. > > > > What happens in firefox is that when you pick something new from the > javascript provided window the value in the input for displayString changes > but the input for readOnlyFlag is still read only. > > If I type something in the input for displayString and then tab put of input > then the readOnlyFlag input becomes not readonly as required. > > So it looks like under firefox when the value of displayString is changed > from javascript the code is not noticing the change and so not reevaluating > the bind for readOnlyFlag. > > > > > > any ideas ? > > > > Doug > > > > > > > > > > Doug Young > > Software Engineer > > > > Teleflex IT > > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > > +44 (0) 1506 407107 > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi,
I put the example together in an xhtml file but it does not run under the sandbox, I guess its because its got its own java script. However the xhtml file runs under the unstable build labeled 3.0.beta4.200512121407 ( I have also attached the page flow file). The problem I reported is still there, to see it do the following steps: go the page (note the update button is greyed out) click on the select profit center link, this invokes java script that sets the instance value summaryUnderPointInFinancialTreeID to 34 and since its bound to the select profit center input the value of 34 appears on the screen the next step does not work under firefox 1.5 only under IE 6 -- since summaryUnderPointInFinancialTreeID is used in a bind to determine if gotProfitCenterReadOnlyFlag is readonly and the update button is bound to gotProfitCenterReadOnlyFlag. So when summaryUnderPointInFinancialTreeID is set the update button becomes not readonly and so can be clicked. I am guessing that some event is not being fired under fiefox and so the OPS javascript does not reevaluate the readonly flag for the update button. regards Doug Doug Young Software Engineer Teleflex IT 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP +44 (0) 1506 407107 -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: 12 December 2005 09:56 To: [hidden email] Subject: Re: [ops-users] under firefox a readonly bind not being evaluated when instance data changed via javascipt Hi Doug, Would it be possible for you to put this code together in a single XHTML+XForms file that we can run in the XForms sandbox, so we can quickly reproduce the issue? Alex On 12/9/05, Doug Young <[hidden email]> wrote: > > > > Hi, > > I am using the nightly build of 3.0.beta3.200511110403. > > > > I have a link that calls java script. The java script pops up a window and > allows the user to choose something then the javascript sets the value of > xforms input using the id. > > The xforms input is bound to an element in one of my instances called > displayString. displayString starts off being empty. > > Ok this bit all works fine. When the user picks something the instance > displayString changes. > > > > I have another element in a different instance called readOnlyFlag. Which > has bind > > <xforms:bind nodeset="instance('tests')"> > > <xforms:bind nodeset="readOnlyFlag" > readonly="string(instance('UIData')/displayString) eq ''" > type="xs:string"/> > > </xforms:bind> > > > > and an input > > <xforms:input ref="instance('tests')/readOnlyFlag "> > > <xforms:label>test</xforms:label> > > </xforms:input> > > > > so the idea is that this element is readonly until the user has picked > something from the javascript provided window. > > > > This works OK in IE6 but not in firefox 1.5. > > > > What happens in firefox is that when you pick something new from the > javascript provided window the value in the input for displayString > but the input for readOnlyFlag is still read only. > > If I type something in the input for displayString and then tab put of > then the readOnlyFlag input becomes not readonly as required. > > So it looks like under firefox when the value of displayString is changed > from javascript the code is not noticing the change and so not reevaluating > the bind for readOnlyFlag. > > > > > > any ideas ? > > > > Doug > > > > > > > > > > Doug Young > > Software Engineer > > > > Teleflex IT > > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > > +44 (0) 1506 407107 > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 Doug,
1) In your code, you should just do document.getElementById('facilityID') instead of document.getElementsByName. Also you don't need to dispatch any event after setting the value. 2) There was a bug with Firefox and it is now fixed. See attached your modified code. The JS has been moved in the body so the example can be run in the sandbox. http://forge.objectweb.org/tracker/index.php?group_id=168&atid=350207 Alex On 12/12/05, Doug Young <[hidden email]> wrote: > Hi, > > I put the example together in an xhtml file but it does not run under the > sandbox, I guess its because its got its own java script. However the xhtml > file runs under the unstable build labeled 3.0.beta4.200512121407 ( I have > also attached the page flow file). The problem I reported is still there, to > see it do the following steps: > > go the page (note the update button is greyed out) > click on the select profit center link, this invokes java script that sets > the instance value summaryUnderPointInFinancialTreeID to 34 and since its > bound to the select profit center input the value of 34 appears on the > screen > the next step does not work under firefox 1.5 only under IE 6 -- since > summaryUnderPointInFinancialTreeID is used in a bind to determine if > gotProfitCenterReadOnlyFlag is readonly and the update button is bound to > gotProfitCenterReadOnlyFlag. So when summaryUnderPointInFinancialTreeID is > set the update button becomes not readonly and so can be clicked. > > I am guessing that some event is not being fired under fiefox and so the OPS > javascript does not reevaluate the readonly flag for the update button. > > regards > Doug > > > Doug Young > Software Engineer > > Teleflex IT > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > +44 (0) 1506 407107 > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > Vernet > Sent: 12 December 2005 09:56 > To: [hidden email] > Subject: Re: [ops-users] under firefox a readonly bind not being evaluated > when instance data changed via javascipt > > Hi Doug, > > Would it be possible for you to put this code together in a single > XHTML+XForms file that we can run in the XForms sandbox, so we can > quickly reproduce the issue? > > Alex > > On 12/9/05, Doug Young <[hidden email]> wrote: > > > > > > > > Hi, > > > > I am using the nightly build of 3.0.beta3.200511110403. > > > > > > > > I have a link that calls java script. The java script pops up a window and > > allows the user to choose something then the javascript sets the value of > an > > xforms input using the id. > > > > The xforms input is bound to an element in one of my instances called > > displayString. displayString starts off being empty. > > > > Ok this bit all works fine. When the user picks something the instance > value > > displayString changes. > > > > > > > > I have another element in a different instance called readOnlyFlag. Which > > has bind > > > > <xforms:bind nodeset="instance('tests')"> > > > > <xforms:bind nodeset="readOnlyFlag" > > readonly="string(instance('UIData')/displayString) eq ''" > > type="xs:string"/> > > > > </xforms:bind> > > > > > > > > and an input > > > > <xforms:input ref="instance('tests')/readOnlyFlag "> > > > > <xforms:label>test</xforms:label> > > > > </xforms:input> > > > > > > > > so the idea is that this element is readonly until the user has picked > > something from the javascript provided window. > > > > > > > > This works OK in IE6 but not in firefox 1.5. > > > > > > > > What happens in firefox is that when you pick something new from the > > javascript provided window the value in the input for displayString > changes > > but the input for readOnlyFlag is still read only. > > > > If I type something in the input for displayString and then tab put of > input > > then the readOnlyFlag input becomes not readonly as required. > > > > So it looks like under firefox when the value of displayString is changed > > from javascript the code is not noticing the change and so not > reevaluating > > the bind for readOnlyFlag. > > > > > > > > > > > > any ideas ? > > > > > > > > Doug > > > > > > > > > > > > > > > > > > > > Doug Young > > > > Software Engineer > > > > > > > > Teleflex IT > > > > 1 Michaelson Square > > Livingston > > West Lothian > > Scotland > > EH54 7DP > > > > > > +44 (0) 1506 407107 > > > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > -- > 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 > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 view2.xhtml (6K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks that's fixed it.
regards Doug Doug Young Software Engineer Teleflex IT 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP +44 (0) 1506 407107 -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: 05 January 2006 23:16 To: [hidden email] Subject: Re: [ops-users] under firefox a readonly bind not being evaluated when instance data changed via javascipt Hi Doug, 1) In your code, you should just do document.getElementById('facilityID') instead of document.getElementsByName. Also you don't need to dispatch any event after setting the value. 2) There was a bug with Firefox and it is now fixed. See attached your modified code. The JS has been moved in the body so the example can be run in the sandbox. http://forge.objectweb.org/tracker/index.php?group_id=168&atid=350207 Alex On 12/12/05, Doug Young <[hidden email]> wrote: > Hi, > > I put the example together in an xhtml file but it does not run under the > sandbox, I guess its because its got its own java script. However the xhtml > file runs under the unstable build labeled 3.0.beta4.200512121407 ( I have > also attached the page flow file). The problem I reported is still there, to > see it do the following steps: > > go the page (note the update button is greyed out) > click on the select profit center link, this invokes java script that sets > the instance value summaryUnderPointInFinancialTreeID to 34 and since its > bound to the select profit center input the value of 34 appears on the > screen > the next step does not work under firefox 1.5 only under IE 6 -- since > summaryUnderPointInFinancialTreeID is used in a bind to determine if > gotProfitCenterReadOnlyFlag is readonly and the update button is bound to > gotProfitCenterReadOnlyFlag. So when summaryUnderPointInFinancialTreeID is > set the update button becomes not readonly and so can be clicked. > > I am guessing that some event is not being fired under fiefox and so the > javascript does not reevaluate the readonly flag for the update button. > > regards > Doug > > > Doug Young > Software Engineer > > Teleflex IT > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > +44 (0) 1506 407107 > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > Vernet > Sent: 12 December 2005 09:56 > To: [hidden email] > Subject: Re: [ops-users] under firefox a readonly bind not being evaluated > when instance data changed via javascipt > > Hi Doug, > > Would it be possible for you to put this code together in a single > XHTML+XForms file that we can run in the XForms sandbox, so we can > quickly reproduce the issue? > > Alex > > On 12/9/05, Doug Young <[hidden email]> wrote: > > > > > > > > Hi, > > > > I am using the nightly build of 3.0.beta3.200511110403. > > > > > > > > I have a link that calls java script. The java script pops up a window > > allows the user to choose something then the javascript sets the value > an > > xforms input using the id. > > > > The xforms input is bound to an element in one of my instances called > > displayString. displayString starts off being empty. > > > > Ok this bit all works fine. When the user picks something the instance > value > > displayString changes. > > > > > > > > I have another element in a different instance called readOnlyFlag. > > has bind > > > > <xforms:bind nodeset="instance('tests')"> > > > > <xforms:bind nodeset="readOnlyFlag" > > readonly="string(instance('UIData')/displayString) eq ''" > > type="xs:string"/> > > > > </xforms:bind> > > > > > > > > and an input > > > > <xforms:input ref="instance('tests')/readOnlyFlag "> > > > > <xforms:label>test</xforms:label> > > > > </xforms:input> > > > > > > > > so the idea is that this element is readonly until the user has picked > > something from the javascript provided window. > > > > > > > > This works OK in IE6 but not in firefox 1.5. > > > > > > > > What happens in firefox is that when you pick something new from the > > javascript provided window the value in the input for displayString > changes > > but the input for readOnlyFlag is still read only. > > > > If I type something in the input for displayString and then tab put of > input > > then the readOnlyFlag input becomes not readonly as required. > > > > So it looks like under firefox when the value of displayString is > > from javascript the code is not noticing the change and so not > reevaluating > > the bind for readOnlyFlag. > > > > > > > > > > > > any ideas ? > > > > > > > > Doug > > > > > > > > > > > > > > > > > > > > Doug Young > > > > Software Engineer > > > > > > > > Teleflex IT > > > > 1 Michaelson Square > > Livingston > > West Lothian > > Scotland > > EH54 7DP > > > > > > +44 (0) 1506 407107 > > > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > -- > You receive this message as a subscriber of the [hidden email] > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 |
correction to link it should have been
http://forge.objectweb.org/tracker/index.php?func=detail&aid=304434&group_id =168&atid=350207 Doug Young Software Engineer Teleflex IT 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP +44 (0) 1506 407107 -----Original Message----- From: Doug Young [mailto:[hidden email]] Sent: 06 January 2006 16:20 To: [hidden email] Subject: RE: [ops-users] under firefox a readonly bind not being evaluated when instance data changed via javascipt Thanks that's fixed it. regards Doug Doug Young Software Engineer Teleflex IT 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP +44 (0) 1506 407107 -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: 05 January 2006 23:16 To: [hidden email] Subject: Re: [ops-users] under firefox a readonly bind not being evaluated when instance data changed via javascipt Hi Doug, 1) In your code, you should just do document.getElementById('facilityID') instead of document.getElementsByName. Also you don't need to dispatch any event after setting the value. 2) There was a bug with Firefox and it is now fixed. See attached your modified code. The JS has been moved in the body so the example can be run in the sandbox. http://forge.objectweb.org/tracker/index.php?group_id=168&atid=350207 Alex On 12/12/05, Doug Young <[hidden email]> wrote: > Hi, > > I put the example together in an xhtml file but it does not run under the > sandbox, I guess its because its got its own java script. However the xhtml > file runs under the unstable build labeled 3.0.beta4.200512121407 ( I have > also attached the page flow file). The problem I reported is still there, to > see it do the following steps: > > go the page (note the update button is greyed out) > click on the select profit center link, this invokes java script that sets > the instance value summaryUnderPointInFinancialTreeID to 34 and since its > bound to the select profit center input the value of 34 appears on the > screen > the next step does not work under firefox 1.5 only under IE 6 -- since > summaryUnderPointInFinancialTreeID is used in a bind to determine if > gotProfitCenterReadOnlyFlag is readonly and the update button is bound to > gotProfitCenterReadOnlyFlag. So when summaryUnderPointInFinancialTreeID is > set the update button becomes not readonly and so can be clicked. > > I am guessing that some event is not being fired under fiefox and so the > javascript does not reevaluate the readonly flag for the update button. > > regards > Doug > > > Doug Young > Software Engineer > > Teleflex IT > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > +44 (0) 1506 407107 > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > Vernet > Sent: 12 December 2005 09:56 > To: [hidden email] > Subject: Re: [ops-users] under firefox a readonly bind not being evaluated > when instance data changed via javascipt > > Hi Doug, > > Would it be possible for you to put this code together in a single > XHTML+XForms file that we can run in the XForms sandbox, so we can > quickly reproduce the issue? > > Alex > > On 12/9/05, Doug Young <[hidden email]> wrote: > > > > > > > > Hi, > > > > I am using the nightly build of 3.0.beta3.200511110403. > > > > > > > > I have a link that calls java script. The java script pops up a window > > allows the user to choose something then the javascript sets the value > an > > xforms input using the id. > > > > The xforms input is bound to an element in one of my instances called > > displayString. displayString starts off being empty. > > > > Ok this bit all works fine. When the user picks something the instance > value > > displayString changes. > > > > > > > > I have another element in a different instance called readOnlyFlag. > > has bind > > > > <xforms:bind nodeset="instance('tests')"> > > > > <xforms:bind nodeset="readOnlyFlag" > > readonly="string(instance('UIData')/displayString) eq ''" > > type="xs:string"/> > > > > </xforms:bind> > > > > > > > > and an input > > > > <xforms:input ref="instance('tests')/readOnlyFlag "> > > > > <xforms:label>test</xforms:label> > > > > </xforms:input> > > > > > > > > so the idea is that this element is readonly until the user has picked > > something from the javascript provided window. > > > > > > > > This works OK in IE6 but not in firefox 1.5. > > > > > > > > What happens in firefox is that when you pick something new from the > > javascript provided window the value in the input for displayString > changes > > but the input for readOnlyFlag is still read only. > > > > If I type something in the input for displayString and then tab put of > input > > then the readOnlyFlag input becomes not readonly as required. > > > > So it looks like under firefox when the value of displayString is > > from javascript the code is not noticing the change and so not > reevaluating > > the bind for readOnlyFlag. > > > > > > > > > > > > any ideas ? > > > > > > > > Doug > > > > > > > > > > > > > > > > > > > > Doug Young > > > > Software Engineer > > > > > > > > Teleflex IT > > > > 1 Michaelson Square > > Livingston > > West Lothian > > Scotland > > EH54 7DP > > > > > > +44 (0) 1506 407107 > > > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > -- > You receive this message as a subscriber of the [hidden email] > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 |