javascript errors

Archived From: FatWallet
  • Page :
  • 1
  • Text Only

When posting a message, I get javascript errors. Multiple computers, multiple browsers...

Error: formRef.subbtn is undefined

formRef.subbtn.disabled = true;
formRef.subbtn.style.background = '#BBBBBB';
formRef.subbtn.style.color = '#EEEEEE';



So is this being worked on? Whats going on?


.


looking at the code...

The reply button has the attributes:
name="reply" id="subbtn"

You can't use:
formRef.subbtn.disabled = true;

it should be either:

formRef.reply.disabled= true;
or
document.getElementById('subbtn').disabled=true;

you can use the bolded code to fix the javascript so that we dont get javascript errors every time we try to post a message.


I wasn't able to reproduce the errors, but I've notified the dev team.
Thanks.


mudley said: I wasn't able to reproduce the errors, but I've notified the dev team.
Thanks.

Happens to everyone in modern. Just enable bug alerts.


I see it in the error console, but I can't get anything to pop up.
Either way, dev is notified.


I make sure that all my staff test the sites they develop in IE with debugging turned on. Also, I have them turn on the firefox error console and test the sites out in firefox.

When javascript breaks, usually all script following also breaks. While it might not seem like a big issue, the simple disable button form might disable other scripts that you intend to run.




Disclaimer: By providing links to other sites, FatWallet.com does not guarantee, approve or endorse the information or products available at these sites, nor does a link indicate any association with or endorsement by the linked site to FatWallet.com.


While FatWallet makes every effort to post correct information, offers are subject to change without notice.
Some exclusions may apply based upon merchant policies.
© 1999-2012