I don't know node.js at all. I know what it is and I know about some of the cool stuff that can be done with it, but I've had no experience with it. If Blasty sees this post he might be able to offer some tips as I'm pretty sure he's a bit to do with node.js.
I might set it up on my server one day, but currently php does everything I need so I'm in no rush to do it.
As for json, the query actually built from an array of names that's why I use JSON.Stringify. Pretty sure the server expects it to be that way. But I expect you don't actually need to do that for a single name.
As for jsonp, it's basically to allow cross-domain requests with a callback. The 'p' stands for padding and all that means is padded with a script tag. Basically it's script injection and the callback essentially means we call a function with the returned data.
I'm really not ver good at explaining this stuff.
Edit:
I just found a better (and probably more accurate explanation) on SO. Here's the link if you're interested:
http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about/6879319#6879319
26-Apr-2016 18:27:44
- Last edited on
26-Apr-2016 18:29:34
by
Indecent Act