473,379 Members | 1,520 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,379 software developers and data experts.

Timeout a Script

How would I stop the loading of a script if it is taking too long? My site references an external websites javascript and since their site was having problems processing the scripts, my site wouldn't complete loading the rest of the page. I would like to be able to give it a time limit to load and then scrap the script if it reaches the limit.

Thanks in advance for your help!
Feb 14 '12 #1
1 1367
gits
5,390 Expert Mod 4TB
you might load the external content through an AJAX call - but this would need to involve a Cross Domain Proxy due to the Same Origin Policy for JavaScript
Feb 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kenneth | last post by:
I want to be able to close a main window after a certain time Can I do this in PHP or do I have to use JavaScript?
0
by: John Silver | last post by:
I have a perl script running on machine A, a web server. A visitor completes certain pieces of data and these are compiled into two emails, one addressed to the visitor and copied to the site...
9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
2
by: Greg Decos | last post by:
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are...
1
by: Steve Caliendo | last post by:
Hi, How can I notify the client that their session is about to timeout? I've placed a timer into global.asax, but this, for example, doesn't work because it's not a page. ...
4
by: Lars Netzel | last post by:
Hello! In Global.asax I've seen an event called Session TIme out... I tried Putting a Response.Write("<script language=""javascript"">alert('Timeout');</script>") in there to give a popup when...
1
by: Dax | last post by:
Hi, I have a problema of query in an asp page, if I run the query in sql query analizer is time running it's about 3-4 seconds, if I made the same query in an asp page it create the error of...
8
by: michal | last post by:
hi guys, i was wondering how you deal with script timeouts caused by huge file uploads. Lets say I have a script timeout of 2 minutes and the user uploads a file which takes more than this ......
15
by: Mikhail Kovalev | last post by:
Fatal error: Maximum execution time of 3600 seconds exceeded in z:\home \localhost\www\somefile.php on line 138 php.ini setting fixes default max execution time at 30 sec, In the script itself I...
3
by: Sems | last post by:
Hi I'm using the Session_End event in the global.asax to detect if a users sessions has ended. Is there any way to tell if the session end is due to it being expired and not abandoned? I'm...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.