problems with passing html to the server with jquery

Posted by CoffeeCode on Stack Overflow See other posts from Stack Overflow or by CoffeeCode
Published on 2010-03-16T00:05:32Z Indexed on 2010/03/16 0:09 UTC
Read the original article Hit count: 329

Filed under:
|
|
|

i have an ajax call

$.ajax({
                url: '<%=Url.Action("SaveDetails","Survey") %>',
                dataType: 'JSON',
                cache: false,
                data: { Id: selectedRow.Id, Value: surveyValue, FileName: filename, FileGuid: fileguid },
                success: function(data) {
                    ...
                }
            });

where the surveyValue is a html string. this call doesn't work. but is i change the surveyValue to an ordinary text i works fine.

how can i pass the html to the server?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about asp.net-mvc