Hai the readers of javatyro, today am going to explain the form submit in webpages without refresh or without changing the page . jQuery is a google library it has a capability to change the values on live change using $("slector").live() . i hope you will like the tutorial..
DOWNLOAD TUTORIAL:click here
Database :
Validations using jquery
$(function() { $(".submit").click(function() { var name = $("#name").val(); var username = $("#username").val(); var password = $("#password").val(); var gender = $("#gender").val(); var dataString = 'name='+ name + '&username=' + username + '&password=' + password + '&gender=' + gender; if(name=='' || username=='' || password=='' || gender=='') { $('.success').fadeOut(200).hide(); $('.error').fadeOut(200).show(); } else { $.ajax({ type: "POST", url: "ajax-form.jsp", data: dataString, success: function(){ $('.success').fadeIn(200).show(); $('.error').fadeOut(200).hide(); } }); } return false; }); });ajax-form.jsp
<%@page import="java.sql.*"%> <% if(request.getParameter("name")!=null) { String name=request.getParameter("name"); String username=request.getParameter("username"); String password=request.getParameter("password"); String gender=request.getParameter("gender"); try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:form"); Statement stmt=con.createStatement(); stmt.executeQuery("insert into login values('"+name+"','"+username+"', '"+password+"','"+gender+"')"); con.close(); } catch(Exception e) { out.println(e); } } %>
Android Tutorial Basic to Advance: Click Here
ReplyDeleteAndroid User Interface Tutorial: Click Here
jianbin1205
ReplyDeletecheap uggs
north face outlet online
coach outlet online
uggs outlet
snapback hats
true religion outlet,true religion jeans,true religion kids,true religion jeans sale,true religion jeans for men,true religion jacket,true religion sale
cheap oakley sunglasses
moncler coats
ugg boots on sale
cyber monday
kobe bryants shoes 2015
polo ralph lauren uk
moncler outlet
lululemon outlet
prada outlet
chanel handbags
ugg uk outlet
toms outlet
canada goose outlet
the north face jackets
new england patriots
chicago blackhawks
michael kors outlet sale
new york giants
air force one shoes
nike air max 90
ugg boots
air jordan 11 free shipping
michael kors handbags
nike trainers uk
air jordan shoes
kansas city chiefs
chicago bulls
Great Article
ReplyDeleteJavaScript Training in Chennai | JavaScript Course | Javascript Online Course | Angularjs Training in Chennai | Backbone.JS Training in Chennai | Bootstrap Training in Chennai | Node.js Training in Chennai
Great Article
Online Java Training | Java Training in Chennai | Java Training Institutes in Chennai | Java EE course | Java Course in Chennai | J2EE Training in Chennai | java j2ee training institutes in chennai | Java 360
For most business owners, making the decision to implement an IVR or voice response software is easy. Here are some tips for choosing IVRs and providers that will benefit you the most.
ReplyDeleteInteractive Voice Response System
Burberry Outlet
ReplyDeleteOakley Eyeglasses Michael Kors Outlet Coach Factory Outlet Coach Outlet Online Coach Purses Kate Spade Outlet Toms Shoes North Face Outlet Coach Outlet Gucci Belt North Face Jackets Oakley Sunglasses Toms Outlet North Face Outlet Nike Outlet Nike Hoodies Tory Burch Flats Marc Jacobs Handbags Jimmy Choo Shoes Jimmy Choos
Burberry Belt Tory Burch Boots Louis Vuitton Belt Ferragamo Belt Marc Jacobs Handbags Lululemon Outlet Christian Louboutin Shoes True Religion Outlet Tommy Hilfiger Outlet
Michael Kors Outlet Coach Outlet Red Bottoms Kevin Durant Shoes New Balance Outlet Adidas Outlet Coach Outlet Online Stephen Curry Jersey
Thank you for sharing any good knowledge and thanks for fantastic efforts
ReplyDeletefire fighting jobs
firefighter
fire fighting academy
Arsisc
fire fighting course
i appreciate the good efforts
ReplyDeletesai
ادارة الموارد البشرية
الخرائط الذهنية
Nice looking sites and great work. Pretty nice information. it has a better understanding. thanks for spending time on it.
ReplyDeleteBest Industrial Training in Noida
Best Industrial Training in Noida
Everythings Works Perfect!
ReplyDeleteBest BCA Colleges in Noida
Everythings Works Perfect!
ReplyDeleteBest BCA Colleges in Noida
moncler outlet
ReplyDeletecoach outlet online
yeezy 500
michael kors outlet online
balenciaga shoes
jordan shoes
supreme clothing
supreme hoodie
supreme new york
nike x off white
more helpful hints replica bags buy online about his Ysl replica bags click for source gucci replica bags
ReplyDeleteimportant link Ysl replica my latest blog post best replica designer bags click site best replica designer bags
ReplyDeleteYour Domain Name look at this web-site go to my blog navigate to this website his explanation go to these guys
ReplyDeletedirectement depuis la source répliques de sacs de créateurs en gros cliquez sur le site dolabuy passez sur ce site Dolabuy Chrome-Hearts
ReplyDeletegoyard bag
ReplyDeletebape hoodie
yeezy
curry 9
palm angels t shirt
bape outlet
off white
bape hoodie
jordan travis scott
supreme outlet