Current location: Hot Scripts Forums » General Web Coding » JavaScript » AJAX, Simple Question (I think)


AJAX, Simple Question (I think)

Reply
  #11 (permalink)  
Old 09-04-06, 02:27 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, if you have an element named submit, it will override the form's method called submit().
document.forms.login.submit() doesn't work because the submit() method belongs to the form element itself, not the submit-button element.

alert(document.forms[0]) will and should return a form object, since that's a reference to the first form element of the page.

I'm glad you got it to work!

Btw, if you make modifications to a script other than those suggested in the thread, please explain them briefly. That makes it easier to follow what you're doing without reverse-engineering the code.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pretty simple ( i think) question any help!?!? 0o0o0 PHP 2 04-07-06 10:47 AM
need help simple question, but need it right. 0o0o0 PHP 3 01-31-06 04:21 PM
simple question... tophat PHP 2 01-25-06 12:05 PM
Simple question Maniax JavaScript 4 08-31-04 01:08 PM
Simple question kashi PHP 5 08-13-04 10:23 PM


All times are GMT -5. The time now is 11:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.