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);}
});
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:[] });
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>
909 Views
no comments
// // GlossaryController.cs public ActionResult Index() { return View(Models.Term.SelectAll()); } [AcceptVerbs(HttpVerbs.Post)]
621 Views
no comments
// LivePreviewPlugin.cs // using System; using System.Collections; using System.Html; using System.Runtime.CompilerServices; using jQueryApi;
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-");
391 Views
no comments
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');
});
});
}
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)
653 Views
no comments
Subscribe
Discuss
News
About
New Snippet
Recent Snippets
My Snippets
Favorites
Web Code
Search