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

Re : ajax call to database example

$
0
0
Without seeing your app, it's hard to tell what the problem is.

Is your server returning JSON data (verify this in the network tab of your dev tools)
If it's returning data, is it an Array of objects?
If you print out the results of the findAll, what comes back?
  1. Cookbook.Models.Recipe.findAll({}).then(function(results){
  2.     console.log(results);
  3. });
There could also be problems with how you are using the results. This should plug into the Cookbook example and work. Have you made any modifications to the example application?

Viewing all articles
Browse latest Browse all 3491

Trending Articles