Invalid Character error when including plug-in API functions - Internet Explorer 8,

Invalid Character error when including plug-in API functions - Internet Explorer 8,

PaoloValladolidPaoloValladolid Posts: 35Questions: 0Answers: 0
edited June 2010 in General
I am trying to use fnReloadAjax() to solve another Internet Explorer 8 related problem - an error that occurs after these steps are followed:

1. Load DataTable via sAjaxSource in the constructor.
2. Add a row via a call to fnAddData()
3. Attempt a column sort.

I read that a possible solution is to call fnReloadAjax(). However, I get an "Invalid Character" Javascript error when I add this line to my HTML page and reload it:



This error does not seem to occur in Firefox.

Replies

  • PaoloValladolidPaoloValladolid Posts: 35Questions: 0Answers: 0
    bump
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi PaoloValladolid,

    'Invalid Character' errors in IE can sometimes crop up when there is a hidden UTF-8 character in the code file, which the JS engine doesn't understand. This can occur due to a copy and paste error or perhaps something else.

    I'd suggest opening your JS file with a text editor that allows you to view hidden characters (e for Windows, TextMate for Mac, and many others) and see if there is anything dodgy looking.

    If you can't see if can you post a like to a live example showing this problem please.

    Regards,
    Allan
This discussion has been closed.