I've got a video search app that works just fine standalone, but once I place it in a block in page builder, it doesn't work in IE.
The error that pops up everywhere is:
Microsoft JScript runtime error: 'container' is null or not an object
Here's the snippet it's choking on:
var LoginButton1 = function(containerID) {
// PRIVATE ATTRIBUTES:
var container = document.getElementById(containerID);
// PUBLIC METHODS:
this.refresh = function(isLoggedIn) {
var theHTML = '';
if (isLoggedIn) { theHTML += 'You are logged in: logout'; }
else { theHTML += 'You are not logged in: login'; }
container.innerHTML = theHTML; } }
The debugger points to the line in red. It's not just this line of code..... it happens everywhere. Only in IE though. It works fine in FF and Chrome. The end result is blank space where the content should be.
I don't understand why this only happens within the Dolphin page. Anybody have a clue? I sure don't.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Where is your script referenced... maybe its loaded before the rest of the content.
Slap it above the closing body to make sure its loaded last and see.
I have video tutorials to help you mrpowless.com |
Same problem no matter how I arrange things. I don't understand why it works fine in FF, and it works fine in all browsers as a standalone script. It's only when it's placed within a block on a D7 page that it doesn't work in IE. I don't have a clue what's wrong.
I'm really starting to hate IE. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
See for yourself: http://houstonlively.com/page/Internet_Videos
Works fine in FF and Chrome. Runtime errors everywhere in IE7 +
I'll probably have some spam accounts after posting that url. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Houston,
I tested your site witch Opera leatest browser and no problems. Every things working smooth. Kids first |
Killer that is the point. The problem is with IE. Oon my site I have javascript errors of a simular type whenever browsing my site with IE that I do not receive with any other browser. |
when I tried a video search on your site I got in subscription category
ERROR: Code 12; Truveo Video Search API temporarily unavailable. Please try your request again in a few minutes.
Everything else works just fine. I'm using chrome. I never use ie, given up on it years ago.
I tried it on IE for you and links in cost: sort by: chose view: don't work at all. It doesn't show any content in that box on the landing page. http://houstonlively.com/page/Internet_Videos
this was in ie8
only the links on top work in ie.
|
Yes, most of the site works in all browsers. It's just the viseo search page that doesn't work in IE(any version)
The part that's driving me nuts is, I don't know who do blame for the problem. I don't know whether to blame Microsoft, Boonex, or the folks that wrote the script.
I've investigated a little more, and the jscript runtime error is always present in IE. It's just that, with script debugging turned off in IE, the error is ignored, and the content is still loaded. When the script is placed in a block on a Dolphin page, when the error is encountered, the script execution seems to just halt. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
ok have you tested giving the theHTML a default and then using "if and" for login right now its var theHTML = ''; I have video tutorials to help you mrpowless.com |
RE: ok have you tested giving the theHTML a default and then using "if and" for login right now its var theHTML = '';
No... I'm afraid I've reached the limit of my expertise. If you disable script debugging in IE, by itself, the script works just fine. The login stuff isn't really necessary, and can be removed.... it just logs the user into an external site for certain interactions that I removed from the script. I didn't even realize it was still there, in part.
Anyway..... $100 to anyone that can fix this.
This is just a few files that I uploaded directly to my site's root. Direct access to script is: http://houstonlively.com/wwwvideos.html
To put it on a D7 page, I first did Deano's PHP block mod, and placed the php block on a new page. The code in the php block is just include "wwwvideos.html";
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |