473,322 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

auto redirect every 3 seconds until redirected

Any idea how i'd create a javascript which auto redirects to a
specified url every 5 seconds until the url specified is reached?

So if the url specified is redirected elsewhere it redirects to the
specified url again and again until it reaches its destination.

Jul 23 '05 #1
6 2227
mr***********@hotmail.com wrote:
Any idea how i'd create a javascript which auto redirects to a
specified url every 5 seconds until the url specified is reached?


I don't believe you can --- as soon as the first redirection completes, your
page is no longer running.

You might be able to do something funky with iframes --- redirect the
contents of an iframe, wait until it's loaded, check to see if it's the
right one, if it is redirect the main page to the same place --- but you'd
probably run afoul of the security rules.

This sounds suspiciously like the wrong solution for a problem. What are you
actually trying to do?

--
+- David Given --McQ-+ "If Alan Turing was alive today, the homosexuality
| dg@cowlark.com | would be OK but he'd be in trouble for
| (dg@tao-group.com) | codebreaking." --- Martin Bacon
+- www.cowlark.com --+

Jul 23 '05 #2
On Tue, 24 May 2005 09:57:28 GMT, David Given <dg@cowlark.com> wrote:
This sounds suspiciously like the wrong solution for a problem. What are you
actually trying to do?

I'm attempting to gain access to a website which is limited to 1000
users at any one time. Unfortunatly for me it won't allow me access
most of the day because its always hovering around this number.

By hitting my favorites to specific urls over and over I can gain
access but it can take over 30 attempts to get in.

Ideally i'd like a way of setting a script into action and leaving it
hammering away until it allows me in.
Jul 23 '05 #3
Not going to happen. Scripts cannot know anything about any document
outside of their own domain-- not even the URL.

I'd recommend just making it easier to click the link, unless you need
to hit this site really frequently. In that case, there're a number of
possibilities, none of which involve JavaScript.

Buggerlugz wrote:
On Tue, 24 May 2005 09:57:28 GMT, David Given <dg@cowlark.com> wrote:
This sounds suspiciously like the wrong solution for a problem. What are youactually trying to do?

I'm attempting to gain access to a website which is limited to 1000
users at any one time. Unfortunatly for me it won't allow me access
most of the day because its always hovering around this number.

By hitting my favorites to specific urls over and over I can gain
access but it can take over 30 attempts to get in.

Ideally i'd like a way of setting a script into action and leaving it
hammering away until it allows me in.


Jul 23 '05 #4
On 24 May 2005 04:09:24 -0700, "Random" <ra*******@gmail.com> wrote:
Not going to happen. Scripts cannot know anything about any document
outside of their own domain-- not even the URL.

I'd recommend just making it easier to click the link, unless you need
to hit this site really frequently. In that case, there're a number of
possibilities, none of which involve JavaScript.


okay, i'm open to any suggestions as i do need frequent access to the
site.
Jul 23 '05 #5
Buggerlugz wrote:
<snip>
okay, i'm open to any suggestions as i do need
frequent access to the site.


A script running in WSH and using an XMLHTTPRequest object could make
regular calls to a URL and monitor the status of the response, doing
something, like opening IE, when it gets a status 200 response. You may
be able to get away with only making HEAD requests and so not impacting
too much on your own bandwidth in the process. But don't be too
surprised if the sight operators notice you doing this and decide to
block your requests so you are not impacting on their servers/bandwidth.

Richard.
Jul 23 '05 #6
Richard Cornford wrote:
Buggerlugz wrote:
<snip>
okay, i'm open to any suggestions as i do need
frequent access to the site.

A script running in WSH and using an XMLHTTPRequest object could make
regular calls to a URL and monitor the status of the response, doing
something, like opening IE, when it gets a status 200 response. You may
be able to get away with only making HEAD requests and so not impacting
too much on your own bandwidth in the process. But don't be too
surprised if the sight operators notice you doing this and decide to
block your requests so you are not impacting on their servers/bandwidth.


Not to mention that by the time IE opens, navigates to the site, and
attempts to load the site that the site may be full and IE gets rejected :)

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan Nash | last post by:
Hi Subject line doesn't make sense I know. Basically we have a number of people on our system. They can sign up automatically and create their page. What I want to be able to do is give them...
3
by: Simon Wigzell | last post by:
I'm using : window.location.href = to redirect to a web page. From the new webpage, when you click the browser "Back" button you of course end up on the same old page and get redirected...
8
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically...
9
by: jonathanthio | last post by:
Say if the visitors come from German I'd redirect them to German website, if vistors from USA, I'd redirect them to USA websites. Is there a way to do this with javascript?
6
by: CK | last post by:
I have a web page called PageOne.aspx which is supposed to do a long process but I don't need to show any results to the client, so I want to redirect the client to PageTwo.aspx right in the...
2
by: Peter McEvoy | last post by:
Folks, I've been building a Webservice API for a contract that will be exposed to the internet at large. There are two endpoints, and each endpoint contains a number of webmethods. Every...
19
by: IveCal | last post by:
Hello, I have this code which redirects to http://www.domain.com/link.html . . . but I want to specify the NUMBER OF SECONDS before the site is redirected. Can somebody here help me . . .. ...
2
by: rn5a | last post by:
A logged in user clicks a Logout link which takes him to Logout.aspx where in I am using the SignOut method of the FormsAuthentication object to logout the user. What I want is as soon as the user...
8
by: Darrel | last post by:
I'm helping convert a 300+ page .html site into an ASP.net site. The client wants to set up 301 redirects for all of the old html pages. I've used ISAPI for this type of thing in the past, as it...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.