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

Reg Server side function call from client side(java script)

1 Answer 60 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sasireka
Top achievements
Rank 1
Sasireka asked on 30 Dec 2011, 05:45 AM
Hi all,

I would like to ask some clarification in RadEditor regarding server side  function call from client side(Java Script).
Actually my scenarios,when i click my custom tool in toolbar,i have to check the server side session exists or not and pass the session value to function (in class file) & get the content. and then insert the result content from the function to the current cursor position.

For this scenario,I handle the above server side function to Link button click event and call the click event when i click the tool in java script,after call the click event i can retrieve the content but while replace from the content in java script occur problem.

I have assign the content to hidden field and try to retrieve in java script to replace. That time error occur like "A Potential Error in hidden field "content sample"" like this.

Also I try to use wen method and Ajax method,it not work in Editor page..

Kindly suggest any other method ,to call the server side function to get the content and replace the same in editor.

Thank you,

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jan 2012, 12:20 PM
Hi,

You can try to achieve your scenario by implementing a custom dialog. Implement the needed server logic in the dialog and paste the returned content from the server at cursor position using the pasteHtml function.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Sasireka
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or