IE8 creating problem with callback function (jQuery Or Javascript)

48 views

Experts Says:
“callback function throws an exception in IE8 mode. This means that even if your code is written defensively, it will get called and cause an error”.
the only solution is to remove call and use try/catch method to rectify this error.
This problem could also happened in jQuery.

  1. Example:
  2. <script>
  3. function callback_create_error()
  4. {
  5. //some code;
  6. }
  7. </script>
  8. <a href="javascript:void(0)" onclick="try{callback_create_error();}catch(e){alert(’error found!’)}">test</a>



« ajax with javascript Calculator in javascript »
Posted on Tuesday, April 7th, 2009 at 12:29 pm under Javascript, jQuery | RSS 2.0 Feed

Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?