Trouble Submitting Form with JavaScript

  • Context: Java 
  • Thread starter Thread starter incognito-41
  • Start date Start date
  • Tags Tags
    Form Javascript
Click For Summary
SUMMARY

The discussion centers on issues related to submitting a form using JavaScript, specifically with a button of type "button" instead of "submit". The user initially faced challenges in ensuring that the form data was submitted after modifying text in text areas. The solution was found, indicating that the user successfully resolved the issue, although the specific method was not detailed in the discussion.

PREREQUISITES
  • Understanding of JavaScript event handling
  • Familiarity with HTML form elements and their types
  • Knowledge of DOM manipulation techniques
  • Experience with function calls in JavaScript
NEXT STEPS
  • Research how to properly use the "submit" event in JavaScript
  • Learn about the differences between button types in HTML forms
  • Explore JavaScript form validation techniques
  • Investigate the use of AJAX for form submissions
USEFUL FOR

Web developers, particularly those working with JavaScript and HTML forms, will benefit from this discussion as it addresses common issues related to form submission and event handling.

incognito-41
Messages
9
Reaction score
0
I'm having trouble sumbitting a form using javascript. The form has a submit button (type=button) that used to be type=submit. i have change it's properties so that it now calls a function that later submits the information. the problem I'm having is that when i click the submit button the function does what it's supposed to do. it just won't submit. the functions purpose is to check the text in my text areas and modify it before submitting it. the text is being modified, but not being submitted. thanks all.
 
Technology news on Phys.org
Never mind about this one. it seems I've found out how to do it.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
24
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 21 ·
Replies
21
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K