• I posted this on the blog of Fernando but it didn’t show up so I thought I might as well post it here also.

    I am having some problems with adding some javascript and IE. I am adding a “tooltip” with the javascript found at the link below:

    https://www.dyn-web.com/dhtml/tooltips/

    I add it and it works great in Firefox. I open up my site with IE and I get an error that says “Internet Explorer cannot open the site. Operation Aborted.” I try the same code on the Kubrick theme and it works on both IE and Firefox. Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do you have a link to the site?

    Is the javascript within the template files or in a post? In a post, WordPress can “rewrite” the javascript so the >< are replaced with character codes, making it not work.

    If the javascript is in the head of the header.php template file, then it should work.

    Thread Starter sfboarders

    (@sfboarders)

    The javascript is in the head of the header file and at the footer. The code works fine in Firefox with Headspace theme. In IE my page comes up than part way when it loads that error comes up. Code works fine with Kubrick theme in both browsers.

    Are you having trouble with both the “head” script and the “footer” script or just one. And if it works with Kubrick, you’ll have to check to make sure you pasted the code in exactly right in the other theme (a slip of the finger is all it takes).

    Is the problem on your https://www.sfboarders.com/ site? I just looked at it in MSIE and there are no errors. I looked at the code and see that that page is not a WordPress site and it’s designed with tables…icky. Cool look, bad form. Anyway, not the point. It isn’t the site with the problem with WordPress. Do you have a link to that site where the problem is?

    Thread Starter sfboarders

    (@sfboarders)

    Lorelle, Nope that’s not the site. I use a test server at home before I upload it live. That code you are suppose to enter code in the footer and head which I have done. I implemented the code in the main “index.php” file.

    On the lower right hand corner of IE I get this error.

    <b>//C:\WINDOWS\system32\shdoclc.dll/dnserro.htm…</b>

    I can remove all of the code except the code that belongs at the footer and that error comes up. I can leave all of the code in header and the index and remove that script line in the footer and no error.

    Without something to really put through the paces, I can’t help you much more than I have. It looks more liek the problem is with the code in the footer.

    To make javascript work outside of the head, like within a post, and the footer sorta qualifies, loosely, I link to the script and then call it specifically like this:

    <script type="text/javascript" src="/scripts/top.js">
    <!--
    top()
    //---></script>

    Check in the source code to see that the script’s >< are not turning into character codes.

    Have you looked for a replacement for the javascript that is in php? I used to use a ton of javascript on my site and now I’ve found replacements for just about everything with php.

    If you don’t mind me asking, what’s the footer javascript for? That might help us find you a replacement.

    Good testing to remove all the code to narrow things down!

    Thread Starter sfboarders

    (@sfboarders)

    Lorelle, when I view source in the example of the code it states to put it at the footer right above the </body>

    What I don’t understand is why does the code work in Firefox and not in IE?

    Why does the code work on another theme with both browsers and not Headspace? I think there is something in the Headspace theme fooling IE.

    Thread Starter sfboarders

    (@sfboarders)

    If there is a CSS or PHP way of doing tool tips please let me know. Take a look at the link above and you can see some examples. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Javascript issues with IE and Headspace Theme’ is closed to new replies.