We are trying to get Orbeon working within Vignette 7.2 on Weblogic 8.1. It mostly works except that the init javascript seems not to run. Attached is the example calculator app (we have cropped out the portal part).
The $xforms-template-label$ is found in the xforms.js, which does not seem to fire, even when force-loaded by editing the template. Does anyone have an idea why the javascript does not seem to be correct, and how to fix it? Thanks in advance. orbeon_bad_js_example.JPG |
Administrator
|
Do you get a JavaScript error? If so, try the following:
* Use Orbeon Forms 3.7.1 * Run Firefox with the Firebug extension * Set properties as in: http://wiki.orbeon.com/forms/doc/contributor-guide/javascript-development Then use the Firebug debugger to see where the error occurs. If you do not get a JS error, try the Firebug Net tab to see if the xforms*.js was loaded properly. -Erik On May 28, 2009, at 3:33 PM, aidannyc wrote: > > We are trying to get Orbeon working within Vignette 7.2 on Weblogic > 8.1. It > mostly works except that the init javascript seems not to run. > Attached is > the example calculator app (we have cropped out the portal part). > > The $xforms-template-label$ is found in the xforms.js, which does > not seem > to fire, even when force-loaded by editing the template. > > Does anyone have an idea why the javascript does not seem to be > correct, and > how to fix it? Thanks in advance. > > http://www.nabble.com/file/p23771335/orbeon_bad_js_example.JPG > orbeon_bad_js_example.JPG > -- > View this message in context: http://www.nabble.com/Broken-Javascript--tp23771335p23771335.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I have done as suggested. The result is that I now get many downloaded script files from yui and the xforms.js instead of the single one previously. Unfortunately, no javascript error is produced on page load (although there are many warnings as happens on most web pages). I notice in the xforms.js script that a function named "handleResponseDom" is added at page load to the ORBEON.xforms.Server object, and this function replaces the $xforms-template-label$ reference. But I cannot find anywhere where this is called. I am using the new 3.7.1 developer build, which works perfectly fine as a war in Tomcat. My problem is in getting it to work in a Vignette Portal on Weblogic. I am presuming that Orbeon works fine except for the context I am putting it into, and I am hoping that if I can figure out what is failing, I can find a work-around. Any help is gratefully appreciated. -Aidan
|
Administrator
|
Aidan,
There is probably something not working during initialization, which takes place in ORBEON.xforms.Init.document. Search for the line containing "document: function() {" in xforms.js, and then debug from there to see if something wrong happens. It might not be trivial for you to do that, but we probably can't help much more beyond simple guidance (outside of support) since we do not have Vignette experience. -Erik On Jun 1, 2009, at 2:16 PM, aidannyc wrote: > > > I have done as suggested. The result is that I now get many downloaded > script files from yui and the xforms.js instead of the single one > previously. Unfortunately, no javascript error is produced on page > load > (although there are many warnings as happens on most web pages). > > I notice in the xforms.js script that a function named > "handleResponseDom" > is added at page load to the ORBEON.xforms.Server object, and this > function > replaces the $xforms-template-label$ reference. But I cannot find > anywhere > where this is called. > > I am using the new 3.7.1 developer build, which works perfectly fine > as a > war in Tomcat. My problem is in getting it to work in a Vignette > Portal on > Weblogic. I am presuming that Orbeon works fine except for the > context I am > putting it into, and I am hoping that if I can figure out what is > failing, I > can find a work-around. > > Any help is gratefully appreciated. > > -Aidan > > > > Erik Bruchez wrote: >> >> Do you get a JavaScript error? If so, try the following: >> >> * Use Orbeon Forms 3.7.1 >> * Run Firefox with the Firebug extension >> * Set properties as in: >> http://wiki.orbeon.com/forms/doc/contributor-guide/javascript-development >> >> Then use the Firebug debugger to see where the error occurs. >> >> If you do not get a JS error, try the Firebug Net tab to see if the >> xforms*.js was loaded properly. >> >> -Erik >> >> On May 28, 2009, at 3:33 PM, aidannyc wrote: >> >>> >>> We are trying to get Orbeon working within Vignette 7.2 on Weblogic >>> 8.1. It >>> mostly works except that the init javascript seems not to run. >>> Attached is >>> the example calculator app (we have cropped out the portal part). >>> >>> The $xforms-template-label$ is found in the xforms.js, which does >>> not seem >>> to fire, even when force-loaded by editing the template. >>> >>> Does anyone have an idea why the javascript does not seem to be >>> correct, and >>> how to fix it? Thanks in advance. >>> >>> http://www.nabble.com/file/p23771335/orbeon_bad_js_example.JPG >>> orbeon_bad_js_example.JPG >>> -- >>> View this message in context: >>> http://www.nabble.com/Broken-Javascript--tp23771335p23771335.html >>> Sent from the ObjectWeb OPS - Users mailing list archive at >>> Nabble.com. >>> >>> >>> -- >>> 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 >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> >> >> -- >> 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 >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > -- > View this message in context: http://www.nabble.com/Broken-Javascript--tp23771335p23822357.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Thank you for replying, but we gave up on Orbeon
and built a custom solution. From: Erik Bruchez
(via Nabble) [mailto:[hidden email]] Aidan,
-- View message @ http://n4.nabble.com/Broken-Javascript-tp43879p43882.html
|
Free forum by Nabble | Edit this page |