https://bugzilla.wikimedia.org/show_bug.cgi?id=41837

--- Comment #13 from Brad Jorsch <[email protected]> 2012-11-06 23:13:32 
UTC ---
(In reply to comment #11)
> 
> About the different POST actions, I think we already must access different 
> URLs
> for the actions, unless I misunderstand the way the edit page works. I admit 
> to
> only having looked at that code once or twice, but I think it's relatively
> similar.

Not exactly. HTML forms have specific support for knowing which of multiple
submit buttons was clicked. Each button has a different name: the Save page
button is "wpSave", the Preview button is wpPreview, and the Show changes
button is "wpDiff". Depending on which button you click, that button's name
gets included in the POST data along with the form text, edit summary, hidden
fields, and so on.

The big difference here is that this is all handled by the browser, no
scripting necessary.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to