[Seaside] Removing HTTP headers

David Pennington david at totallyobjects.com
Mon Jul 10 07:44:33 UTC 2017

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 & 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20170710/f4fe895a/attachment.html>

More information about the seaside mailing list