How to make onload event enable!

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

How to make onload event enable!

Zhou, Kevin
 


Hi Erik

I just get a nightly build on 8 August. After finishing immigrating my
application into new version, the onload event does not working well.

Because my application are running as the ops portlets.So all the time
my solution is add a line of code at the bottom of my JS file,such as

xformsAddEventListener(window, "load", Initialise);

Initialise is that function which is invoked when you go to the page.

It could work well in my last ops version ops-20060428-liferay,but then
now it couldn't. So if there is some modification about that issue.

Thanks for your always help .



Cheers


Kevin Cheng
Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756471
Fax: +44 (0) 1372 750000
E-mail: [hidden email]

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.



--
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: How to make onload event enable!

Zhou, Kevin
 


Hi Erik

I found some codes as followed in the theme.xsl
<xhtml:body>
                <!-- Copy attributes -->
                <xsl:apply-templates
select="/xhtml:html/xhtml:body/@*"/>
                <!-- Handle optional tabs -->
                <xsl:apply-templates
select="/xhtml:html/xhtml:head/f:tabs"/>
                <xsl:apply-templates
select="/xhtml:html/xhtml:body/node()"/>
                <!-- Template for alert messages -->
                <!-- Handle onload handler -->
<-----&&&&&&&&&&&&&&& Look at here
</xhtml:body>


If it means that something about onload is processing. I am not sure it.
Hope it is.

Cheers

Kevin Cheng
Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756471
Fax: +44 (0) 1372 750000
E-mail: [hidden email]

www.atkinsglobal.com/its


-----Original Message-----
From: Zhou, Kevin [mailto:[hidden email]]
Sent: 09 August 2006 14:53
To: [hidden email]
Subject: [ops-users] How to make onload event enable!

 


Hi Erik

I just get a nightly build on 8 August. After finishing immigrating my
application into new version, the onload event does not working well.

Because my application are running as the ops portlets.So all the time
my solution is add a line of code at the bottom of my JS file,such as

xformsAddEventListener(window, "load", Initialise);

Initialise is that function which is invoked when you go to the page.

It could work well in my last ops version ops-20060428-liferay,but then
now it couldn't. So if there is some modification about that issue.

Thanks for your always help .



Cheers


Kevin Cheng
Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756471
Fax: +44 (0) 1372 750000
E-mail: [hidden email]

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding.



This message has been scanned for viruses by MailControl - (see
http://bluepages.wsatkins.co.uk/?4318150)



--
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: How to make onload event enable!

Erik Bruchez
Administrator
Kevin, I don't see any "Handle onload handler" string in my theme.xsl.

-Erik

Zhou, Kevin wrote:

>  
>
>
> Hi Erik
>
> I found some codes as followed in the theme.xsl
> <xhtml:body>
>                 <!-- Copy attributes -->
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:body/@*"/>
>                 <!-- Handle optional tabs -->
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:head/f:tabs"/>
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:body/node()"/>
>                 <!-- Template for alert messages -->
>                 <!-- Handle onload handler -->
> <-----&&&&&&&&&&&&&&& Look at here
> </xhtml:body>
>
>
> If it means that something about onload is processing. I am not sure it.
> Hope it is.
>
> Cheers
>
> Kevin Cheng
> Information Solutions Consultancy
> Intelligent Transport Systems
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
> Tel: +44 (0) 1372 756471
> Fax: +44 (0) 1372 750000
> E-mail: [hidden email]
>
> www.atkinsglobal.com/its
>
>
> -----Original Message-----
> From: Zhou, Kevin [mailto:[hidden email]]
> Sent: 09 August 2006 14:53
> To: [hidden email]
> Subject: [ops-users] How to make onload event enable!
>
>  
>
>
> Hi Erik
>
> I just get a nightly build on 8 August. After finishing immigrating my
> application into new version, the onload event does not working well.
>
> Because my application are running as the ops portlets.So all the time
> my solution is add a line of code at the bottom of my JS file,such as
>
> xformsAddEventListener(window, "load", Initialise);
>
> Initialise is that function which is invoked when you go to the page.
>
> It could work well in my last ops version ops-20060428-liferay,but then
> now it couldn't. So if there is some modification about that issue.
>
> Thanks for your always help .
>
>
>
> Cheers
>
>
> Kevin Cheng
> Information Solutions Consultancy
> Intelligent Transport Systems
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
> Tel: +44 (0) 1372 756471
> Fax: +44 (0) 1372 750000
> E-mail: [hidden email]
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright
> protected. If you are not the addressee, any dissemination of this
> communication is strictly prohibited. Unless otherwise expressly agreed
> in writing, nothing stated in this communication shall be legally
> binding.
>
>
>
> This message has been scanned for viruses by MailControl - (see
> http://bluepages.wsatkins.co.uk/?4318150)
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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: How to make onload event enable!

Zhou, Kevin
In reply to this post by Zhou, Kevin
 


Hi Erik

I check again, it's my mistakes for that string. So sorry I am.

And currently how can I make onload event activated? Thanks for your
good help.

Cheers


Kevin Cheng
Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756471
Fax: +44 (0) 1372 750000
E-mail: [hidden email]

www.atkinsglobal.com/its


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 09 August 2006 16:24
To: [hidden email]
Subject: Re: [ops-users] How to make onload event enable!

Kevin, I don't see any "Handle onload handler" string in my theme.xsl.

-Erik

Zhou, Kevin wrote:

>  
>
>
> Hi Erik
>
> I found some codes as followed in the theme.xsl <xhtml:body>
>                 <!-- Copy attributes -->
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:body/@*"/>
>                 <!-- Handle optional tabs -->
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:head/f:tabs"/>
>                 <xsl:apply-templates
> select="/xhtml:html/xhtml:body/node()"/>
>                 <!-- Template for alert messages -->
>                 <!-- Handle onload handler --> <-----&&&&&&&&&&&&&&&
> Look at here </xhtml:body>
>
>
> If it means that something about onload is processing. I am not sure
it.

> Hope it is.
>
> Cheers
>
> Kevin Cheng
> Information Solutions Consultancy
> Intelligent Transport Systems
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
> Tel: +44 (0) 1372 756471
> Fax: +44 (0) 1372 750000
> E-mail: [hidden email]
>
> www.atkinsglobal.com/its
>
>
> -----Original Message-----
> From: Zhou, Kevin [mailto:[hidden email]]
> Sent: 09 August 2006 14:53
> To: [hidden email]
> Subject: [ops-users] How to make onload event enable!
>
>  
>
>
> Hi Erik
>
> I just get a nightly build on 8 August. After finishing immigrating my
> application into new version, the onload event does not working well.
>
> Because my application are running as the ops portlets.So all the time
> my solution is add a line of code at the bottom of my JS file,such as
>
> xformsAddEventListener(window, "load", Initialise);
>
> Initialise is that function which is invoked when you go to the page.
>
> It could work well in my last ops version ops-20060428-liferay,but
then

> now it couldn't. So if there is some modification about that issue.
>
> Thanks for your always help .
>
>
>
> Cheers
>
>
> Kevin Cheng
> Information Solutions Consultancy
> Intelligent Transport Systems
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
> Tel: +44 (0) 1372 756471
> Fax: +44 (0) 1372 750000
> E-mail: [hidden email]
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright
> protected. If you are not the addressee, any dissemination of this
> communication is strictly prohibited. Unless otherwise expressly
agreed

> in writing, nothing stated in this communication shall be legally
> binding.
>
>
>
> This message has been scanned for viruses by MailControl - (see
> http://bluepages.wsatkins.co.uk/?4318150)
>
>
>
>
------------------------------------------------------------------------
>
>
> --
> 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: How to make onload event enable!

Alessandro  Vernet
Administrator
In reply to this post by Zhou, Kevin
On 8/9/06, Zhou, Kevin <[hidden email]> wrote:
> Because my application are running as the ops portlets.So all the time
> my solution is add a line of code at the bottom of my JS file,such as
>
> xformsAddEventListener(window, "load", Initialise);
>

Kevin,

The function xformsAddEventListener does not exist anymore. Instead,
you should call:

YAHOO.util.Event.addListener(window, "load", Initialise);

You don't need to change what you are passing to the function. For
more information on that function, see:
http://developer.yahoo.com/yui/event/

Alex
--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet