JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 13th, 2000, 07:18 PM
splendid bob splendid bob is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 splendid bob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old June 14th, 2000, 09:34 PM
Spookster Spookster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Posts: 84 Spookster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
  #3  
Old June 15th, 2000, 01:18 AM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
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).]

Reply With Quote
  #4  
Old June 15th, 2000, 07:53 AM
splendid bob splendid bob is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 splendid bob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Ive dug myself a hole of javascript trickiness


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT