You are here: Re: onsubmit « HTML « IT news, forums, messages
Re: onsubmit

Posted by Jeff on 01/15/08 03:13

Chris wrote:
> I have two onsubmits I'd like to include in my <FORM...> tag and
> wanted to know before I go through the work of putting in all the code
> if this is even allowed. And if not then how should I be calling it?
>
> <FORM action="test.cgi" method="POST" onsubmit="csave()"
> onSubmit="return checkform()">

I'm going answer this, even though it's a rather dumb question and
off topic here, because I want you to have an answer. And I think most
here will misread the question. Next time post to comp.lang.javascript
after reading the FAQ there.

First, you can just call one javascript from inside the other, that's
the best way to do that.

otherwise:

<form onsubmit="csave();return checkForm()"...

You don't want two onsubmits, lowercase is correct here as it is for
form and action.

Jeff

>
> Thanks,
> Chris

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация