This is a migrated thread and some comments may be shown as answers.

jQuery Compatibility in IE

2 Answers 90 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
chris_cf
Top achievements
Rank 2
chris_cf asked on 23 Mar 2009, 01:54 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tervel
Telerik team
answered on 25 Mar 2009, 09:01 AM
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.
0
chris_cf
Top achievements
Rank 2
answered on 25 Mar 2009, 05:29 PM
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.
Tags
FormDecorator
Asked by
chris_cf
Top achievements
Rank 2
Answers by
Tervel
Telerik team
chris_cf
Top achievements
Rank 2
Share this question
or