Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ajax Call and rawtext
#5
(09-14-2019, 12:46 AM)Alexandre Machado Wrote: I created a simple test case here and seems to be working as expected.

Can you please test it? What is different, compared to yours?

The example helped get me on the correct path to the answer.   in addition to the html that I posted in this forum there were other characters that caused the posting to fail like {% that I was using in the templates.   The solution for it was to wrap the html content in encodeURIComponent so that it would pass back the information as encoded.    

Thanks for the help.

Here is the final call for anyone else that is trying to solve this issue.

function (e){

ajaxCall("ajaxSaveCode",
        "&code="+encodeURIComponent(monaco.editor.getModels()[0].getValue()),
        false,
        function(response){                             
});



return true;
}
Reply


Messages In This Thread
ajax Call and rawtext - by joel - 09-13-2019, 01:02 AM
RE: ajax Call and rawtext - by joel - 09-13-2019, 04:40 AM
RE: ajax Call and rawtext - by Alexandre Machado - 09-14-2019, 12:27 AM
RE: ajax Call and rawtext - by Alexandre Machado - 09-14-2019, 12:46 AM
RE: ajax Call and rawtext - by joel - 09-14-2019, 10:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)