Edit

Forums
FatWallet

javascript errors Archived From: FatWallet

  • tweet this
  • Post to Facebook
  • Text Only
  • Search this Topic »
  • Classic
  • Page :
  • 1
alert mods    

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';


Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


alert mods    

IE Error prompt (5.15kB)

So is this being worked on? Whats going on?

Members of our community may attach files to a post in accordance with the User Agreement. FatWallet is not responsible for the content, accuracy, completeness or validity of any information contained in any attached file. Files have *not* been scanned for viruses. Be especially wary of Excel files which may contain malicious content.

alert mods    

.


alert mods    

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.


alert mods    

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


alert mods    

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.


alert mods    

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


alert mods    

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.


 Close

Sign Me In
Nickname: 
Password: 
Remember My Login Information:

Forget your login information?

Not Already A Member?
Sign Up Now!



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-2009