Skip to main content
Participating Frequently
February 6, 2007
Question

Bridge and XmlHttpRequest

  • February 6, 2007
  • 2 replies
  • 887 views
Hi,

Bridge can show webpages in the content pane. But if the webpages makes some kind of ajax calls with the help of XMLHTTPREQUEST this does not work in bridge. My conclusion is, that bridge does not know XMLHTTP. Is that correct?
Any idea of how to get it work? Does anyone know another way of making calls in the background?

regards,
Markus

Cologne, Germany
This topic has been closed for replies.

2 replies

dfranzen_camera_raw
Adobe Employee
Adobe Employee
May 22, 2007
Marcus and Bob,

Bridge CS3 provides HTTP and XML functionality that Bridge CS2 did not have. Check out the JavaScript Tools Guide in the Bridge CS3 SDK:

http://www.adobe.com/devnet/bridge/

You'll want to look at Chapter 6 "External Communication Tools" to learn how to use the new HTTPConnectionObject and Chapter 9 "Integrating XML into JavaScript".

-David Franzen
Adobe Bridge Quality Engineer
Adobe Systems, Inc.
Known Participant
May 22, 2007
David_Franzen@adobeforums.com wrote:
> Marcus and Bob,
>
> Bridge CS3 provides HTTP and XML functionality that Bridge CS2 did not have. Check out the JavaScript Tools Guide in the Bridge CS3 SDK:

You'll still have some XmlHttpRequest protocol stuff to deal with, but the heavy
lifting is already done, as Dave points out.

And don't be afraid to post the code here if you get it worked out :).

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
February 7, 2007
Bridge does not know XML or XMLHTTPRequest.

If you are trying to use the web browsing capabilities, you can use callbacks to Bridge's ExtendScript engine.

If you wrote an HTTP object using Bridge's Socket object, you could do it. You would also have to write an XML parser of sorts.

And it can all be set up to run as background processes, although the process isn't trivial, especially with the Socket object. But it can be done.

I do have an XML parser and an HTTP object, although the HTTP object is not written to run in the background. I also have some sample code of how to make the socket work as a background process.

If you want to take it on, email me. rstucky@starband.net

Regards,

Bob