Friday, February 18, 2005

Javascript Error - submit

A few days back while doing a javascript form submit status, I encountered the weird error in my javascript-ing life. The problem is with the statement below:

document.form.submit();
Yes, it look very much like a normal javascript form submit statement. However, on the Mozilla Firefox javascript console, it is throwing back in my face the error message "Object doesn't support this property or method"!

After desperate testing here and there, I search and google around for an answer and found out that I have make a stupid mistake. The problem was caused by having a submit button that has the name "submit", ie:
<input type="submit" name="submit" value="Submit">
As the form submit is a reserved method, any button name or input name that is named "submit" shall encounter this problem. So folks, take note not to name any input object "submit". The error vanished when I renamed the button to "Submit", ie:
<input type="submit" name="Submit" value="Submit">
Thanks to helpful information on the net, especially from this site here: http://www.agape-love.net/?item=document-form-submit-doesn-t-work&catid=13

Stupid Javascript :P

41 Comments:

At January 24, 2013 at 11:36 PM, Anonymous Anonymous said...

sildenafil citrate cheap generic viagra online review - best place buy generic viagra us

 
At January 25, 2013 at 12:45 AM, Anonymous Anonymous said...

buy viagra online generic viagra versus brand viagra - buy viagra online forum

 
At January 27, 2013 at 2:37 AM, Anonymous Anonymous said...

generic viagra buy viagra through paypal - viagra us pharmacy

 
At February 3, 2013 at 4:43 PM, Anonymous Anonymous said...

buy generic soma generic soma names - soma bras florida

 
At February 6, 2013 at 8:29 AM, Anonymous Anonymous said...

buy cheap soma soma online usa - soma muscle relaxer v

 
At February 6, 2013 at 9:44 AM, Anonymous Anonymous said...

order soma soma fm online radio - soma pills

 
At February 7, 2013 at 6:29 PM, Anonymous Anonymous said...

buy soma online pharmacy no prescription needed soma - soma drug test results

 
At February 8, 2013 at 11:23 AM, Anonymous Anonymous said...

buy soma buy soma - soma horas minutos online

 
At February 10, 2013 at 12:35 AM, Anonymous Anonymous said...

soma pills generic for soma muscle relaxer - soma online radio

 
At February 11, 2013 at 4:51 AM, Anonymous Anonymous said...

buy tramadol online mastercard overnight buy tramadol online no prescription needed - tramadol 50 mg compared to percocet

 
At February 13, 2013 at 12:18 PM, Anonymous Anonymous said...

cheapest cialis cialis online acquisto - cialis make you last longer

 
At February 13, 2013 at 5:22 PM, Anonymous Anonymous said...

cheapest cialis cialis 5mg side effects - cialis price with prescription

 
At February 15, 2013 at 2:03 PM, Anonymous Anonymous said...

buy tramadol cheap tramadol dogs - order tramadol with mastercard

 
At February 16, 2013 at 1:31 AM, Anonymous Anonymous said...

buy cialis online cialis women - cialis wiki

 
At February 21, 2013 at 9:03 AM, Anonymous Anonymous said...

alprazolam price xanax memory loss - xanax tolerance

 
At February 23, 2013 at 5:48 AM, Anonymous Anonymous said...

order xanax no prescription shoot up xanax pills - generic xanax qualitest

 
At February 23, 2013 at 9:17 PM, Anonymous Anonymous said...

buy tramadol 2 50 mg tramadol - good place buy tramadol online

 
At February 24, 2013 at 4:43 AM, Anonymous Anonymous said...

buy tramadol order tramadol online overnight shipping - tramadol for dogs tablets

 
At February 24, 2013 at 12:48 PM, Anonymous Anonymous said...

xanax online xanax online fedex - get xanax prescription online

 
At February 24, 2013 at 2:29 PM, Anonymous Anonymous said...

soma carisoprodol drug test for carisoprodol - carisoprodol long term side effects

 
At February 25, 2013 at 6:20 AM, Anonymous Anonymous said...

buy alprazolam online no prescription xanax effects tinnitus - generic xanax l441

 
At February 25, 2013 at 9:38 AM, Anonymous Anonymous said...

buy cheap carisoprodol carisoprodol 350 mg information - carisoprodol 350 erowid

 
At February 25, 2013 at 9:50 AM, Anonymous Anonymous said...

buy carisoprodol carisoprodol schedule change - carisoprodol safe dosage

 
At February 25, 2013 at 12:30 PM, Anonymous Anonymous said...

generic xanax online doctor prescription xanax - how much do generic xanax cost

 
At February 26, 2013 at 3:32 PM, Anonymous Anonymous said...

buy carisoprodol cod carisoprodol 350 mg addictive - carisoprodol 700

 
At February 28, 2013 at 12:24 AM, Anonymous Anonymous said...

cialis online pharmacy cialis 5 mg buy online - buy real cialis online

 
At February 28, 2013 at 1:24 AM, Anonymous Anonymous said...

order cialis online canada cialis 0.5mg - cialis 5mg reviews

 
At March 1, 2013 at 11:35 AM, Anonymous Anonymous said...

buy cialis online buy brand cialis online us - cialis online order usa

 
At March 2, 2013 at 11:06 PM, Anonymous Anonymous said...

La Introduce alight idle Jordan [url=http://www.abercrombiedeutschlandeshop.com]abercrombie deutschland[/url] V Fervency Red, coloris White-Black-Fire Red, sortie originalement en 1990 et reedite en 2000 et 2008, fera son retour au mois de janvier [url=http://www.hollisterucosfrance.com]hollister[/url] . Le meme mois sortira laAir Jordan XIII ‘He Got Making', qui a ete creee en 1997 et jamais reeditee.Un nouveau coloris de Allied Jordan III sortira au mois de fevrier [url=http://www.hollistersalenukes.co.uk]hollister[/url] (update: coloris Black-Bright Crimson) ainsi qu'un huckster nouveau coloris de Deportment Jordan XIII.
La societe utilise des ?representants de la marque", maintenant appeles ?modeles? cascade le serving [url=http://www.hollisterfrancesoldae.com]hollister[/url] shopper magasin. Les modeles ont ete obliges d'acheter et airports skycap des vetements A & F, mais a la retainers d'un reglement compagnie de reglementation de la Californie du Travail des Etats peuvent maintenant railways redcap des vetements sans logo [url=http://www.hollisterfrancece.com]hollister[/url] allotment gone away from in vista autant que cela be in accord a la saison. Le reglement Californie a egalement fourni 2,2 millions de dollars unutilized rembourser les anciens employes be adjacent to leurs achats forces de societe de marque "equipe" clothing.An brotherhood a ete cree en 2004 tongue-lashing contr?ler les marchandises a l'interieur de [url=http://www.abercrombieukandfitchs.co.uk]abercrombie and fitch[/url] chaque magasin et maintenir des normes de l'entreprise; ?Les gestionnaires visuels? sont responsables de formes, Poursuites d'eclairage, de la commercialisation photo, presentations de parfums et d'assurer modeles sont conformes a la ?politique de look". ont ete deposees contre l'entreprise en raison de pretendues pratiques discriminatoires dans l'emploi.
Il a rejoint le conseil de l'Université du Cap de Bonne-Espérance lors de sa création en 1873, même en tant que vice-chancelier à la fois. Il a fait un travail considérable en cette qualité void l'avancement des sciences naturelles [url=http://www.christianlouboutinchaussure.fr]louboutin pas cher[/url]. Il a également été membre du conseil du Collège diocésain, Submissively Town.Smith était aussi très intéressé horrid la philosophie, et il a été impliqué dans la société sud-africaine philosophique depuis sa création en 1877. Il a également occupé le [url=http://www.hollisterudeutschlande.com]hollister[/url] poste de trésorier jusqu'en 1908, quand il est devenu Swain de la Sovereign Fellowship d'Afrique du Sud - nouvellement fusionnée stream l'Federation d'Afrique du Sud. Il a re?u un doctorat honorifique [url=http://www.abercrombeimagasin4s.com]abercrombie france[/url] en droit (LL.D.), en 1917.

 
At March 5, 2013 at 1:43 AM, Anonymous Anonymous said...

http://landvoicelearning.com/#62431 buy tramadol online from usa - tramadol 50 mg dosing

 
At March 6, 2013 at 10:45 PM, Anonymous Anonymous said...

buy tramadol online tramadol dosage horses - buy tramadol online cash delivery

 
At March 8, 2013 at 11:49 AM, Anonymous Anonymous said...

klonopin online will 2mg klonopin get you high - qualitest pharmaceuticals klonopin

 
At March 9, 2013 at 12:37 AM, Anonymous Anonymous said...

tramadol overnight shipping tramadol dosage australia - order generic tramadol

 
At March 10, 2013 at 12:46 AM, Anonymous Anonymous said...

http://landvoicelearning.com/#51602 tramadol 100mg sr side effects - lowest dosage tramadol

 
At March 10, 2013 at 12:38 PM, Anonymous Anonymous said...

buy tramadol for dogs buy tramadol online legally - order tramadol no prescription cheap

 
At March 11, 2013 at 5:44 AM, Anonymous Anonymous said...

http://buytramadolonlinecool.com/#73892 order tramadol phone - buy tramadol order cheap tramadol online

 
At March 11, 2013 at 6:31 PM, Anonymous Anonymous said...

http://www.integrativeonc.org/adminsio/buyklonopinonline/#buy klonopin cost - dosage of klonopin for anxiety

 
At March 11, 2013 at 10:30 PM, Anonymous Anonymous said...

klonopin price unusual side effects klonopin - how to get klonopin online

 
At April 2, 2013 at 4:34 PM, Anonymous Anonymous said...

Those are a few tips for you to get to Delight and Normally without any trouble. [url=http://www.onlinecasinoburger.co.uk/]online casinos uk[/url] http://www.onlinecasinotaste.co.uk/ If you are having desire to play top games shape UK so you can act easy sound effects and colours. http://www.onlinecasinoburger.co.uk/

 
At May 7, 2013 at 5:30 AM, Anonymous Anonymous said...

Hmm is anyone else encountering problems with the images on this blog loading?
I'm trying to find out if its a problem on my end or if it's the blog.
Any feedback would be greatly appreciated.

Also visit my web site ... cccam server mythtv

 
At June 9, 2013 at 12:34 PM, Anonymous Anonymous said...

Cash advance loans no credit check needed financial products contracts, pursuing substantial education, for getting a novel dwelling etc more info Tenant lending products for out of work are the outstanding monetary source through which you can actually derive the total amount as per your wants

 

Post a Comment

<< Home