How to wrap data in a callback function?

135 views
Skip to first unread message

Diego Maria Bertini

unread,
Apr 17, 2013, 8:53:44 AM4/17/13
to asp...@googlegroups.com
Hi, I am quite new to JSON in general, so you would forgive possible naiveness...
I have a classic ASP page which would retrieve bibliographic data from a biomedical database via Ajax; the problem is I am forced to have the client page on a server, and the server page on another server (in our intranet). So I cannot follow my abitual practice (I use xmlhttprequest), but I should use a JSON. I am using Jason Levitt's JSONScriptRequest class (http://www.xml.com/pub/a/2005/12/21/json-dynamic-script-tag.html?page=1).
The documentation states that the web service request must specify that the data should be wrappe in a callback function whose name is to be specified in the request URL. Now I am wondering how on earth I can perform this with JSON for ASP (my server page is producing an apparently correct JSON thanks to JSON for ASP, but it doesn't know the name of the callback function).

Thank you very much for your support
Diego

Tuğrul Topuz

unread,
Feb 15, 2015, 11:06:34 AM2/15/15
to asp...@googlegroups.com
I think you wanna JSONP support?

17 Nisan 2013 Çarşamba 15:53:44 UTC+3 tarihinde Diego Maria Bertini yazdı:
Reply all
Reply to author
Forward
0 new messages