Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Detecting Valid .js/script files
09-13-2003, 12:11 AM #1
- Join Date
- Sep 2003
- Thanked 0 Times in 0 Posts
Detecting Valid .js/script files
Im loading files as so...
The scripts are dynamically generated on the server and sometimes return bad script or http errors - this cannot be changed as some of the scripts are out of my control.
The browser reports the script errors as expected(this is not a problem),
What I need to do is loop over all the scripts in the page and decide which ones did not load or produced errors. ..
The simple solution would be to put a know variable in the scripts and check for it - But I don't have access to all the scripts so I can't do this.
I've tried attaching onload events also, but this fires if its valid or not so cant do this.