Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-21, 06:31pm
How do I update things
Subject: How do I update things  ·  Posted: 2004-01-16, 09:40pm
Rank: ? (16)
Member #: 5367
How can I Update some kind of object using
2 Frames?The Book said 1 have to be reloaded for every 3 or 1seconds,I know to reload one of the frames,but The Book saids that there's some kind of 'var' and 'parent.frame name'but
how can I make it 'write'the values from other frame?so if this can be success,I'll be making Games with
php(online).

ps:this book,I didn't see this book properly,because My parents didn't buy for me,so I saw this in book
store.


 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I update things  ·  Posted: 2004-01-16, 10:52pm
Rank: ? (2)
Member #: 13302
i would suggest you recommend this thread to be moved to a javascript thread, becasue this is actually done using javascript

i know how to reload the parent frame..

window.setTimeout("timedout()",3000); // in miliseconds

function timedout(){
parent.window.reload(); // or somethign like that.. i am typing this off my head.. perhaps if you post this in a javascript thread you will get a better answer... (can't seem to find one here..)
}

 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I update things  ·  Posted: 2004-01-17, 12:09am
Rank: ? (2172)
Member #: 11609
or...

<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.url.com">

It goes inside <head> while 10 is the delay and http://www.url.com is the url the refresh to.

A guy gets on a bus and starts threatening everybody: "I'll integrate you! I'll differentiate you!!!" So everybody gets scared and runs away. Only one person stays. The guy comes up to him and says: "Aren't you scared, I'll integrate you, I'll differentiate you!!!" And the other guy says: "No, I am not scared, I am e to the power of x."
 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I update things  ·  Posted: 2004-01-19, 02:02pm
Rank: ? (16)
Member #: 5367
 jordanaf2003

or...

<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.url.com">

It goes inside <head> while 10 is the delay and http://www.url.com is the url the refresh to.



martianunlimited---was correct,and the jordanaf2003,the script you are offering sucks.
it blinks!I hate to see that!and my server's slow.so anyway,thanks martianunlimited.


 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I update things  ·  Posted: 2004-01-20, 05:31am
Rank: ? (4827)
Member #: 3416
i have no idea how you would get blinking from jordan's code and not from martianunlimited's code. the javascript does a reload after 3 seconds, but the meta does it after 10 seconds, which means the javscript is more likely to be the one that blinks.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I update things  ·  Posted: 2004-01-22, 04:34pm
Rank: ? (16)
Member #: 5367
 misterhaa

i have no idea how you would get blinking from jordan's code and not from martianunlimited's code. the javascript does a reload after 3 seconds, but the meta does it after 10 seconds, which means the javscript is more likely to be the one that blinks.


misterhaan,you are wrong because that martian unlimited's code is using 2frames,which means 1
is an hidden frame,that blinks(only use for updating things)and other one is used for main.
so main never blinks.never,ever again.but the jordanaf2003's code don't use frames,so it will
blink.(because that he/she's using 1page that is main and reloader.)


 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs