Removing HTTP headers

"David Pennington" <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi there.I am using Seaside in Instantiations VAST Smalltalk to talk to an Android mobile phone app built using Cordova (basically HTML and JavaScript).I have built a standard REST interface for obtaining and updating data,which is stored in a Riak NoSQL Key/Value database. The database data is stored as JSON and the mobile phone Javascript (via JMobile) has a JSON parser.
To make the coding easier and cleaner, I would like to just send the JSON to the app, rather than a"whole" HTML page.My call is this http://localhost:8080/WSAndroidUser?demo
This responds with:
type="text/javascript">function onLoad(){};</script></body></html>
I would like it just to respond with the JSON.

{"railroadName": "Sunset &amp; North Eastern RR","railroadLogoURL": "http://www.tm470routingproject.co.uk/images/snelogo.png","username": "demo","password": "5F4DCC3B5AA765D61D8327DEB882CF99","currentTTPositionString": "6","maxTTPositionString": "0"}
Can this be done?David

Message sent using Winmail Mail Server

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.