[Webkit-unassigned] [Bug 31097] <FORM> sends the form-data to the URL specified in "action" only once.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 3 23:00:35 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31097





--- Comment #4 from Hanrui <hanrui.gao at gmail.com>  2009-11-03 23:00:35 PDT ---
The second item is not an essential condition, look at the page again
(http://blog.sina.com.cn/), the clicking the Google icon will lead you to
Google homepage. However it could not trigger two times if you click it
continuously (without any keyboard event between the icon clicks).
The Google icon is outside the form, it take the action by the codes below:
<a id="sbox_change_google" href="javascript:void(0)">
  <img height="23" width="94" alt="Google"
src="http://i2.sinaimg.cn/lx/deco/2007/1229/standard_header_channel_google.gif"/>
</a>

sina.$("sbox_change_google").onclick = function(){
    submitFormWithChannel("tlogo");
};

function submitFormWithChannel(a) {
    if (document.gform.q.value == "\u8BF7\u8F93\u5173\u952E\u8BCD" ||
        document.gform.q.value == "\u8BF7\u8F93\u5165\u5173\u952E\u5B57" ||
        document.gform.q.value == "") {
        document.gform.q.value = "";
        document.gform.channel.value = a;
        document.gform.submit();
    } else {
        document.gform.channel.value = a;
        document.gform.submit();
        return;
    }
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list