RE: Javascript exception in XForms

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Javascript exception in XForms

Stephen Bayliss
I'm getting something similar happening in the latest nightly builds

(I'm not sure exactly when the problem started, but it didn't happen in
some earlier build!)

In my case, I have nested xforms:repeat elements, within an
xforms:group, within xforms:case.

The following error occurs:
[Exception... "'Cannot find element with id
'repeat-begin-rowsrelsbody*1'' when calling method:
[nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

This happens when the nodeset that the repeat is binding to is empty
(which is valid -- in this case no rows returned from a search).

I've tried using <xforms:bind>; giving the bind an id, and using
<xforms:group bind="the-id", which all works find -- then using the
relevant attribute on the bind to try and disable that section, but I
get the same error.

Looks like some event is being kicked off which expects the controls to
be present, even though they are not as there are no nodes for them to
bind to.

Bit stuck as how to carry on debugging this!

Steve

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 26 April 2006 03:57
To: [hidden email]
Subject: Re: [ops-users] Javascript exception in XForms

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
Reply | Threaded
Open this post in threaded view
|

RE: Javascript exception in XForms

Stephen Bayliss
IGNORE!!!

My mistake, I wasn't running the build I thought I was running...

Steve

-----Original Message-----
From: Stephen Bayliss
Sent: 21 June 2006 11:41
To: [hidden email]
Subject: RE: [ops-users] Javascript exception in XForms

I'm getting something similar happening in the latest nightly builds

(I'm not sure exactly when the problem started, but it didn't happen in
some earlier build!)

In my case, I have nested xforms:repeat elements, within an
xforms:group, within xforms:case.

The following error occurs:
[Exception... "'Cannot find element with id
'repeat-begin-rowsrelsbody*1'' when calling method:
[nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

This happens when the nodeset that the repeat is binding to is empty
(which is valid -- in this case no rows returned from a search).

I've tried using <xforms:bind>; giving the bind an id, and using
<xforms:group bind="the-id", which all works find -- then using the
relevant attribute on the bind to try and disable that section, but I
get the same error.

Looks like some event is being kicked off which expects the controls to
be present, even though they are not as there are no nodes for them to
bind to.

Bit stuck as how to carry on debugging this!

Steve

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 26 April 2006 03:57
To: [hidden email]
Subject: Re: [ops-users] Javascript exception in XForms

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