June 13th, 2000, 08:18 PM
this is a bit of a complicated one.
My site has a frameset with two frames. One of the pages in one of these frames opens a new window. The user clicks on a button that calls a script located in the frameset document. - i have been calling this script with pener.timer();
- but the function will not run. (it does in fact run on my own pc, but not when i upload it to the server!!)
is this the correct way of calling this function, because i suspect that opener is the page that opened the window and not the parent frameset.
i tried putting the function in the page that does open the window and this didnt work either!
any help here would soothe my troubled brain.
splendid bob http://www.robertoates.inuk.com
June 14th, 2000, 10:34 PM
Put the script in one of the pages that loads in the frames. In the new window reference it as such.
"framename" will be the name you assigned to the frame the script resides in.
June 15th, 2000, 02:18 AM
Alternatively, save the script as a separate *.js file on the server (without any HTML tags) and call it from what ever page you desire.
[This message has been edited by rkmarcks (edited June 15, 2000).]
June 15th, 2000, 08:53 AM
thanks guys. as it turned out it was ok to call the fn as opener.timer(), the problem was actually elsewhere!
i didnt pick up on it because i had so much stuff going on - functions dotted about all over the place!