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

Cannot call function in javascript file when using RadAjaxPanel

3 Answers 297 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
T
Top achievements
Rank 1
T asked on 05 Oct 2009, 10:34 AM
hello,

I has a problem: My Control need to execute functions in javascript file. Everything is ok until I use this control inside the RadAjaxPanel to enable ajaxfied. I fingure out that It cannot hit the function in javascript file and my control does not work anymore.

Any suggestion?

Regards,
dat019
 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Oct 2009, 03:21 PM
Hi,

I suggest you examine the following help article and see if it helps.
Executing custom javascript code after AJAX update

Let me know if you need additional assistance.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
niran
Top achievements
Rank 1
answered on 18 Jun 2011, 09:33 PM
Hi
I tried with the solution which you have mentioned but no luck .

While my RadAjax panel is executing or loading up am not able to check the value of the session.

Explanation:
I have a button named Button1. In the  click event of Button1 i make the value of my session to "VISITED".
which means that the session value is set to VISITED only when I click the Button1.
 Session["Visited"] = "VISITED";

I have used the code as below in the server side Click event of Button1
 ScriptManager.RegisterStartupScript(Page, typeof(Page), "myscript", "test();", true);

Only when the session value is visited or the button is clicked i need to invoke the Javascript function test();. But this code always shows blank value for session. Please advice.

 <script language="javascript" type="text/javascript" >
     debugger;
  function test() {
       var session = '<%=Session["Visited"] %>';
       alert(session);
}
</script>
Or if you are not able to provide a solution for this please let me know if I can show up a busy symbol soon after my button click and call the javascipt function at the same time since I am trying to get the key pressed by the user while the busy icon appears.

 
0
Pavlina
Telerik team
answered on 23 Jun 2011, 12:07 PM
Hi Niran,

It is rather difficult to provide a solution based on the provided information. It will be best if you could send us stripped example which demonstrates this erroneous behaviour. Thus we will be able to test it locally and do our best to provide a proper solution.

Thank you.

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
T
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
niran
Top achievements
Rank 1
Share this question
or