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

2 posts, 0 answers
  1. Sasireka
    Sasireka avatar
    2 posts
    Member since:
    Dec 2011

    Posted 29 Dec 2011 Link to this post

    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,
  2. Rumen
    Rumen avatar
    14466 posts

    Posted 03 Jan 2012 Link to this post


    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,
    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
Back to Top