Re: XmlHttpRequest and WO
Re: XmlHttpRequest and WO
- Subject: Re: XmlHttpRequest and WO
- From: Benjamin Miller <email@hidden>
- Date: Mon, 13 Dec 2004 17:54:57 +0000
On 11 Dec 2004, at 20:09, email@hidden wrote:
Has anyone used XmlHttpRequest with WO?
I see it in use with Gmail and the new Google Suggest... It seems as if
WO XML support means nothing special would have to be done to get them
working.
Curious if anyone is using it in their Web apps or plans to. Seems like
a pretty exciting development.
I've been using it to provide quick search results to the user. (
http://new.watershed.co.uk - type "c", "ca", or "m" into the search
field in the header (NOT IE Mac) ). This search part of the site is
still under construction - (well most of the site is still under
construction) and haven't figured out exactly how it will work yet.
WO doesn't actually return valid XML to the xmlHTTPRequest object in
this case and I just use the response text, rather than the DOM. A
couple of other projects such as Dashboard widgets use the XML from
SOAP methods, running from WO Apps, with no problems.
For registered users with a session, the single biggest issue with the
xmlHTTPRequest was the JavaScript calling an old contextID with
component actions with the session IDs stored in the URL (see recent
thread on Backtracked Too Far errors). The xmlHTTPRequest sends
requests without receiving a new contextID so I had to use the session
ID as a direct action argument. Unless the HTML page contains the JS
and the JS is refreshed by some means you can't use a WOAction
component. Not sure if the browsers send cookies for an xmlHTTPRequest
but I can't think of any reason why not.
Benjamin
Benjamin Miller, Digital Developer
Watershed Media Centre
1 Canon's Road, Harbourside, Bristol, UK. BS1 5TX
t: +44 (0)117 927 6444, f: +44(0)117 921 3958
http://www.watershed.co.uk
iChat/AIM: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden