473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2htmls and 2javascripts

Hi,

im newby in JScript and i have a problem with passing events from one html
to another...

For example,

in x.html i have following jscript event

function Event1{
....some code...
}

and in y.html i have following jscript event

function Event2{
....some other code...
}

and i want to place in Event2 (in y.html) in "...some other code..." some
code/function to fire Event1 (in x.html)..

but i dont know how :(

Please help me...
Apr 21 '06 #1
5 937
Green Horn wrote:
Hi,

im newby in JScript and i have a problem with passing events from one html
to another...

For example,

in x.html i have following jscript event

function Event1{
....some code...
}

and in y.html i have following jscript event

function Event2{
....some other code...
}

and i want to place in Event2 (in y.html) in "...some other code..." some
code/function to fire Event1 (in x.html)..

but i dont know how :(

You can't, unless the two HTML pages are contained within frames in the
same page.

Once a new HTML page is loaded, all scripts associated with the current
page are lost.

--
Ian Collins.
Apr 21 '06 #2
You can't, unless the two HTML pages are contained within frames in the
same page.


Yes, they are contained within frames in the same page:)
Please, help...
Apr 21 '06 #3
Green Horn said the following on 4/21/2006 1:50 AM:
Hi,

im newby in JScript and i have a problem with passing events from one html
to another...


You are also a newbe to Usenet. Do not multi-post but rather cross-post.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #4
hm... someone is very smart.. and it isnt me...

but someone is also newbe in being polite... and, again, it is not me...

NHF ;-)

P.S. i am also newbe in english language....
"Randy Webb" <Hi************@aol.com> wrote in message
news:AY********************@comcast.com...
Green Horn said the following on 4/21/2006 1:50 AM:
Hi,

im newby in JScript and i have a problem with passing events from one
html to another...


You are also a newbe to Usenet. Do not multi-post but rather cross-post.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Apr 21 '06 #5
Green Horn said the following on 4/21/2006 8:38 AM:

<top posting corrected>
"Randy Webb" <Hi************@aol.com> wrote in message
news:AY********************@comcast.com...
Green Horn said the following on 4/21/2006 1:50 AM:
Hi,

im newby in JScript and i have a problem with passing events from one
html to another...
You are also a newbe to Usenet. Do not multi-post but rather cross-post.
hm... someone is very smart.. and it isnt me...


You asked this same question in microsoft.public.scripting.jscript and
it was multi-posted. The difference it makes is that if someone answers
a cross-post then everybody reads it. If it is multi-posted then the
answer doesn't get posted to all the relevant groups.
but someone is also newbe in being polite... and, again, it is not me...
Polite is for politicians.
P.S. i am also newbe in english language....


Nothing wrong with that.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.