I'm currently working on a little web interface for an app I wrote, and I want it to use Ajax to get the status of my application.
Without Ajax it works perfectly fine. I use com.buglabs.services.ws.IWSResponse to create a little web page with all the status info.
This might just be my lack of experience with Ajax, but is there a way to get IWSResponse to react to my Ajax requests? The code below works with foo.php pages, but IWSResponse won't react to it.
Hi Kabada – I’m not the only BUG employee, but for some reason I seem to be the first to come across your questions…
I’m have not used the IWSResponse. Every time I create a web service, I use a custom servlet. This application, I think, is a good place to learn how to do that—http://buglabs.net/applications/SimpleServlet . Hopefully one of my colleagues that is more familiar with IWSResponse can chime in, though.
In the meantime, have you successfully been able to hit that url by plugging it into a browser? Also, a command line tool called curl is super-useful for debugging web services. Is the page containing the ajax client code stuff served from 10.10.10.10? I know that browsers may block asynchronous requests from pages originating from a different IP for security reasons.
Those are my first ideas. If anyone else sees this and wants to chime in, please do.