This javascript I have is supposed to be very simple. It is, but IE is not making it at all. I have made 2 posts on here trying to get this fixed and NOTHING. I have been working on this for 2 weeks. I’ve googled everything, I’ve used debugger a million times and NOTHING. What I’m trying to do is have a function that calls a php file on my website that gets the percent of the file being uploaded. So It uses ajax to call the page and get the custom header that gives the percent and then that changes the width of a div element. Simple right? Well IE is stuck at 0% at all times, on all versions of IE (including 9).
Here is the script: http://pastebin.com/RBLygM9H
I have read that it could be because of the way I am calling the function initially. It is called like this:
onchange="checkForm(this.form, 'This is a just a random ID');"
I used the watch function with IE debugger and paused it and checked if the function is even getting the proper variables and it is. I also checked the headers and it only sends one header at the beginning and never does it again. Whenever I pause the debugger is always stops at this:
setTimeout(function(){ prog_bar(upload_id); }, 1000);
yet it never claims it as an error, it’s only when I pause it. I checked the Console tab, Breakpoints, Locals, Watch and Call stack there is nothing in them except for Call Stack. All it says is Anonymous function and gives me no more information. Also, I have got it to change percents before but I have no idea what caused it and its happens randomly. Also I have getting this error before:
The breakpoint is not valid. no executible code is asossiated with this line.
I’m not quite sure what is means but I was never able to replicate it.
help.
happens.