More XMLHttpRequest madness: JPSpan 0.4

By | | PHP

8

After renaming this, the next release is finally out.

The release notes explain roughly what’s changed – given the name change took the opportunity to break every API I could find ;) Actually not that bad and should now be less work writing servers.

The newest and “most exciting” example, complete with very dodgy HTML, is the logger which allows you to read and update a log file on the server at the same time. Have tried to explain what the examples are doing here.

Anyway – downloads at http://prdownloads.sourceforge.net/jpspan/.

Otherwise, a couple more nice examples of XMLHttpRequest in action (not JPSpan BTW) – wordpress calendar plugin (try browsing through the months top right) and LiveWiki (double click in the sandbox…)

Written By:

Harry Fuecks

Harry has been working in corporate IT since 1994, with everything from start-ups to Fortune 100 companies. Outside of office hours he runs phpPatterns: a site dedicated to software design with PHP that aims to raise standards of PHP development. He also maintains Dynamically Typed: SitePoint's PHP blog.

 

{ 8 comments }

Mark C June 21, 2005 at 3:22 am

You can check out my use of JPSpan on my little image search site http://www.mondomole.com

well ok…maybe it’s not that interesting…

-Mark

Mark June 3, 2005 at 5:26 am

Anyone know how to manipulate the browser DOM from php, JPSPAN doesnt seem to do this, or have I missed somthing?

HarryF November 30, 2004 at 5:04 pm

Actually, the example with the country autocompletion sucks.

Guilty ;) As suggested here;

Use of events is clunky but shows the basic idea.

May sort that out later but the example is intended to focus on the use of JPSpan.

I can’t get CVS annonymous access to JPSPAN :(

Not good. Right now not doing anything (release is the latest) but SF is about to make some big changes to it’s servers, which may be related. They also have periods where things go offline. Best keep trying.

pachanga November 26, 2004 at 7:04 am

I can’t get CVS annonymous access to JPSPAN :(


cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jpspan login
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401:/cvsroot/jpspan
CVS password:
cvs [login aborted]: unrecognized auth response from cvs.sourceforge.net: M PserverBackend::Pser
verBackend() Connect (Connection refused)

dusoft November 24, 2004 at 8:39 pm

Actually, the example with the country autocompletion sucks. Try to input Czech Republic, even after writing Czech, it get automatically changed to Caledonia. That is not really logical and it seems to me the example is buggy. Same goes for United States/Kingdom and few other examples. Almost each country I’ve tried had some problems…

HarryF November 24, 2004 at 4:48 pm

Probably the best place for feedback right now is either the bug tracker, this blog or somewhere on the wiki.

Got inboxes right now that make me enjoy things like doing the washing up.

David Hay November 24, 2004 at 1:44 pm

Hi.

I am using XMLHTTPRequest and would like to be able to display a modeless dialog (or set a message via DHTML) to the user prior to making the request to warn them that there may be a delay (in my app, this can be up to 5 seconds before the response). Problem is that no matter what I do (create a window, use popup, set an element value using innerHTML) the screen does not update until after the response has been received!
Does any one know how to force the browser to re-draw before executing the XMLHTTPRequest call? I’m using IE and Firefox…

Thanks…

Marcus Whitney November 24, 2004 at 12:36 pm

Excellent Harry. This is a really great contribution to the PHP community, keep up the good work. I’ll download and play with it and give you some feedback next week!

Comments on this entry are closed.