confusion over "this.load('myRoute/GetItems.json')"

37 views
Skip to first unread message

boolean

unread,
Apr 26, 2012, 11:29:38 PM4/26/12
to sam...@googlegroups.com
Hi all

I've been going through the tutorial on the main sammy.js site, and when I was asked to enter the following code I received a 404 (using MVC3)

 this.load('myRoute/GetItems.json')

This returns an error saying it could not find "/GetItems.json". Makes sense I suppose, I don't have anything setup with that extension. However after fiddling about for a bit, quite by accident I found that this does work:

 this.load('myRoute/GetItems/.json') 

I've been trying to look around on google why this might work but the lack of unique keywords isn't turning up many results. Is this something specific to sammy.js, MVC .NET or jQuery about this? Any suggestions why this might be working?


Reply all
Reply to author
Forward
0 new messages