Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  9] [ 5]  / answers: 1 / hits: 42165  / 14 Years ago, sat, september 18, 2010, 12:00:00

I am new to stackoverflow i have doubt regarding calling jsp from javascript file.
my file contain one html file with javascript(home.html) and one jsp file(login.jsp)
In html(home.html) file i have 2 textbox and 2 buttons one for login and another for reset.when i click the login button i should call a js for textbox field validation (ie for if any one of the textbox is empty it shows text fields should not be empty alert msg to user)if both the textbox have value then it should call a jsp page(login.jsp).Thanks in advance


More From » jsp

 Answers
8

Try using jquery



$.post(login.jsp, { name: John, time: 2pm },
function(data){
alert(Data Loaded: + data);
});


ref: http://api.jquery.com/jQuery.post/


[#95581] Thursday, September 16, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lelasamiraa

Total Points: 208
Total Questions: 99
Total Answers: 107

Location: Uzbekistan
Member since Tue, Nov 30, 2021
3 Years ago
;