Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2008
    Posts
    104
    Thanks
    4
    Thanked 14 Times in 14 Posts

    spry Data problem or array problem in IE

    Hello everyone,

    I've got a frustrating problem with Javascript in IE - no matter how much I stare at it, I can't work out why it works perfectly on Safari and other browsers. The problem is with the page:

    http://www.blackhairensemble.co.uk/repertoire.php

    If you're using IE - it should display an error message saying "Failed to retrieve data set".

    I don't know why this is - I've tried escaping all the potential string characters in the array declaration but it's no use...

    Any ideas?

    Thanks
    Edd

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    When you use an XHTML Doctype, you must isolate the javascript embedded code lines inside CDATA islands, otherwise the interpreter will take some javascript special characters (< > &) as XML markers:
    Code:
    <script type="text/javascript">
    /*<![CDATA[*/
    ... code here ...
    /*]]>*/
    </script>
    Or, better, use external JS files.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •