Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

add type="button" to insert button to avoid submitting form data #366

Merged
merged 1 commit into from
Jul 27, 2016
Merged

add type="button" to insert button to avoid submitting form data #366

merged 1 commit into from
Jul 27, 2016

Conversation

KazuyaHara
Copy link
Contributor

I made this pull request for solve #365. As I mentioned in issue #365, form data will be submitted by clicking insert button so I just added type=button to insert button.

@linkesch linkesch merged commit 9f66f02 into linkesch:master Jul 27, 2016
@linkesch
Copy link
Owner

thanks

@ignacy130
Copy link

ignacy130 commented Aug 21, 2016

EDIT 14:41, 21.09.2016: Sorry, it's actually image.Save to save image on server side (ASP .NET MVC) which is causing page on Chrome to refresh. Strange that Firefox handles it properly. Any ideas?

Sorry, I had enabled BrowserLink in Visual Studio and saved images to directory in solution directory, what caused "content change" and triggered page refresh.

Doesn't work for me on Chrome :/ Both + button and camera button have type="button" and, after selecting image from file picker, page reloads. POST is successful and image displays, but looks like the form is submitted.
On Firefox it works OK, no page reload.

I guess it is related to: http://stackoverflow.com/questions/1878264/how-do-i-make-an-html-button-not-reload-the-page and first comment under accepted answer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants