Fog Creek Software
Discussion Board




REST assured

Joel, you can do a kind of REST through Javascript by using these methods. I have had good results with it on IE 5, 6 and Firefox:

http://jibbering.com/2002/4/httprequest.html
http://www.15seconds.com/issue/020606.htm
http://www.quirksmode.org/dom/importxml.html

Matthew Lock
Thursday, June 17, 2004

For an example, point Moaillz/Firefox at

http://www.infodraft.com/~faser/mab/

and click "Open in Window" on the left.

This is what can be done today wirh REST.

And it's a good XUL demo too.

fool for python
Thursday, June 17, 2004

This is realy the way to go.

I wrote a web application using this method, allthough I only supported IE.  Most of my users were using slow internet connections, so I had to do something drastic to address the perfomance problems.

One thing that I have allways wanted to do, but have not found a way, is to controll the progress bar on the status bar, and the "spining earth"/"ring of dots"/"thingembob going around the N"

Good artical on method: http://devedge.netscape.com/viewsource/2003/inner-browsing/

Gary van der Merwe
Friday, June 18, 2004

Another quick-and-dirty hack method which works with older browsers is to create a new Image object whose URL is a script that returns an empty 1 pixel image or something. But can take parameters.

dummy = new Image('/script/foo?params=bar');

Only works in one direction though obviously.

Matt
Friday, June 18, 2004

You can use a tiny iframe to do the above and receive data too, but again it's a bit of a hack compared to XmlHttpRequest: http://www.howtocreate.co.uk/tutorials/jsexamples/importingXML.html

Matthew Lock
Friday, June 18, 2004

Cool thing about the above hack is that if the user is offline, they get a msg box asking if they want to go back online. When using XmlHttpRequest, an excption is thrown :-<

Gary van der Merwe
Monday, June 21, 2004

*  Recent Topics

*  Fog Creek Home