Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Oct 17, 2012

HTML form validation using JavaScript


To download code - Click here



To view demo click Register button







 




 



 







Step 1



Create one HTML file named index.html and paste the following code and save it.


Oct 10, 2012

Ajax - Jquery Auto Refreshing DIV


 


The following demo example display server timestamp on every 2 second. You can easily edit the code and display any database content.


 





 


 


 


You have a div that you would like to be up to date on your website without having the page refresh event, this problem can be solved by using the following script. Let’s say that you want to show the total number of rows in a particular table on every 3 second without performing a page refresh event. Then do the following steps


 



 


Step 1 - Load ajax Script


 


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>


 


This script load ajax script remotely.



Sep 13, 2012

A simple Java Script Date Picker Function


 



A simple and effective date picker can be created using the following java script codes.



 






To download code - Click Here





Step 1



Create an index.html file and paste the following codes.



Aug 5, 2012

How to retrieve data from database using AJAX in PHP


 



To download code - Click Here



To retrieve data from MYSQL or any database using AJAX, you need to do the following steps



Step 1



Create a database db_test and add one table named test with the following fields



name



username



department



phone