think it's a good practice to submit it to the same action and then
redirect to an appropriate action based on the clicked button check.
Some PHP frameworks with Dojo support have built-in methods for such
checks like Zend_Dojo_Form_Element_Button::isChecked() for instance.
Although this approach works under Firefox it fails under IE because
of the following differences in the submitted POST data:
POST:
Dojo 1.2.3:
Firefox 3:
array(5) {
…
["button1"] => string(6) "value1"
}
IE6:
array(5) {
…
["button1"]=> string(6) "value1"
["button2"]=> string(10) "value2"
}
Even though only button1 was clicked!
Dojo 1.3.1:
Firefox 3:
array(5) {
…
["button1"] => string(6) "value1"
}
IE7:
array(5) {
…
["button1"] => string(304) "<SPAN class="dijitReset dijitInline"
dojoAttachPoint="iconNode" unselectable="on"><SPAN class="dijitReset
dijitToggleButtonIconChar" unselectable="on">✓</SPAN></SPAN><SPAN
class="dijitReset dijitInline dijitButtonText" id= button1_label
dojoAttachPoint="containerNode" unselectable="on">Search</SPAN>"
}
Does anybody know a workaround for it? Many thanks in advance.
没有评论:
发表评论