Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fw: [Javascript] script no longer working with new FF
- From: java.script at cutterscrossing.com (Cutter (JS Related))
- Subject: Fw: [Javascript] script no longer working with new FF
- Date: Thu Nov 30 06:20:26 2006
Reserved word maybe? Try renaming (attrName ?) Cutter ________________ http://blog.cutterscrossing.com Michael Borchers wrote: > >> the following script worked fine for switching several checkboxes, now, i >> guess since the new FF, it stopped working. >> some kind of case-sensitive prob?! >> >> <input type="checkbox" name="checkBoxSelect" id="checkBoxSelect" >> onclick="javascript:checkboxSwitch(this, 'whatever');" /> >> >> >> function checkboxSwitch(thisCheckbox, checkboxSubstring) >> { >> if(thisCheckbox.checked == true) >> { >> var checked = true; >> } >> else >> { >> var checked = false; >> } >> >> var checkboxField = document.getElementsByTagName("input"); >> var checkboxFieldLength = checkboxField.length; >> var SubstringLength = checkboxSubstring.length; >> >> for(c=0;c<checkboxFieldLength;c++) >> { >> var attributeName = checkboxField[c].getAttribute("name"); >> var attributeNameLength = attributeName.length; >> var SubstringStart = >> parseFloat(attributeNameLength)-parseFloat(SubstringLength); >> >> if(attributeName.substring(SubstringStart, attributeNameLength) == >> checkboxSubstring) >> { >> checkboxField[c].checked = checked; >> } >> } >> } > > obviously it's a problem with the "attributeName" in FF, any ideas?! > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript -- Cutter ____________ http://blog.cutterscrossing.com "The Past is a Memory The Future a Dream But Today is a Gift That's why they call it The Present"
- Follow-Ups:
- Fw: [Javascript] script no longer working with new FF
- From: Michael Borchers
- Fw: [Javascript] script no longer working with new FF
- References:
- Fw: [Javascript] script no longer working with new FF
- From: Michael Borchers
- Fw: [Javascript] script no longer working with new FF
- Prev by Date: Fw: [Javascript] script no longer working with new FF
- Next by Date: Fw: [Javascript] script no longer working with new FF
- Previous by thread: Fw: [Javascript] script no longer working with new FF
- Next by thread: Fw: [Javascript] script no longer working with new FF
- Index(es):