lento / spam

Spark Project & Asset Manager
GNU General Public License v3.0
7 stars 2 forks source link

submitting dialog forms opens a new page instead of updating the current page (in browser other than firefox4) #18

Closed lento closed 11 years ago

lento commented 14 years ago

fix dialog form handling for browsers that don't have form.getFormData()

lento commented 13 years ago

getFormData() was a firefox-specific extension to html 5, now it looks like they removed it and changed it to:

formData = new FormData(formElement);

that might work in chrome, too. See last comment here (Glenn Maynard, 17/12/2010): http://hacks.mozilla.org/2010/05/formdata-interface-coming-to-firefox/

(I can't check it now, so please try it and let me know!)

Your solution here MrPetru/spam@f3dab60 is good, but you might want to check two things:

if those two things work, let's go for it!

MrPetru commented 13 years ago

first solution (using html5) the function: formData = new FormData(formElement); work well in firefox4 but not in Chrome (my chrome version is 7.0)... the answer is: Failed to load resource: the server responded with a status of 404 (Not Found)

second solution (for all other browsers- I means commit MrPetru@f3dab60 ) file upload work in firefox4 but not in chrome (need inspection)

MrPetru commented 13 years ago

I found this: chrome do not support getAsBinary() this mean there is another problem in upload compatibility with other browsers