Dim scriptstring AsString = "radalert('test', 300, 125, 'header test');"
RadAjaxPanel1.ResponseScripts.Add(scriptstring)
it works with IE8 and IE7, but not work with IE9. How can i fix this.
Thanks
2 Answers, 1 is accepted
0
Accepted
Marin Bratanov
Telerik team
answered on 27 Apr 2011, 11:11 AM
Hi Mehmet,
As I see that you are still using Q2 2010 SP2 it can be expected that some functionality will not work under future browsers like IE9. If you enable JavaScript debugging you should see an error under IE9 and not under IE7 and IE8, as IE9's implementation of some functions is different than its predecessors.
What I can suggest at this point is to upgrade to the latest version (Q1 2011 SP1) or at least to Q1 2011 as it is the first one to fully support IE9 and see if the problem persists.
Without your actual logic I can only be guessing how exactly you are using the controls, but please have the following in mind: as you are using an RadAjaxPanel's ResponseScripts collection it is very likely that on the first page load or after a full postback the RadWindowManager will not be loaded yet and you will get an error stating that radalert is undefined. To overcome this in that case you might need to use the approach shown in the following blog post: http://blogs.telerik.com/supportdept/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx.