Ajax method Example

Ajax method without parameters
 
$.ajax({
$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {
$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {
$.ajax({
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "ViewEvents.aspx/GetEvents",
                dataType: "json",
                success: function (data) {

Comments