I have a dynamic xform for user registration. Everything works fine
except that after the new user I always see the following javascript error message and form is no longer alive. Error: [Exception... "'Cannot find element #7 with class 'xforms-repeat-delimiter' after element with id 'repeat-begin-xforms-element-22'' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] This happens when a user successfully registers which means the XForm instance goes from 7 elements (username, first, last, email, email2, password and password2) down to 4 (username, first, last, email). The code is based on the Orbeon sample user registration and uses a <xforms:repeat nodeset="*"> Any suggestion? thanks *P -- 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
|
Pascal,
It's hard to say with just that exception. We would need to have an example that we can run in the XForms sandbox to be able to pinpoint the source of the problem. If you can create one, we'll have a look at it! Alex On 3/24/06, Pascal Heus <[hidden email]> wrote: > I have a dynamic xform for user registration. Everything works fine > except that after the new user I always see the following javascript > error message and form is no longer alive. > > Error: [Exception... "'Cannot find element #7 with class > 'xforms-repeat-delimiter' after element with id > 'repeat-begin-xforms-element-22'' when calling method: > [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e > (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] > > This happens when a user successfully registers which means the XForm > instance goes from 7 elements (username, first, last, email, email2, > password and password2) down to 4 (username, first, last, email). The > code is based on the Orbeon sample user registration and uses a > <xforms:repeat nodeset="*"> > Any suggestion? > > thanks > *P > > > > > -- > 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 |
Alex:
I have not been able to reproduce this in a sandbox or stand alone environment but it seems to be related to autocomplete. I received a tip from another user who experienced the same issue and noticed that setting autcomplete to "off" fixed the problem:
all the best, <p/> Alessandro Vernet wrote: Pascal, It's hard to say with just that exception. We would need to have an example that we can run in the XForms sandbox to be able to pinpoint the source of the problem. If you can create one, we'll have a look at it! Alex On 3/24/06, Pascal Heus [hidden email] wrote:I have a dynamic xform for user registration. Everything works fine except that after the new user I always see the following javascript error message and form is no longer alive. Error: [Exception... "'Cannot find element #7 with class 'xforms-repeat-delimiter' after element with id 'repeat-begin-xforms-element-22'' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] This happens when a user successfully registers which means the XForm instance goes from 7 elements (username, first, last, email, email2, password and password2) down to 4 (username, first, last, email). The code is based on the Orbeon sample user registration and uses a <xforms:repeat nodeset="*"> Any suggestion? thanks *P -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] 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
|
Pascal,
The latest code now sets autocomplete="off" on the HTML <input> element. This seems a reasonable thing to do. -Erik Pascal Heus wrote: > Alex: > I have not been able to reproduce this in a sandbox or stand alone > environment but it seems to be related to autocomplete. > I received a tip from another user who experienced the same issue and > noticed that setting autcomplete to "off" fixed the problem: > > <input type="text" id="email_add" name="R_email" value="" maxlength="50" > size="40" > onKeypress="return Validate_NoCommas(event)" > onchange="Validate_checkEmail()" > > autocomplete="off" /> > > This seems to work for me as well. > all the best, > <p/> > > Alessandro Vernet wrote: >> Pascal, >> >> It's hard to say with just that exception. We would need to have an >> example that we can run in the XForms sandbox to be able to pinpoint >> the source of the problem. If you can create one, we'll have a look at >> it! >> >> Alex >> >> On 3/24/06, Pascal Heus <[hidden email]> wrote: >> >>> I have a dynamic xform for user registration. Everything works fine >>> except that after the new user I always see the following javascript >>> error message and form is no longer alive. >>> >>> Error: [Exception... "'Cannot find element #7 with class >>> 'xforms-repeat-delimiter' after element with id >>> 'repeat-begin-xforms-element-22'' when calling method: >>> [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e >>> (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] >>> >>> This happens when a user successfully registers which means the XForm >>> instance goes from 7 elements (username, first, last, email, email2, >>> password and password2) down to 4 (username, first, last, email). The >>> code is based on the Orbeon sample user registration and uses a >>> <xforms:repeat nodeset="*"> >>> Any suggestion? >>> >>> thanks >>> *P >>> >>> >>> >>> >>> -- >>> 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 >> > > > ------------------------------------------------------------------------ > > > -- > 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 -- Orbeon - XForms Everywhere: 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 |