 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 18th, 2005, 12:03 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
dw renders my css when previewed in browser?
1st post to the forum - whey hey!
i have my 'preview in browser' settings set up in dw mx 2004 7.0.1 to use a temporary file. when i do this, my external css sheets render in the browser code with:
<link rel="stylesheet" title="Disabled for Preview-in-Browser:/main.css"
i've been trying to debug an asp page and the browser kept on telling me i had an error on line 568 - i've only 300 lines in the document?!
it's the css thats causing the problem...
how the hell can i turn it off? it's driving me mad...
please help - please!
cheers,
jake
|
|

March 18th, 2005, 12:49 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Turn off the Preview using temporary file option in the Preview in browser category of the Preferences panel.
Are you sure this has to do with the stylesheet? Sounds more like an ASP error....
Imar
|
|

March 18th, 2005, 01:03 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi imar, thanks for the reply.
tried it and it does work - the only thing is, you have to save the document prior to preview otherwise you get a dialog each time asking you if you want to save...
its down to dw rather than asp it shows the 'Disabled for Preview-in-Browser' message on all my links regardless of whether the page works correctly or not.
what a pain? i've never seen this in dw before version mx 2004 - why did they change it, i cant see who it would benefit?
unless its to get round the stoopid bug in ie on a mac where it doesnt empty it's cache... that'd suck if thats the case.
anyways, i'll try this and see how i go.
many thanks,
jake
|
|

March 18th, 2005, 02:15 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ok, this is even worse:
got your document open and you save prior to previewing in the browser. the page opens up, you look it at it but *dont* close the window.
you swap back to dw, make some changes and go for the preview again. you sit in puzzlement as your changes arnt showing up...
it appears that if the document is allready open, dw doesnt refresh the browser page.
not ideal as i leave my browser window open for pages that use sessions...
grr... not getting to the bottom of this quickly.
jake
|
|

March 19th, 2005, 06:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You get this behavior when you have the Preview using temporary file option on. With that setting on, Dreamweaver creates a new name for each previewed page. So, when you preview, then make a change and then refresh the preview window, you'll still see the old file.
This is by design, so a) you'll need to disable Preview using temporary file, or b) you should close the browser and request a fresh one when previewing....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

March 21st, 2005, 05:42 AM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi imar,
yup - its seems that is a built in feature of mx 2004.
i just wish mm had given us the opportunity to turn it off! not mad keen on working against a programe rather than with it...
anyways, if i find a way round it, i'll post back.
cheers,
jake
|
|
 |