Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 18th, 2005, 12:03 PM
Registered User
 
Join Date: Mar 2005
Location: london, , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

Reply With Quote
  #2 (permalink)  
Old March 18th, 2005, 12:49 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
Reply With Quote
  #3 (permalink)  
Old March 18th, 2005, 01:03 PM
Registered User
 
Join Date: Mar 2005
Location: london, , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Reply With Quote
  #4 (permalink)  
Old March 18th, 2005, 02:15 PM
Registered User
 
Join Date: Mar 2005
Location: london, , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
  #5 (permalink)  
Old March 19th, 2005, 06:11 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
Reply With Quote
  #6 (permalink)  
Old March 21st, 2005, 05:42 AM
Registered User
 
Join Date: Mar 2005
Location: london, , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert renders error snufse SQL Language 2 October 13th, 2008 09:28 PM
DataGrid renders different on different machines GertFrost ASP.NET 2.0 Basics 1 June 19th, 2007 03:34 PM
Rich's new CSS book: Beginning CSS 2nd Edition jminatel BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 June 15th, 2007 11:55 AM
DataGrid renders different on different machines GertFrost ASP.NET 2.0 Professional 1 May 25th, 2006 10:21 PM



All times are GMT -4. The time now is 05:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.