- Forums - Reply - Statistics - Sign Up - Search -

The Wyzz WYSIWYG Editor / Coding Discussion / submission with image file instead of submit button doesnt work
Author Message
Patrick
Member
# Posted: 1 May 2009 14:07


Hi,
I have the following problem:

When I submit using a standard button (<input type="submit" name="Submit" value="Submit">) I can retrieve the content from the textarea (e.g. 'textfield').

When I use a picture to submit the page (e.g. <a href="javascript:submit_form();"><img src="../save_icon.gif"></a>)
it doenst work at all. ('textfield' is empty)

Is there a reason why I cannot use a javascript function first before submitting?

thanks
Patrick

e.g. the function above could be something like
function submit_form()
{
// do some field checks first
form1.submit();
}

Your answer

Bold Style  Italic Style  Underlined Style  Image Link  URL Link  Disable BB codes *What's that?

 » Name  » Password 
 Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

Powered by miniBB forum software © 2001-2010