CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of ajax
var x = $.ajax({
  type: "POST"
  , url: path + "ReceiveVoucher/Getpatientbyid"
  , data: JSON.stringify({id: 123})
  , contentType: "application/json"
  , dataType: "JSON"
  , async: false
});
return JSON.parse(x.responseText)[0];
by Ehsan Munna   August 25, 2014 @ 9:38pm
Tags: ajax, return, value, async, get, by, id
41 Views
no comments
 
var Customer = { CustomerName: 'Fernandese', Address: 'Delhi' };
 $.ajax({
     type: "POST",
     url: "http://localhost:10647/JsonTest.svc/Rest/PostJsonTestData",
     data: JSON.stringify(Customer),
     contentType: "application/json; charset=utf-8",
     dataType: "json",
     success: function (data, status, jqXHR)
     {
         alert(data);
by Ehsan Munna   July 24, 2014 @ 1:22am
61 Views
no comments
 
$.ajax({
   type:'post',
   datatype:'json',
   url:'/RoleManagement/GetRolePermissionForm/',
   data:{roleId:'0'},
   success:function(i){$('#element').html(i.form);}
});
by cyberjeff29   January 29, 2013 @ 8:01pm
Tags: ajax, json
132 Views
no comments
 
jQuery(document).ready(function(){
	jQuery(document).ajaxSend(function(e,XHR,options){
		//loading提示
		hb.util.Message.show({
			msg:hb.util.context.msg.comm_loading,
			isCompleteClear:true,
			bar:[]
		});
		
	}).ajaxError(function(e,XHR,settings,thrownError){
by x03570227   November 03, 2011 @ 7:21pm
565 Views
no comments
 
// The view: Index.aspx

<!-- the non-AJAX form to filter the list -->
<% using (Html.BeginForm()) { %>
    <fieldset>
    <legend>Search</legend>
    <input name="SearchTerm" />
    <input type="submit" value="Go" />
    </fieldset>
<% } %>
by Jerry Nixon   March 05, 2010 @ 9:32am
Tags: C#, AJAX, MVC
1024 Views
no comments
 
C#
//
// GlossaryController.cs

public ActionResult Index()
{
    return View(Models.Term.SelectAll());
}

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(FormCollection collection)
by Jerry Nixon   March 05, 2010 @ 9:29am
Tags: C#, AJAX, MVC
730 Views
no comments
 
// GET ${src}
// Range:bytes=${startposition}-${endposition}
var rst = new ActiveXObject("Microsoft.XMLHTTP");
var act = document.getElementById("somediv");
function get_html() {
    rst.abort();
    rst.open("GET", "www.baidu.com", true);
    rst.onreadystatechange = get_text;
    rst.setRequestHeader("Range","bytes=20-");
    rst.send(null);
by yuyu1984   January 10, 2010 @ 10:24pm
486 Views
no comments
 
error: function(xhr, status) {                   
    var err = null;
    if (xhr.readyState == 4) {
        var res = xhr.responseText;

        if (res && res.substr(0,1) == '{')
            var err = JSON.parseWithDate(res);
        if (!err) {
            if (xhr.status && xhr.status != 200)
                err = new CallbackException(xhr.status + " " + xhr.statusText);
by Rick Strahl   September 11, 2009 @ 6:43pm
784 Views
no comments
 
brought to you by:
West Wind Techologies