Reference Error Invalid Assignment Left-Hand Side Array Worksheets

03-04-2008, 09:38 AM#2

My Blog: FundaMental Disaster

Accessible DHTML Tabs | Quick CSS Positioning Explanation | Quick Floated Elements Explanation | 50% + 50% != 100% | Gaps Under Images | ID vs. Class | Gappy Lists in Internet Explorer | Why Tables Are Slower | Benefits of XHTML vs. HTML | Linking to External Style Sheets | About DOCTYPES | Web Design is a Peanut Butter & Jelly Sandwhich | CSS: To Hack Or Not To Hack |
Internet Explorer and Transparent PNGs


document.minibus-hire.cost.value = 5;
The dash in the form name is telling the browser to subtract document.minibus from .cost.value and make it equal to 5. You cannot use dashes in property names when referring to the property in this fashion.


document.forms["minibus-hire"].cost.value = 5;
The above code would be valid. I also recomment using the document.forms array instead of document.form_name.

Слушаю, Джабба. Металлический голос Джаббы заполнил комнату: - Мидж, я в главном банке данных. У нас тут творятся довольно странные вещи.

One thought on “Reference Error Invalid Assignment Left-Hand Side Array Worksheets

Leave a Reply

Your email address will not be published. Required fields are marked *