I am using a php script that produce an application/save content : ----- $size = filesize($file_path); header("Content-Type: application/save"); header("Content-Length: $size"); header("Content-Disposition: attachment; filename=\"$file_name\""); header("Content-Transfer-Encoding: binary"); readfile($file_path); exit; ----- when called from 'new Ajax.Request(...', the default browser behavior (ask the user to open or save the file) is skipped by prototype.js.
how to keep the default browser behavior when response.getHeader('Content-type') == 'application/save' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---