#2560 closed defect (fixed)
Form widget : null point exception
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4.1 |
Keywords: | widget Form NullPointException | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
at function "getValues" on widget/Form.js, there is code such as:
if(elm.name == '') {continue;}
it's too simple for elm.name checking, because elm.name might be undefined ( some element doesn't need the name property, eg: label,fieldset ). So there is a null point exception will be throwned. it should be changed like:
if(elm.name && elm.name == '') {continue;}
Attachments (1)
Change History (4)
comment:1 Changed 14 years ago by
comment:3 Changed 14 years ago by
Cc: | [email protected]… added |
---|
or just !elm.name |
Changed 14 years ago by
Attachment: | Form3.patch added |
---|
Fixes name problem (if empty or not defined) and adds support for Combobox and adds a comment =)
Note: See
TracTickets for help on using
tickets.
We used dojo toolkit several months. I want to use it to make a js full stack web application.