Subject: Re: [xsl] Preventing second click From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 29 Sep 2006 09:09:21 +0200 |
I have made some progress and found a few interesting things: 1) I should use just onload="if (btn_id.disabled)", not onload="if(document.formname.btnname.disabled);" on grandparent form; That works in FireFox, but not IE6 [which I target], where I had to use: if(document.getElementById('btn_Id').disabled)
This code should not be working. Furthermore, always make sure that the name-attribute and the id-attribute have the same value or you will end up using different identifiers depending on the way you script or the browser you are in, or even serverside (the name-attribute is deprecated, but only there for compatibility with IE-versions, who don't send the id on form submit, but only the name).
2) for some reason that always returns false, even if I just set <input name="name1" id="btn_id" onclick="disabled=true">
(or this.disabled=true ) I have never heard that reloading a page resets any of its attributes and there are no other buttons with the same id or name.
3) the other strange thing is that I can't use any curly braces in any onload or onclick, doing: onload="if (btn_id.disabled) { alert.window('some text'); }" gives error:
Fatal: File SystemId Unknown; Line 16; Column -1; Could not find function:
window.alert
but runs just fine without curly braces
Cheers, -- Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Preventing second click, Oleg Konovalov | Thread | RE: [xsl] Preventing second click, Trish |
Re: [xsl] Opera's JavaScript API fo, M. David Peterson | Date | RE: [xsl] XPath for matching multip, Michael Kay |
Month |