Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : ajax call to database example

$
0
0
I have to use POST for Asp.Net.  I have to send in my own json for params.
I can get this to run as far as my server code.
But the recipes don't appear on the page.

findAll: function(paramz, success, error) {
    var vars = "{ paramz : 'nada' }";
    return $.ajax({
        type: "POST",
        url: "/WebService1.asmx/recipes",
        data: vars,
        contentType: "application/json; charset=utf-8",
        dataType: "json recipe.models"
    });
},


Viewing all articles
Browse latest Browse all 3491

Trending Articles