This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / a dropdown list, onchange event, show confirmation box. is there a way to keep the original selectedIndex instead of the new selectedIndex when "cancel" is chosen?Thanksjavascript help please: a dropdown list, before the user chose another item in the list, show confirmation on impact of the change and choice of "continue" or "cancel". is there a way to keep the original selectedIndex instead of the new selectedIndex when "cancel" is chosen?
-rawmoon(rawmoon);
2006-2-21
{283}
(#2797253@0)
-
not for ie, but possible if you are using mozilla firefox
-kakaka(小胖子);
2006-2-21
(#2797279@0)
-
Yes, you can, put a hidden input box on the page, and assign original value on it. After visitor confirmed, change it to new value.
-yimingma(2006);
2006-2-21
(#2797444@0)
-
用 onmousedown=func() 来判断,点击鼠标的时候记住dropdownlist的值,选择cancel的时候再恢复这个值
-binghongcha76(一只大猫);
2006-2-21
(#2797518@0)
-
this one I tried, didn't work
-rawmoon(rawmoon);
2006-2-21
(#2797865@0)
-
这是一个例程,可以实现你要求的功能,记住要让ToolBar打开PopUp功能,因为它会弹出Confirm窗口
-binghongcha76(一只大猫);
2006-2-21
{844}
(#2797583@0)
-
it works perfectly, thanks. by the way, do you know if it is possible to change the lables of the confirm buttons, e.g. "Proceed" instead of "OK"?
-rawmoon(rawmoon);
2006-2-22
(#2798988@0)
-
<INPUT TYPE='submit' value='Proceed'>
-benlin()默默向上游();
2006-2-22
(#2799408@0)
-
我想楼主的意思是:在执行函数Confirm("xxx);时候会弹出带有“OK”和“Cancel”按钮的对话框,楼主想把这个对话框两面的两个按钮的文字改变,比如把“OK”改成“FLG”,呵呵,我是觉得不可能
-binghongcha76(一只大猫);
2006-2-22
(#2799534@0)
-
That is what I meant. seems I have to live with "OK", instead of "FLG".
-rawmoon(rawmoon);
2006-2-23
(#2800908@0)
-
^_^ :D
-binghongcha76(一只大猫);
2006-2-23
(#2800977@0)
-
No, I don't think u can do it in JavaScript, but in VBScript there is a MsgBox() might acheive what u want, but VBScript can only run under IE,,.....
-binghongcha76(一只大猫);
2006-2-22
(#2799124@0)
-
I don't believe in client side scripting, there are something that you can do with VBScript but not JavaScript.
-jeffrey815(Smartiecat);
2006-2-22
(#2799473@0)
-
在VBScript中有个MsgBox()函数可以弹出个性化的对话框,大概是本人才疏学浅,至今尚未发现JScript中有相应类似函数
-binghongcha76(一只大猫);
2006-2-22
(#2799519@0)
-
Google.
-jeffrey815(Smartiecat);
2006-2-22
(#2799782@0)
-
That's different, the point is "个性化的对话框"
-guestagain(guest again);
2006-2-22
(#2800314@0)
-
It's the same as msgbox.
-jeffrey815(Smartiecat);
2006-2-23
(#2800505@0)
-
No, they are totally different. CONFIRM can only creates a popup box with an OK and CANCEL choice, that's it. but msgbox can do much more, check this link about msgbox
-guestagain(guest again);
2006-2-23
(#2800877@0)
-
thanks everyone, I will give it a try tomorrow and let you know.
-rawmoon(rawmoon);
2006-2-21
(#2797874@0)
-
浏览器因为出于安全方面的考虑,做了很多限制,不让Script程序控制很多资源,比如打印,只能用window.print()打印整个页面,没有进一步的控制细节能力(无法删掉页眉页脚)
-binghongcha76(一只大猫);
2006-2-23
(#2800988@0)