[jQuery] weird Ajax problem with posting
I have this very strange problem...if I use Ajax in the Dave
Hauensteins Another-in-place editor I get a 403 forbidden access error.
The same page, has a number of $post()'s and they work perfectly. The
are both undoubtedly going to the right url...
What could be causing this?
Here's an example of the $post call...
var format = $('select#ajx-present').val();
$.post('?a='+action, { upd_jx_set : 'true', v : format, x :
'present', id : ide },
function(html) {
updating(html);
return false;
});
Dave's ajax call
jQuery.ajax({
url: settings.url,
type: "POST",
data: settings.update_value + '=' + new_html + '&' +
settings.element_id + '=' +
original_element.attr("id") + settings.params +
'&' + settings.original_html + '=' + original_html,
dataType: "html",
complete: function(request){
editing = false;
click_count = 0;
},
success: function(html){
// if the text returned by the server is empty,
// put a marker as text in the original element
var new_text = html || settings.default_text;
// put the newly updated info into the original element
original_element.html(new_text);
if (settings.success) settings.success(html, original_element);
},
error: function(request) {
original_element.html(original_html);
if (settings.error) settings.error(request, original_element);
}
});
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/