PDA

View Full Version : problem with formUpdate()



sunanda21
16 Apr 2007, 5:05 PM
Hi All,

Iam using formUpdate() method of Tab, but its not posting my data(means the post request is completed by my fields are not posted)
i placed an alert in showUpdate method in yui-ext.js after
formEl=YAHOO.util.Dom.get(form);
the alert is alert(formEl);alert(formEl.innerHTML);
when i pass form id with formUpdate then my first alert is null then i get jsExceptions saying formEl is null
when i pass form object with formUpdate then my first alert is object , second alert is empty(nothing is printed in alert);
then i given YAHOO.util.Dom.get(formid) and alerts in my code , its working fine its giving correct info
and also iam unable to use Form.serialize(form) in my script its giving Form is null or not an object JS error.

please help me

Animal
16 Apr 2007, 11:27 PM
Do not use alerts to debug. You are wasting a lot of time by doing that.

Use the Firefox browser for testing with the Firebug add on.

http://www.mozilla.com/en-US/firefox/

http://getfirebug.com/releases/firebug1.0-current.xpi

Then you can set breakpoints in your code, step through code, examine what variables contain what, and also type in javascript expressions to test what they do, and what is available.

For the record, formUpdate is not a method of a TabPanelItem.