Udostępnij za pośrednictwem


Previewing your Web Pages in Safari

 

Web designers now have one more web browser to test their websites in: Safari for Windows

[[UPDATE 11/21/2007: The 3.0.4 release of Safari for Windows fixes the problem described in the rest of this blog post. If you have version 3.0.4 or later of Safari for Windows, you can preview your web pages from Expression Web in Safari without pointing to the batch file provided in this blog post. To add Safari to your list of browsers in Expression Web, go to File > Preview in Browser > Edit Browser List. In the Edit Browser List dialog box, click Add and select the Safari.exe file on your computer.]]

You can setup the Preview in Browser feature in Expression Web to include Safari 3 Beta, but you’ll discover that instead of displaying the page you try to preview­, Safari 3.0.3 will display your browser homepage.

To get around this, you could start Safari and manually open your page by using the browser’s File > Open File command. But the quickest and most convenient way to get around this Safari 3 Beta flaw is to point the Expression Web Preview in Browser feature to a batch file that forces Safari to display the web page you specify. To do that, follow these instructions:

  1. Download safari-xweb.bat from https://connect.microsoft.com/ExpressionWeb/Downloads/DownloadDetails.aspx?DownloadID=7392 to your computer.

    Note: If you installed Safari somewhere other than C:\Program Files\Safari\, use a text editor to open the xweb-safari.bat file and replace the text “C:\Program Files\Safari\Safari.exe” with the path to the Safari.exe file on your computer.

  2. In Expression Web, choose File > Preview in Browser > Edit Browser List.

  3. In the Edit Browser List dialog, click Add.   

    Screenshot of Edit Browser List dialog box

  4.   In the Add Browser dialog, click Browse.

    screenshot of Add Browser dialog box

  5. In the Add Browser dialog, next to the File Name box, change the drop down menu from Program Files to All Files. Navigate to the folder that contains the safari-xweb.bat file that you downloaded in step 1, select the safari-xweb.bat file and click Open.

    screenshot of Add Browser dialog box
      

  6.  In the Add Browser dialog, in the Name box, type a name for the browser, such as "Safari Beta" and click OK.

    screenshot of Add Browser dialog 

  7. In the Edit Browser List dialog, click OK.

    screenshot of Edit Browser List dialog

    Note: The Additional window sizes options won't work for Safari.

When you use File > Preview in Browser > Safari Beta, a command window quickly opens and closes, and then Safari opens and displays your web page.

Comments

  • Anonymous
    June 13, 2007
    PingBack from http://blog.by-expression.com/index.php/expression-web-and-previewing-with-safari-on-windows-beta/

  • Anonymous
    June 13, 2007
    En tant que développeur Web averti, vous avez certainement déjà vu l'annonce d'Apple selon laquelle le

  • Anonymous
    November 20, 2007
    This appears to have been fixed with Version 3.0.4 of Safari.

  • Anonymous
    November 21, 2007
    Apple has released an update (version 3.0.4) for the Safari web browser for Windows, which fixes the

  • Anonymous
    November 21, 2007
    Apple has released an update (version 3.0.4) for the Safari web browser for Windows, which fixes the