This is a discussion on "[SOLVED] Why this does not work?" within the JavaScript Forum section. This forum, and the thread "[SOLVED] Why this does not work? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Why this does not work?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I am a javascript beginner and want to submit a php form by a usual button not submit button.
I wanted to do this by document.<formname>.submit() ,but this did not work and I get an error in javascript console that saied submit() is not a function. I would be very grateful if someone can help me to achieve this problelm? |
|
|
|
|||
|
Re: Why this does not work?
Does this helps?Any reason you don't want to use the normal html submit button?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Jan 4th, 2008 at 04:20. |
|
|||
|
Re: Why this does not work?
Thanks Monie,
First, I have to use this method because I use AJAX to send some information to web server and authonticate via mysql. So I have to use another submission method than usual submit button. Second, Again thanks for your links but they could not help me because I do all the things correct but the submit() does not trigger and I get the following error from javascript console : document.<formname>.submit() is not a function? I do not know what I have done that this happen. All the things are correct and work but this. |
|
|||
|
Re: Why this does not work?
Did you have this kind of button somewhere else in your page?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Why this does not work?
Quote:
Quote:
Just guessing here since I don't have your full HTML file. So your submit function would be like this:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Why this does not work?
I am very grateful because of your big help. The problem was exactly that and this took one day or more.
|
|
|||
|
Re: [SOLVED] Why this does not work?
I am glad it solved your problem!
I beat Rakuli and c010depunkk on this
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript menu - does not work on title page, but does work on other pages | Crystal Phoenix | Starting Out | 4 | Mar 24th, 2008 19:40 |
| [SOLVED] Links not working in IE but work in FireFox/Safari | skuliaxe | Web Page Design | 2 | Mar 17th, 2008 15:52 |
| [SOLVED] I Cant Get My Thing To Work Proper | lung | Starting Out | 9 | Nov 17th, 2007 12:34 |
| simple js doesn't work with IE7 (work with FF1.5) | gpazi | JavaScript Forum | 1 | Jun 10th, 2007 11:00 |