MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spezifikationen Seite 441

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 440
441
External application functions
External application functions handle operations that are related to the Macromedia Flash MX
application and to the browsers and external editors that are defined in the Preview in Browser
and External Editors preferences. These functions let you get information about these external
applications and open files with them.
dreamweaver.browseDocument()
Availability
Dreamweaver 2; enhanced in 3 and 4.
Description
Opens the specified URL in the specified browser.
Arguments
fileName {,browser}
fileName is the name of the file to open, which is expressed as an absolute URL.
browser, added in Dreamweaver 3, specifies a browser. This argument can be the name of a
browser, as defined in the Preview in Browser preferences or either
’primary’ or
’secondary’. If omitted, the URL opens in the users primary browser.
Returns
Nothing.
Example
The following function uses dreamweaver.browseDocument() to open the Hotwired home page
in a browser:
function goToHotwired(){
dreamweaver.browseDocument(’http://www.hotwired.com/’);
}
In Dreamweaver 4, you can expand this operation to open the document in Microsoft
Internet Explorer using the following code:
function goToHotwired(){
var prevBrowsers = dw.getBrowserList();
var theBrowser = "";
for (var i=1; i < prevBrowsers.length; i+2){
if (prevBrowsers[i].indexOf(’Iexplore.exe’) != -1){
theBrowser = prevBrowsers[i];
break;
}
}
dw.browseDocument(’http://www.hotwired.com/’,theBrowser);
}
For more information on dw.getBrowserList(), see dreamweaver.getBrowserList() on page 442.
Seitenansicht 440
1 2 ... 436 437 438 439 440 441 442 443 444 445 446 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare