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

[Solved] Changing javascript with the RadAjaxManager

1 Answer 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 11 Mar 2008, 01:29 AM
I'm using the RadAjaxManager on a page and I want to change some of the javascript on the page with each ajax postback.  For example, I have the following javascript method:

function GetEditorText() {
            <%= _EditorScript %>
        }

As you can see, the _EditorScript variable is declared in the code behind and gets a value whenever the page does a real postback.  The value of this variable is just more javascript that may change. 

How can I change the _EditorScript value (or the javascript in this function) during an ajax postback?

Thanks,
Matt

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Mar 2008, 01:49 PM
Hello Matt,

Could you please elaborate a little bit more on this request? How have you tried to achieve this scenario and have you received any errors? Have you tried using MS UpdatePanel (Prometheus is built on top of MS AJAX) in your application?
Any additional information on this matter will be helpful.

All the best,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Matthew
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or