|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
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 URLpener.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 |
|
#2
|
|||
|
|||
|
Put the script in one of the pages that loads in the frames. In the new window reference it as such.
window.opener.parent.framename.timer(); "framename" will be the name you assigned to the frame the script resides in. Spookster |
|
#3
|
|||
|
|||
|
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.
<SCRIPT src="myfile.js"></SCRIPT> Russ [This message has been edited by rkmarcks (edited June 15, 2000).] |
|
#4
|
|||
|
|||
|
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! splendid bob |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Ive dug myself a hole of javascript trickiness |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|