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

[Solved] Triggering Client-side JavaScript

1 Answer 205 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Johnson
Top achievements
Rank 1
Johnson asked on 19 Jun 2007, 05:52 PM
Hi,

Is there a way to trigger a client-side javascript after clicking a ajaxed button?  I tried the following, but it failed.

protected void btnShowPanel2_OnClick(object sender, EventArgs e)  
{  
     Panel1.Visible = false;
     Panel2.Visible = true;
     Response.Write("<script>validate_panel2();</script>");  

Is there a work around for this?  The javascript is suppose to disable or enable certain radio buttons based on a set of data.  I can enable or disable them on the back-end, but then I can't seem to re-enable them on the client-side.

Thanks,
Johnson

1 Answer, 1 is accepted

Sort by
0
Johnson
Top achievements
Rank 1
answered on 19 Jun 2007, 05:59 PM
Never mind, I found the solution:

RadAjaxManager1.ResponseScripts.Add("validate_panel2()");
Tags
Ajax
Asked by
Johnson
Top achievements
Rank 1
Answers by
Johnson
Top achievements
Rank 1
Share this question
or