I'm using instafeedjs to display Instagram images on my website, it works in modern browsers but Internet Explorer 8 I see a Javascript error. It says
JScript object expected
instafeed.min.js Line 2
Code 0 Char:3392
URI (outputs the correct absolute link to the script)
I've put the instafeed.min.js script right at the bottom of the page in the source and it's placed after jquery-1.11.1.min.js both paths to the scripts are correct.
I don't understand the error message, can anyone explain it?
Related
I'm writing to the content of an iframe as such:
iframe.contentWindow.document.open();
iframe.contentWindow.document.write(html);
iframe.contentWindow.document.close();
where html is an entire document with some javascript. The javascript in that iframe sometimes encounters an error but the console is not helpful enough. The following is but one example but they all act the same: It gives a line number but is not able to show it in context/source. This is in Chrome.
Error message:
Empty source:
I'd hope to see something in the source page but I understand it could be some limitation or security measure from the browser.
The only thing I've found to help sometimes is to put lots of unique console.log()'s throughout the code so I can see where it last worked.
What's weird is it sometimes gives me the appropriate source. For example I just encountered the expected behavior but can't fathom how or why.
Working! But why?
Note: Google Chrome Version 109.0.5414.75 (Official Build) (64-bit)
I have an HTML page that has an embedded javascript file that for some reason or another I cannot debug. I can click on the error line to go to the location in the code but once there I cannot actually set a breakpoint inside the IE 11 debugger. I can however set a breakpoint in the HTML which isn't helpful to me.
I've read similar posts on the topic but they haven't helped. I've unchecked the box that disables script debugging in the IE 11 options.
Does anyone know what could actively prevent the debugging from happening? Even console.log lines aren't making it through...
Thanks.
edit: the exact error I'm getting is SCRIPT1010: Expected identifier on an Object.entries().forEach call that I've already added the necessary polyfills for.
I am receiving an "Access is Denied" error in internet explorer as shown in the screenshot below:
The strange part is that if I refresh it a few times, occasionally the page will load without errors and the script runs fine which lead me to believe that the option_selections script would load before the core013, but I tried moving the script and got the same results.
I am working on a website in Shopify and do not have access to core013.js in the first error. I do however have control over the option_selection.js. ( I can execute it before or after core013.js code. I have placed the option_selection.js code above and below the core013 script with the same results.
The site in question is located here.
Ok, I fixed the issue. Basically I not only needed to move the option_selection.js up to the top but I also needed to move the code that called it to the top as well. Arg... embarrassingly simple...
My page is working fine with FF , but not working under IE ,
I have a JSP page and a JS file (The error is inside JS File)
I am using IE developer toolbar
Its only showung me the Line number and the character.
Please see the screen shot .
http://www.tiikoni.com/tis/view/?id=3bc4916
MY JSP file is of only 20 lines and JS file is of 200 lines , with many 3rd party JS files included.
How can we debug as i dont have that line number in my JSP FIle and view source doesn't help.
Please help me
Internet Explorer 8 has a built in debugger. You can find instructions for how to use it here JScript Debugger in IE8.
Basically, if you enable this, then you can actually go look at the code and see where the problem is.
The debugger can not only show you the code, but also a snapshot of the variables at the time the error occurs. Using this information, you can further pinpoint the problem.
http://www.fau.edu/cdc/
I'm trying to figure out what's causing Internet Explorer (all versions, it seems) to fail to load the employer slideshow in the bottom of the left-hand navigation.
I just started working for this website so I'm not fully used to the code for this particular section and I haven't had any experience with this particular script.
It seems to fail at line 116 in dynamic.js, which is:
picobj.innerHTML=slideHTML
Any ideas?
If you have nested <p> elements (the most likely cause here, I believe) or mismatched tags, innerHTML will fail.