|
hello im having trouble.
how can i call a method from ex: 1.html where the method ex: $%#()
is located in another webpage ex: 2.html
please help. i am very frustrated.
|
|
|
Sorry this is so late. I believe the pages must be related. This means that one page needs to have spawned the other page. Or both pages are children of a common parent window. For example, if you have a window (pageA.html) that opens a second window (pageB.html), pageB.html could have javascript that calls a javascript function in pageA.html:
self.opener.MyFunction();
Also, if a parent window opens 2 children windows, you can communicate between the 2 child windows through the parent window.
When dealing with framesets, which I haven`t in quite a long time, you can reference the frame`s object model. For example, you always have a window called "top" -- this is the browser`s default. So then if you have a frame called "left" and a frame called "right". The left frame can call a function in the right frame like so:
top.right.MyFunction()
There may be other options, but this is what I can offer from my experience.
|
|
|
|
|
|
|
|
|
|
|
|