|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Preventing second click
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)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
That looks like a problem to me. Any workarounds ?TIA, Oleg. On 9/28/06, Abel Braaksma <abel.online@xxxxxxxxx> wrote: Oleg Konovalov wrote: > No, I don't use AJAX or CSS [and not planning to do that]. > What I don't understand why on the "grandparent" form > I can not get a value for that button declared on its grandchild. > So for "document.formname.btnname" or "window.document.formname.btnname" > I get "undefined" on that grandparent, > for "document.formname.btnname.disabled" I get nothing at all > [probably causes a Javascript error], no "alert". > > What should I do ?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







