GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   java-script help - AutoGallery submit form (https://gfy.com/showthread.php?t=250503)

grannytgp 03-10-2004 09:36 PM

java-script help - AutoGallery submit form
 
I'm looking to implement the Filthbot "Description Length Validator" script into my AutoGallery SQL submit form. I actually have the code inserted into the form page, and have it working just fine -- but have one problem.

The new version of AutoGallery uses java-script of its own to validate the email/gallery URL/# of thumbs. So within the POST method code, autogallery uses an "onSubmit" handler to run the validation script before the form is posted.

Now with the addition of the Description Length Validator, I have to add another handler to the POST method line -- only problem is, I can't get two "onSubmit" handlers to work properly.

I know there are basically two ways around this:

1. Combine both validation scripts into one script, and then I would only need one handler.
2. Figure this bugger out to use two "onSubmit" handlers - which is what I've been trying to do unsuccessfully so far :)

Here are some I've tried so far without success:

PHP Code:

onsubmit="return (checkForm(this) && return Desc_Validator());">
onsubmit="return Desc_Validator();return checkForm(this);">
onsubmit="return checkForm(this) & return Desc_Validator();">
onsubmit="return checkForm(this) && return Desc_Validator();"

Any help on this one would be greatly appreciated.

mike503 03-10-2004 09:50 PM

icq/email me

grannytgp 03-11-2004 12:03 AM

mike503 hooked me up... thanks a bunch man. So issue is now dead :ak47:


All times are GMT -7. The time now is 07:20 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123