2htmls and 2javascripts

G

Green Horn

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...
 
I

Ian Collins

Green said:
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.
 
G

Green Horn

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...
 
R

Randy Webb

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.
 
G

Green Horn

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....
 
R

Randy Webb

Green Horn said the following on 4/21/2006 8:38 AM:

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top