jQuery Compatibility in IE

3 posts, 1 answers
  1. chris_cf
    chris_cf avatar
    53 posts
    Member since:
    Jul 2007

    Posted 22 Mar 2009 Link to this post

    There seems to be a problem with the document ready state being ready before RadFormDecorator decorates the controls on the page. jQuery nor document.getElementById is not finding the controls in the document ready function. All attempts return null in IE but work fine in FireFox.

    I disabled RadFormDecorator and the problem went away.

    Any ideas?
  2. Answer
    Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 25 Mar 2009 Link to this post

    Hi chris_cf,

    You have not provided us with your code, so we are not sure what you are doing and when you are running this code.
    That said, the RadFormDecorator obeys the rules of MS AJAX controls - it is initialized as part of the MS AJAX page initialization.

    My suggestion is to not run your code until the page is properly initialized. MS AJAX provides "hooks" for which to subscribe. The easiest option is:

    //This method, if it exists is called automatically
    function pageLoad()
    {
     //Some code here that will automatically be called by the MS AJAX framework upon page load
    }




    Greetings,
    Tervel
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. chris_cf
    chris_cf avatar
    53 posts
    Member since:
    Jul 2007

    Posted 25 Mar 2009 Link to this post

    Hi Tervel,

    Sorry, I did not post my code because I thought it could be solved without doing so and indeed you did.

    This works great.

    Thanks a mil.
Back to Top