Hi,
I want to run some simple javascript when the page loads. So I added an onload attribute to the body element with my call. However it seems that this never makes it to the browser...I assume something in the epilogue removes it. What is the correct way to get some code to run onload using ops3.0? Dave -- 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 |
David,
You can use the Yahoo library. Just add YAHOO.util.Event.addListener(window, "load", MyFunction); in the xhtml:script section since yahoo.js is included with ops. I don't know for the 3.0 version. But it works with 3.5M1. -- Marc David Sinclair a écrit : > Hi, > > I want to run some simple javascript when the page loads. > > So I added an onload attribute to the body element with my call. > However it seems that this never makes it to the browser...I assume > something in the epilogue removes it. What is the correct way to get > some code to run onload using ops3.0? > > Dave > >------------------------------------------------------------------------ > > >-- >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 |
Thanks Marc,
I will give this a go. Dave marc wrote: > David, > > You can use the Yahoo library. Just add > YAHOO.util.Event.addListener(window, "load", MyFunction); > in the xhtml:script section since yahoo.js is included with ops. > > I don't know for the 3.0 version. But it works with 3.5M1. > > ------------------------------------------------------------------------ > > > -- > 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 |
Administrator
|
Alternatively, you can do:
<xxforms:script ev:event="xforms-ready"> ... some JavaScript ... </xxforms:script> -Erik David Sinclair wrote: > Thanks Marc, > > I will give this a go. > > Dave > > marc wrote: >> David, >> >> You can use the Yahoo library. Just add >> YAHOO.util.Event.addListener(window, "load", MyFunction); >> in the xhtml:script section since yahoo.js is included with ops. >> >> I don't know for the 3.0 version. But it works with 3.5M1. -- 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 |
Of course Erik, It's the solution for the 3.5M1 version of OPS.
The other one can be applied in earlier version with the yahoo.js. HTH, -- Marc Erik Bruchez a écrit : > Alternatively, you can do: > > <xxforms:script ev:event="xforms-ready"> > ... some JavaScript ... > </xxforms:script> > > -Erik > > David Sinclair wrote: > > Thanks Marc, > > > > I will give this a go. > > > > Dave > > > > marc wrote: > >> David, > >> > >> You can use the Yahoo library. Just add > >> YAHOO.util.Event.addListener(window, "load", MyFunction); > >> in the xhtml:script section since yahoo.js is included with ops. > >> > >> I don't know for the 3.0 version. But it works with 3.5M1. > >------------------------------------------------------------------------ > > >-- >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 |
Free forum by Nabble | Edit this page |