xforms-ready not working - Upgrade from 3.9 to 4.7

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

xforms-ready not working - Upgrade from 3.9 to 4.7

Obup-2
Hi,

We upgraded orbeon forms from 3.9 to 4.7. We are using a standalone war as specified here https://doc.orbeon.com/xforms/filter.html

xforms-ready event is not working. We have a xforms-ready action which is supposed to execute some javascript code on the client when page is ready. The code is given below which is present in our jsp. Please note that it was working fine in version 3.9

<xforms:action ev:event="xforms-ready">
              <xxforms:script>
                    var tablelist = document.getElementsByTagName("table");
                    for(var i=0 ; i &lt; tablelist.length ; i++){
                        if(tablelist[i].className == "tdGroup5 xforms-repeat-selected-item-2"){
                             tablelist[i].style.display = 'block';
                          }
                    if(tablelist[i].className == "tdGroup5"){
                          tablelist[i].style.display = 'block';
                        }
                    }
              </xxforms:script>
</xforms:action>   

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms-ready not working - Upgrade from 3.9 to 4.7

Alessandro  Vernet
Administrator
Hi Gopaalakrishnan,

Do you have a particular reason for upgrading to 4.7 instead of 2017.2? I'm
asking as here on the community, we can only help with issues happening with
latest version of Orbeon Forms. (If you can't update to 2017.2, maybe you
can try doing this with 2017.2, and if you still have this problem with that
version post about it here, along with a minimal test case.)

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xforms-ready not working - Upgrade from 3.9 to 4.7

Alessandro  Vernet
Administrator
Hi Gopaalakrishnan, did you get the solve the issue you were having with
`xforms-ready`? If not, and if still current, do the comments in my previous
message help? -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xforms-ready not working - Upgrade from 3.9 to 4.7

Obup-2
Hi,

Sorry that I missed your first reply. The issue was not related to the xforms-ready. It works fine as expected. I ll explain the scenario which might help others.

We upgraded from 3.9 to 2017.2 but due to xf:submission returning 404 we have to upgrade to 4.7 instead of 2017.2 because in 4.7 submission is working fine with our existing code.

Initially xf:dispatch and xforms-ready were not working. We had these codes (xforms actions used for dispatch and xforms-ready) in a jsp file and this file was included in the parent jsp file. The included jsp file contained <html> tag within which the xforms action was declared for dispatch and xforms-ready. This was working fine in 3.9. In 4.7 or 2017.2 this didn't work. The reason was found to be presence of <html> tag with xmlns attributes in the include file. We removed the <html> tag and then xf:dispatch & xforms-ready worked as expected.

On Friday, June 8, 2018 at 6:54:22 AM UTC+5:30, Alessandro Vernet wrote:
Hi Gopaalakrishnan, did you get the solve the issue you were having with
`xforms-ready`? If not, and if still current, do the comments in my previous
message help? -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: xforms-ready not working - Upgrade from 3.9 to 4.7

Alessandro  Vernet
Administrator
Hi Gopaalakrishnan,

I'm glad you solved this issue, and we will continue the discussion in the
other thread about the 404, and hopefully solve it so can upgrade to 2017.2.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet