updating database

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
athlhaz
Forum Newbie
Posts: 9
Joined: Fri Dec 23, 2011 12:00 am

updating database

Post by athlhaz »

can i update my database using the on completed function of javascript?
here's my code..

Code: Select all

<script type="text/javascript">
  $(document).ready(function(){
    $("a").click(function(e){
	  e.preventDefault();
	  jSuccess(
		'<center>Password has been reset.</center>',
		{
		  autoHide : false, // added in v2.0
		  clickOverlay : true, // added in v2.0
		  MinWidth : 250,
		  TimeShown : 3000,
		  ShowTimeEffect : 200,
		  HideTimeEffect : 200,
		  LongTrip :20,
		  HorizontalPosition : 'center',
		  VerticalPosition : 'center',
		  ShowOverlay : true,
   		  ColorOverlay : '#000',
		  OpacityOverlay : 0.3,
		  onClosed : function(){ // added in v2.0
		   
		  },
		  onCompleted : function(){ // added in v2.0

		  }
		});
	  });
    });
</script>
phpHappy
Forum Commoner
Posts: 33
Joined: Wed Oct 26, 2011 1:58 pm

Re: updating database

Post by phpHappy »

yes, in the sense you can with a post to the PHP that would actually do it
Post Reply