*
The moose likes HTML, CSS and JavaScript and the fly likes Having a small problem with a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Having a small problem with a form" Watch "Having a small problem with a form" New topic
Author

Having a small problem with a form

Phillip Haddad
Greenhorn

Joined: Aug 07, 2006
Posts: 6
Hey all,

Im still sort of new to web development but ive been having a problem with forms and trying to use a link to submit for example




basically im trying to create a link such as /resource.htm?d=aViewUser&user=<whatevername> from submitting this form and this way the link is actually hidden. However when ever i press the View link which is a javascript:submit(); nothing happens at all. Im wondering if im doing anything wrong spring side? because im very confused

Thanks heaps in advanced
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Not a JSP issue, moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

<a href="javascript:submit();">View</a>


There is no global submit() method. The submit method exists on the form element. Hint hint.
 
 
subject: Having a small problem with a form
 
Similar Threads
Getting "not a multipart request" even though the image is being saved.
Need Help with binding click events to table rows
Problem when submit a form with HTTPUnit
session management problem with iframes
onchange and form.submit() does not work