CodePaste Logo
New Snippet New Snippet 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
$.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
51 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:[]
        });
        
by x03570227   November 03, 2011 @ 7:21pm
371 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
909 Views
no comments
 
C#
//
// GlossaryController.cs
 
public ActionResult Index()
{
    return View(Models.Term.SelectAll());
}
 
[AcceptVerbs(HttpVerbs.Post)]
by Jerry Nixon   March 05, 2010 @ 9:29am
Tags: C#, AJAX, MVC
621 Views
no comments
 
C#
// LivePreviewPlugin.cs
//
 
using System;
using System.Collections;
using System.Html;
using System.Runtime.CompilerServices;
using jQueryApi;
 
by Nikhil Kothari   February 25, 2010 @ 11:25am
1189 Views
1 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-");
by yuyu1984   January 10, 2010 @ 10:24pm
391 Views
no comments
 
C#
 
function setWards(o) {
    $.getJSON('/Home/GetWards/?cbd_id=' + o.value, null, function(data) {
        $('#ward').empty();
        $.each(data, function(i, item) {                   
            $('<option/>').attr('value', item.ID).html(item.Name).appendTo('#ward');
        });
    });
}
by Paul   September 29, 2009 @ 3:55pm
388 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)
by Rick Strahl   September 11, 2009 @ 6:43pm
653 Views
no comments
 
brought to you by:
West Wind Techologies