ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascript error in IE8 when multiple emails encoded on page?

September 09, 2009 9:29am

Subscribe [2]
  • #1 / Sep 09, 2009 9:29am

    tidy

    196 posts

    I am getting a JavaScript error in Internet Explorer 8 when I visit a couple of pages on my site.
    The common factor is that each of these pages have multiple email address links encoded.

    In the footer of every page I use the following code:

    Then, in the weblog entries, I have automatically encode email links set to on.

    On pages where there is an email address in the weblog entry content (in addition to the standard email link in the footer), I get this error.

    The error message itself is:

    Error: Unknown runtime error

    But the javascript debugger in IE8 stops at

    document.getElementById('eeEncEmail_eqbVwrdgpb')[removed] = output;

    Has anyone else had issues with this? Is there a workaround?

    Thanks for your time.

  • #2 / Sep 09, 2009 9:40am

    Sue Crocker

    26054 posts

    Does the same error occur with any other browser, such as Firefox, Opera, Safari, or Chrome?

  • #3 / Sep 09, 2009 9:56am

    tidy

    196 posts

    Hi Sue,

    No it’s fine on my other browsers: Firefox 3.5.2, Chrome 2.0, Opera 9.26.

  • #4 / Sep 09, 2009 10:00am

    Sue Crocker

    26054 posts

    Which version/build of ExpressionEngine are you using? You can find that out at the bottom of any control panel page.

    The current version is 1.6.8 and the build is 20090723.

  • #5 / Sep 09, 2009 11:55am

    tidy

    196 posts

    Sorry Sue - should have mentioned that.
    I’m using the current build alright: 20090723, EE 1.6.8

  • #6 / Sep 09, 2009 12:18pm

    Sue Crocker

    26054 posts

    Do you have a link we can see?

  • #7 / Sep 09, 2009 3:26pm

    tidy

    196 posts

    Sorry for the delay in getting back Sue - was out at a meeting.

    I’ve now fixed this glitch so this post was a false alarm - very sorry about that. With being very busy with site launches at the moment, I wasn’t thinking clearly enough to do some logical debugging earlier!

    When I investigated properly, I realised that it wasn’t multiple email addresses on a page causing the error, but any email address encoded in a weblog entry. I use wysiwyg fields for weblog content, so the field contains HTML. When I looked at the source, the email links had been coded into the entries. These were the links triggering the error in IE8.

    So, to sum up, if you have auto link urls and emails on but then go putting a link on an email address (not very logical!), you will get a javascript error in IE8. If you just put in the email address unlinked, letting the auto link do its thing, you won’t.

    Feel free to delete this thread as it may just confuse people!

    Sorry again for the false alarm and thanks for your time.
    Janine.

  • #8 / Sep 09, 2009 3:39pm

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases