[nodejs] Re: Express sending back JSON via Ajax Get Issue

2015-07-01 Thread A
Forgot to mention, if it matters, that it is a JQuery operation On Wednesday, July 1, 2015 at 3:38:50 PM UTC-4, A wrote: > > HI, > > I have a page that is requesting data via ajax as such > > > url = 'hello/world/123', > method: 'get', > > ... > > The route is this > app.get('/hello/world/:nu

[nodejs] Re: Express sending back JSON via Ajax Get Issue

2015-07-02 Thread Satheesh Natesan
The problem is in the client code. What is the client code? On Wednesday, July 1, 2015 at 12:38:50 PM UTC-7, A wrote: > > HI, > > I have a page that is requesting data via ajax as such > > > url = 'hello/world/123', > method: 'get', > > ... > > The route is this > app.get('/hello/world/:num',

[nodejs] Re: Express sending back JSON via Ajax Get Issue

2015-07-02 Thread A
I am using JEasyUI This same code works with ASP.net (no routes, just straight linking to a page). I am just trying migrate to nodejs Course Description Course ID Completion Date Total Hours Contact Ho

[nodejs] Re: Express sending back JSON via Ajax Get Issue

2015-07-02 Thread A
Just tried with plain ajax...get the same thing, the result overwrites the page with tis data and all I see is the valid json $(function () { $.ajax({ type: "GET", url: '/hello/world/123', data: '', contentType: "application/json; charset=u

[nodejs] Re: Express sending back JSON via Ajax Get Issue

2015-07-04 Thread A
Found it, My route was calling the return JSON, versus the page itself that has the Jquery On Thursday, July 2, 2015 at 1:25:00 PM UTC-4, A wrote: > > Just tried with plain ajax...get the same thing, the result overwrites the > page with tis data and all I see is the valid json > > > $(functi