javascript error

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

javascript error

pnaveas
Hi,
I'm getting an unusual error after submitting the xform:

<xforms:submit xhtml:id="list" xxforms:appearance="link" xhtml:onclick="parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';">
        <xforms:label><xsl:value-of select="document($lang-file)/root/CMS_LIST"/></xforms:label>
        <xforms:setvalue ref="action">list</xforms:setvalue>
</xforms:submit>

First two times, there is no problem at all and submission is successfull. The third one, IE throws the "invalid syntax" javascript error, pointing to the html line (the presentation server generated html):

<a href="/XtendDev/cms/blockTemplate/listBlockTemplates" onclick="document.forms['wsrp_rewrite_form_1'].target='cmsMain';parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible'; ; document.getElementById('wsrp_rewrite_action_1').name += '$action^setvalue%26node-ids%26%2BU1DDPa8DoM%3D%26content%26delete';                         document.forms['wsrp_rewrite_form_1'].submit();                         event.returnValue=false;                         return false">Baja</a>

I've been checking over and over, and I can't figure it out... same html, different behaviour.
Any help will be greatly appreciated.
Best regards,
PAblo.



--
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 error

pnaveas
[hidden email] escribi?:

>Hi,
>I'm getting an unusual error after submitting the xform:
>
><xforms:submit xhtml:id="list" xxforms:appearance="link" xhtml:onclick="parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';">
> <xforms:label><xsl:value-of select="document($lang-file)/root/CMS_LIST"/></xforms:label>
> <xforms:setvalue ref="action">list</xforms:setvalue>
></xforms:submit>
>
>First two times, there is no problem at all and submission is successfull. The third one, IE throws the "invalid syntax" javascript error, pointing to the html line (the presentation server generated html):
>
><a href="/XtendDev/cms/blockTemplate/listBlockTemplates" onclick="document.forms['wsrp_rewrite_form_1'].target='cmsMain';parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible'; ; document.getElementById('wsrp_rewrite_action_1').name += '$action^setvalue%26node-ids%26%2BU1DDPa8DoM%3D%26content%26delete';                         document.forms['wsrp_rewrite_form_1'].submit();                         event.returnValue=false;                         return false">Baja</a>
>
>I've been checking over and over, and I can't figure it out... same html, different behaviour.
>Any help will be greatly appreciated.
>Best regards,
>PAblo.
>
>  
>
>------------------------------------------------------------------------
>
>
>--
>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
>  
>
I forgot to mention the xform submission method: GET (cannot use POST,
due to a UI issue...)
Best regards,
Pablo.


--
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

pnaveas.vcf (164 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: javascript error

Erik Bruchez
Administrator
Pablo Naveas Farias wrote:

> [hidden email] escribió:
>
>> Hi,
>> I'm getting an unusual error after submitting the xform:
>>
>> <xforms:submit xhtml:id="list" xxforms:appearance="link"
>> xhtml:onclick="parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';">
>>
>>     <xforms:label><xsl:value-of
>> select="document($lang-file)/root/CMS_LIST"/></xforms:label>
>>     <xforms:setvalue ref="action">list</xforms:setvalue>
>> </xforms:submit>
>>
>> First two times, there is no problem at all and submission is
>> successfull. The third one, IE throws the "invalid syntax" javascript
>> error, pointing to the html line (the presentation server generated
>> html):
>>
>> <a href="/XtendDev/cms/blockTemplate/listBlockTemplates"
>> onclick="document.forms['wsrp_rewrite_form_1'].target='cmsMain';parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';
>> ; document.getElementById('wsrp_rewrite_action_1').name +=
>> '$action^setvalue%26node-ids%26%2BU1DDPa8DoM%3D%26content%26delete';                        
>> document.forms['wsrp_rewrite_form_1'].submit();                        
>> event.returnValue=false;                         return false">Baja</a>
>>
>> I've been checking over and over, and I can't figure it out... same
>> html, different behaviour. Any help will be greatly appreciated.
One question about this: with XForms NG, your <xforms:submit> should
have a @submission attribute referring to an <xforms:submission>
element. So I conclude that you are using the legacy XForms engine,
which does not support the XForms GET submission method. The generated
HTML also supports this conclusion. So how do you do a GET?

Related to that, can you check the lenght of the generated GET URL?
Trying with a "real" browser ;-), like Firefox, do you find the same
problem?

-Erik



--
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 error

pnaveas
Erik Bruchez escribi?:

> Pablo Naveas Farias wrote:
>
>> [hidden email] escribi?:
>>
>>> Hi,
>>> I'm getting an unusual error after submitting the xform:
>>>
>>> <xforms:submit xhtml:id="list" xxforms:appearance="link"
>>> xhtml:onclick="parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';">
>>>
>>>     <xforms:label><xsl:value-of
>>> select="document($lang-file)/root/CMS_LIST"/></xforms:label>
>>>     <xforms:setvalue ref="action">list</xforms:setvalue>
>>> </xforms:submit>
>>>
>>> First two times, there is no problem at all and submission is
>>> successfull. The third one, IE throws the "invalid syntax"
>>> javascript error, pointing to the html line (the presentation server
>>> generated html):
>>>
>>> <a href="/XtendDev/cms/blockTemplate/listBlockTemplates"
>>> onclick="document.forms['wsrp_rewrite_form_1'].target='cmsMain';parent.frames['cmsBottom'].document.getElementById('working').style.visibility='visible';
>>> ; document.getElementById('wsrp_rewrite_action_1').name +=
>>> '$action^setvalue%26node-ids%26%2BU1DDPa8DoM%3D%26content%26delete';                        
>>> document.forms['wsrp_rewrite_form_1'].submit();                        
>>> event.returnValue=false;                         return false">Baja</a>
>>>
>>> I've been checking over and over, and I can't figure it out... same
>>> html, different behaviour. Any help will be greatly appreciated.
>>
>
> One question about this: with XForms NG, your <xforms:submit> should
> have a @submission attribute referring to an <xforms:submission>
> element. So I conclude that you are using the legacy XForms engine,
> which does not support the XForms GET submission method. The generated
> HTML also supports this conclusion. So how do you do a GET?
>
> Related to that, can you check the lenght of the generated GET URL?
> Trying with a "real" browser ;-), like Firefox, do you find the same
> problem?
>
> -Erik
>
>------------------------------------------------------------------------
>
>
>--
>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
>  
>
Thanks for your reply; I cannot use Firefox because I have some Active X
running...
I'll try to migrate to XForms NG ...
Best Regards,
Pablo.


--
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

pnaveas.vcf (164 bytes) Download Attachment