When I try to pass large amounts of information using jquery $.ajax(post) method. it throws potenti
Posted
by dotnetrocks
on Stack Overflow
See other posts from Stack Overflow
or by dotnetrocks
Published on 2010-04-14T17:14:10Z
Indexed on
2010/04/14
17:23 UTC
Read the original article
Hit count: 218
jquery-ajax
I am trying to create a preview window for my texteditor in my blog page. I need to send the content to the server to clean up the text entered before I can preview it on the preview window. I was trying to use
$.ajax({
type: method,
url: url,
data: values,
success: LoadPageCallback(targetID),
error: function(msg) {
$('#' + targetID).attr('innerHTML', 'An error has occurred. Please try again.');
}
});
Whenever I tried to click on the preview button it returns an XMLHTTPRequest
error. The error description -
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
The ValidateRequest
for the page is set to false.
Is there a way I can set validaterequest to false for the ajax call.Please advise
Thank you for reading my post.
© Stack Overflow or respective owner