Highlighted

How do I fix dead link when using Preview In Browser?

New Here ,
Sep 28, 2017

Copy link to clipboard

Copied

I am using Dreamweaver CC 2017.

I have 4 images used as links on a web page. The links work fine when viewing page on the web or opening the page directly through browser. When I use Preview In Browser, one of the links does not work. I would appreciate any suggestions.

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

Are you using Live Preview, or Open in Browser?

Live Preview took over the F12 shortcut from the old Preview in Browser. It uses Adobe's servers to give you a live view of your page during editing. Because of that, certain links just don't ever seem to work right. It never works correctly for me, so I use the other option.

You may get more mileage from using the Open in Browser function. You can right click the file name in the Files window, or if your open documents are set as tabs across your App Frame you can right click on the document tab itself, and choose "Open In Browser" which is the old Preview in Browser.

Personally, I dislike Live Preview so much, I modified one of the program files to force DW to use Open in Browser on F12 (since the program doesn't allow remapping that in keyboard shortcuts).

Views

232

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How do I fix dead link when using Preview In Browser?

New Here ,
Sep 28, 2017

Copy link to clipboard

Copied

I am using Dreamweaver CC 2017.

I have 4 images used as links on a web page. The links work fine when viewing page on the web or opening the page directly through browser. When I use Preview In Browser, one of the links does not work. I would appreciate any suggestions.

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

Are you using Live Preview, or Open in Browser?

Live Preview took over the F12 shortcut from the old Preview in Browser. It uses Adobe's servers to give you a live view of your page during editing. Because of that, certain links just don't ever seem to work right. It never works correctly for me, so I use the other option.

You may get more mileage from using the Open in Browser function. You can right click the file name in the Files window, or if your open documents are set as tabs across your App Frame you can right click on the document tab itself, and choose "Open In Browser" which is the old Preview in Browser.

Personally, I dislike Live Preview so much, I modified one of the program files to force DW to use Open in Browser on F12 (since the program doesn't allow remapping that in keyboard shortcuts).

Views

233

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 28, 2017 0
Adobe Community Professional ,
Sep 28, 2017

Copy link to clipboard

Copied

Are you using Live Preview, or Open in Browser?

Live Preview took over the F12 shortcut from the old Preview in Browser. It uses Adobe's servers to give you a live view of your page during editing. Because of that, certain links just don't ever seem to work right. It never works correctly for me, so I use the other option.

You may get more mileage from using the Open in Browser function. You can right click the file name in the Files window, or if your open documents are set as tabs across your App Frame you can right click on the document tab itself, and choose "Open In Browser" which is the old Preview in Browser.

Personally, I dislike Live Preview so much, I modified one of the program files to force DW to use Open in Browser on F12 (since the program doesn't allow remapping that in keyboard shortcuts).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2017 1
Adobe Community Professional ,
Sep 28, 2017

Copy link to clipboard

Copied

https://forums.adobe.com/people/Jon+Fritz+II  wrote

Personally, I dislike Live Preview so much, I modified one of the program files to force DW to use Open in Browser on F12 (since the program doesn't allow remapping that in keyboard shortcuts).

Really, which file did you edit?

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2017 0
Adobe Community Professional ,
Sep 28, 2017

Copy link to clipboard

Copied

To re-map the old Preview in Browser (Open in Browser) to F12 rather than Live Preview...

1. Close DW and go to...

    Windows: C: > Program Files > Adobe > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

    Mac: Applications > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

    (I think, I don't have a Mac to test)

2. Open the file "PIB_Dynamic.js"

2a. As always, make a backup in case something goes sideways. Add _old at the end of the file name.

3. Search for the text "dw.browseDocument". There are 3 spots with that code, but the first two are just comments. The right one should be on or about line 433, and change the text "isPIB" to "true"

The finished line of code will look like...

dw.browseDocument(dw.getDocumentPath('document'),theBrowser, "-1"/*help argument*/, false /*use temp doc*/, true);

4. Save the file to your desktop

5. Drag the file into the original location from Step 1. You will be prompted for your Admin credentials in order to make the copy/replacement

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2017 1
New Here ,
Sep 28, 2017

Copy link to clipboard

Copied

Problem solved. Thank you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2017 0