Displaying 1 result from an estimated 1 matches for "prepimagearea".
2008 Sep 25
2
jquery, format.js and IE
...sponse.
Here''s some code. Also note that this is for an image upload, so it''s
not a real AJAX request, and I''m using the jQuery Form plugin to post to
an iframe.
The details of my ajax call:
var options = {
url: /pictures/1.js,
iframe: true,
beforeSubmit: prepImageArea,
success: imageUploaded,
dataType: ''script'',
beforeSend: function(xhr) {xhr.setRequestHeader("Accept",
"text/javascript")}
}
And my respond_to block:
respond_to do |format|
format.html { redirect_to edit_picture_path(@picture) }...