Javascript method


//////////////////////////////// ajaxFileUpload Method for uploding File ??????????????????????????????????????????
$.ajaxFileUpload
(
{
url:’Ajax/uploadimage.php’,
secureuri:false,
fileElementId:’txtfile’,  // input type = file , name = ‘txtfile’

data:{“albumid”:$(“#id”).val(),”txtimgtitle”:$(“#txtimgtitle”).val()},
success: function (data1, status)
{
                      alert(data1);
                 
},
error: function (data, status, e)
{
alert(e);
}
}
);

//////////////////////////////// LOAD Method ??????????????????????????????????????????

function start()
{
var url = “Ajax/loadpage.php?stext=”+$(“#txtstext”).val().replace(/^\s+|\s+$/g,””).replace(/\s/g,”~@@~”).replace(/&/g,”%26″) + ‘&ddlsschemetype=’+$(‘#ddlsschemetype’).val();
showload(“#loaddata”);
$(“#loaddata”).load(url,{},function (responseText, textStatus, XMLHttpRequest) {

alert(responseText);

});
}
//////////////////////////////// POST Method ??????????????????????????????????????????

$.ajax({
  type: ‘POST’,
  url: “Ajax/delete.php?typ=miniority”,
  data: { ‘name=’+ $(‘#name’).val() + ‘&email=’ + $(‘#email’).val() ; },
  success: function(data12){
//alert(data12);

  }});

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s