Skip to main content
Participant
October 21, 2005
Question

JavaScript

  • October 21, 2005
  • 1 reply
  • 331 views
Hi,

I am facing some problems in Adobe Bridge and i need help.
I would like to access some database eg. My SQL, and access the
data from it by firing a SQL query,
How can i do this through JavaScript on Bridge?

Also, could i open a url from within Bridge using JavaScript code?,

Is there any way i can access some webservice through JavaScript on Bridge and capture the response if any?.

Thankyou.
Regards
Joji Varghese.
This topic has been closed for replies.

1 reply

Known Participant
October 21, 2005
Joji

There is no built-in capability to access a database directly from JavaScript in Bridge.

Navigating to a URL in bridge is easy. Look at app.browseTo() in the documentation. Also see Document.thumbnail - it's another way to navigate that doesn't involve opening a new document window. You should also note the document.visitUrl property.

Bridge also provides a set of JS callbacks that allow you to execute JS on a web page. Conceptually, you could use this as a way to execute SQL Queries and manage to get the data into Bridge's JS engine.

The only satisfactory way to directly use a webservice would be to use the Socket object to write an http implementation, then hand-roll your own web-service interface. The Socket object not documented in the Bridge JavaScript Reference; however, it's implementation identical to GoLive's.

It might be worth your time to take a look at the StockPhoto implementation. They do a lot of web interaction.

Bob
Adobe WAS Scripting