RotoGuru Basketball Forum

View the Forum Registry


Self-edit this thread


0 Subject: OT - HTML help

Posted by: WiddleAvi
- [2101079] Sat, Jan 11, 2003, 22:19

Hey guys. Anyone know the code to automaticlly forward someone to another site including the setting for the time delay to wait before forwarding ?

Thanks
1SillySpheres
      ID: 58512252
      Sat, Jan 11, 2003, 22:31
you have to do it with java script. Tie some java script to the onWindowOpen event, the code is something like

document.href = "new web page to go to"

as far as the delay goes, just have the java script sit in a loop for a while. My apologies that I dont know the exact syntax off the top of my head.
2CanEHdian Pride
      Donor
      ID: 48936413
      Sun, Jan 12, 2003, 00:17
actually, a more sophisticated approach is to change the data in the datagram header.

I'm not sure exactly how to do it but I think it is a "meta" tag that you have to change. I took this in the summer and its too late for me to recall. If you have a reference text though check under the meta tag section.
3KrazyKoalaBears
      Donor
      ID: 266182910
      Sun, Jan 12, 2003, 00:34
Just use a metatag (put it between the head tags). Switch the []'s below to <>'s and change the "30" in the "content" part to be the delay in seconds that you want.

[meta http-equiv="refresh" content="30;URL=http://www.google.com"]

4KrazyKoalaBears
      Donor
      ID: 266182910
      Sun, Jan 12, 2003, 00:35
Oh, and change the URL part to the page you want to go to. :)
5WiddleAvi
      ID: 2101079
      Sun, Jan 12, 2003, 10:55
Is this possible ?? I have a form and on of the fields in the form is a radio button choice. Is it possible that if they choose one choice it takes them to one site and if they choose the other one it takes them to a different site? How would that work ?
6SillySpheres
      ID: 58512252
      Sun, Jan 12, 2003, 11:36
Re Post 5:

use an if-then statement in javascript where you say if this is selected, go to this page, if this other is selected, go to this other page. Assign each option an identifier, otherwise you would have to use DOM to identify which is selected (which can be tougher).
7KrazyKoalaBears
      Donor
      ID: 266182910
      Sun, Jan 12, 2003, 12:40
WiddleAvi, you might be best served with a automatic pulldown menu. You can get an example of this at javascriptsource.com.
8WiddleAvi
      ID: 2101079
      Sun, Jan 12, 2003, 14:14
that wouldn't work. The radio button is part of a form. They must fill out the entire form and submit it but which page the submit button takes you too I want to depend on which choice they chose on that radio button.
9Ender
      ID: 13443221
      Sun, Jan 12, 2003, 14:17
The why not make that the last question and have them submit according to their choice?
Rate this thread:
5 (top notch)
4 (even better)
3 (good stuff)
2 (lightweight)
1 (no value)
If you wish, you may rate this thread on scale of 1-5. Ratings should indicate how valuable or interesting you believe this thread would be to other users of this forum. A '5' means that this thread is a 'must read'. A '1' means that this is a complete waste of time.

If you have previously rated this thread, rating it again will delete your previous rating.

If you do not want to rate this thread, but want to see how others have rated it, then click the button without entering a rating, or else click here.

RotoGuru Basketball Forum

View the Forum Registry


Self-edit this thread




Post a reply to this message: (But first, how about checking out this sponsor?)

Name:
Email:
Message:
Click here to create and insert a link
Ignore line feeds? no (typical)   yes (for HTML table input)


Viewing statistics for this thread
Period# Views# Users
Last hour11
Last 24 hours11
Last 7 days11
Last 30 days33
Since Mar 1, 2007611371