JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 September 18th, 2001, 10:50 AM
H@voc_!nc.'s Avatar
H@voc_!nc. H@voc_!nc. is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Belgium
Posts: 39 H@voc_!nc. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 48 sec
Reputation Power: 12
Send a message via ICQ to H@voc_!nc.
JavaScript problem in Netscape

//***************************************************
//this only works in IExplorer

function refresh(){
clearInterval(tmrRefresh);
document.location.reload;

}

function logout(){
window.parent.frames["fraMain"].location = "../login.php?logout=";
tmrRefresh = setInterval("refresh()",20);

}
function login(){
window.parent.frames["fraMain"].location = "../login.php";
tmrRefresh = setInterval("refresh()",20);

}

//**************************************************
This works fine in IE but the page keeps reloading in Netscape...

I've tried every variant I know off (history.go(0),history.reload,setTimeOut,...)

Reply With Quote
  #2  
Old September 18th, 2001, 01:37 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,157 pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 h 23 m 35 sec
Reputation Power: 36
Please provide this code in context (a few URLs would be ideal) so we can see how these functions are being called.
__________________
Michael

Reply With Quote
  #3  
Old September 18th, 2001, 04:28 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 15
Not sure I follow the logic of exactly what you're trying to do, but a couple of obvious things:

1) Why set an interval only to clear it immediately? setTimeout (notice the intercapitalization) was designed for run-once timers

2) reload() is a function - don't forget the parentheses

3) Are you declaring tmrRefresh globally (or, alternately, window.tmrRefresh) ? A variable local to the 'launcher' function dies when it does

Also, there's no document.location property (it's a synonym for document.URL) and it doesn't have a reload() method. You presumably want the window.location property.

Last edited by adios : September 18th, 2001 at 04:36 PM.

Reply With Quote
  #4  
Old September 19th, 2001, 01:46 PM
H@voc_!nc.'s Avatar
H@voc_!nc. H@voc_!nc. is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Belgium
Posts: 39 H@voc_!nc. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 48 sec
Reputation Power: 12
Send a message via ICQ to H@voc_!nc.
http://havocinc.freephp.digiro.net
this is the URL
I've tried it with setTimeout too

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > JavaScript problem in Netscape

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap