[Solved] Script error, where to add if

I notice your usage of “photos”, but I don’t see the variable being declared anywhere… At least, inside the main function (since it won’t be global), declare your photos var: var photos = []; Aditionally, like Chris says, always check if the var is defined. 🙂 Source: https://stackoverflow.com/a/17748905/2599797 if (photos) // Simple if (typeof(photos) != … Read more

[Solved] IE8/Firefox Behavioral Difference

Since the lost focus seems to happen every 6000 milliseconds, I’d point the blame somewhere at expandone()/contractall() in /js/qm_scripts.js. Your login form is in the “dropmsg0” div, causing it to be briefly hidden and redisplayed every 6 seconds. The textboxes lose focus in IE8 when hidden. I’d either rename the div to exclude if from … Read more

[Solved] Why I am getting access denied error on IE8? [closed]

You have iframes which load content from http://www.formstack.com/forms/?… There’s this code on those pages: <!–[if lt IE 9]> <script src=”https://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script> <![endif]–> This is the script causing Permission denied error. The code tries to access top.window, which is not allowed when both pages are not in the same domain (if(/ie7_off/.test(top.location.search)||t<5.5||t>=h.compat). 2 solved Why I am getting … Read more

[Solved] ie8 with anchor causes crash [closed]

The problem is the href: assortiment.php#top is asking too much. IE8 can’t deal with a link to an element that doesn’t exist yet (the relative anchor is linking to an element on the new page). JS can solve this problem for you, though: window.onload = function() { if (location.href.indexOf(‘#top’) === -1) { location.href += ‘#top’; … Read more