PDA

View Full Version : code and design view in disagreement


mk59
01-11-2006, 01:06 AM
my dw is acting wierd
i can't see images in design view.... I know they are there because they come out in preview and they are coming through on the web.... It's kind of cool because it is forcing me to learn code.... but I would like the design view back.... any suggestions?
thanks
-mark.

Creative Insanity
01-11-2006, 03:17 AM
post a screen cap of what you see.

chriskq
01-11-2006, 04:42 AM
That prob has never happened to me before. Sounds like incorrect src path for your images.
Have you loaded the page on the net yet? Do the images come through ?

make sure there all like this:
<img src="images/body_center_below_movie.gif" alt="" title="" border="0">

and that they do not have ur desktop computer path

mk59
01-11-2006, 11:33 AM
hmmmmm.... what is a screen cap, and how would I post it?

davidj
01-11-2006, 11:45 AM
hmmmmm.... what is a screen cap, and how would I post it?

i think its a screen dump or a print screen


CI makes up acronyms just to trick us into thinking we are on a lower Intellectual plane which leads us to question our worth as a species...

mk59
01-11-2006, 12:07 PM
wellllll it won't take much to trick this old farmer. every time I come to get more editing done on our website I'm blasted by inexperience.... but having so much fun and feeling good to be taking control of a big tool for our little business.
what I can do is copy the code side of dw and put that in here:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LEVEL 2 JOINERY</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>


<font face="Arial, Helvetica, sans-serif">THIS PAGE UNDER CONSTRUCTION, PLEASE
COME BACK SOON</font>
</p>
</body>
</html>
<h4>

wpltree.ca (http://www.wpltree.ca)

Workshops Home Page (http://www.wpltree.ca/workshopindex.htm)

Level 1 Joinery (http://www.wpltree.ca/level1joinery.html)

Level 2 Joinery (http://www.wpltree.ca/level2joinery.html)

Framing Workshops (http://www.wpltree.ca/framing.html)

Ontario Barns (http://www.wpltree.ca/barns.html)</h4>
</div></div>


Level 2 Joinery workshops introduce snap line joinery. Snap line joinery uses
plumb and level lines on timber ends to create a plumb and level layout system,
this system is related to Japanese timber framing. The project plans offered
will
prepare the student for layout and cutting of kingpost truss systems and working
in angles other than 90 and 45deg. Materials offered are similar to level
1 joinery: 5in x 5in x 8ft pine timber, and 4in x 5in x 5ft brace in various
species, also braces are available with live edges(sawn on two sides only).</p>


picture_library/level2plan.jpg</p>


and here is what I see on the design side:

THIS PAGE UNDER CONSTRUCTION, PLEASE COME BACK SOON

davidj
01-11-2006, 12:23 PM
you have a bit of a bomb site there

all this...

<a href="http://www.wpltree.ca">wpltree.ca</a><br />
<a href="http://www.wpltree.ca/workshopindex.htm">Workshops Home Page</a><br />
<a href="http://www.wpltree.ca/level1joinery.html">Level 1 Joinery</a><br />
<a href="http://www.wpltree.ca/level2joinery.html">Level 2 Joinery</a><br />
<a href="http://www.wpltree.ca/framing.html">Framing Workshops</a><br />
<a href="http://www.wpltree.ca/barns.html">Ontario Barns</a></h4>
</div></div>
<p>Level 2 Joinery workshops introduce snap line joinery. Snap line joinery uses
plumb and level lines on timber ends to create a plumb and level layout system,
this system is related to Japanese timber framing. The project plans offered
will
prepare the student for layout and cutting of kingpost truss systems and working
in angles other than 90 and 45deg. Materials offered are similar to level
1 joinery: 5in x 5in x 8ft pine timber, and 4in x 5in x 5ft brace in various
species, also braces are available with live edges(sawn on two sides only).</p>
<p><img src="picture_library/level2plan.jpg" width="603" height="754"></p>


needs to be inside your <body> </body> tags

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LEVEL 2 JOINERY</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

***************************
***************************

*** Place content here ***

***************************
***************************


</body>
</html>


also ...
<a href="http://www.wpltree.ca/level1joinery.html">Level 1 Joinery</a>

you are using absolute paths when you could just use relative paths
example
<a href="level1joinery.html">Level 1 Joinery</a>

Creative Insanity
01-11-2006, 05:06 PM
What our technical imsprector is saying there is do it like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LEVEL 2 JOINERY</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p><font face="Arial, Helvetica, sans-serif">THIS PAGE UNDER CONSTRUCTION, PLEASE
COME BACK SOON</font>
</p>
<h4><br />
<a href="./">wpltree.ca</a><br />
<a href="workshopindex.htm">Workshops Home Page</a><br />
<a href="level1joinery.html">Level 1 Joinery</a><br />
<a href="level2joinery.html">Level 2 Joinery</a><br />
<a href="framing.html">Framing Workshops</a><br />
<a href="barns.html">Ontario Barns</a></h4>
</div></div>
<p>Level 2 Joinery workshops introduce snap line joinery. Snap line joinery uses
plumb and level lines on timber ends to create a plumb and level layout system,
this system is related to Japanese timber framing. The project plans offered
will
prepare the student for layout and cutting of kingpost truss systems and working
in angles other than 90 and 45deg. Materials offered are similar to level
1 joinery: 5in x 5in x 8ft pine timber, and 4in x 5in x 5ft brace in various
species, also braces are available with live edges(sawn on two sides only).</p>
<p><img src="picture_library/level2plan.jpg" width="603" height="754"></p>


and here is what I see on the design side:

THIS PAGE UNDER CONSTRUCTION, PLEASE COME BACK SOON
</body>
</html>
Copy this back to DW code side.

Jittor
01-11-2006, 06:35 PM
mk59 - what DJ means by saying you are using an absolute path is the you typed in http://www.wpltree.com ('http://www.wpltree.com') before all your images. So DW will not show them in design mode because it's looking for them on your ftp, but it will show them when previewed.

In the future do what DJ and CI said. Just use the little tree icon up at the top in Dreamweaver (under the common tab in mine) and it will automatically give you a relative path (without the http://www ('http://www') stuff), but using absolute path is good practice in my opinion

Creative Insanity
01-11-2006, 07:11 PM
but using absolute path is good practice in my opinion

Have to disagree with you there sorry. A person could shift their site to an new URL, or change something in the current URL and then their site would look pretty crappy ;)
Using relative doesn't have this problem. :P LOL

domedia
01-11-2006, 07:38 PM
I do both, they both have their pro/cons.
With absolute paths, you're pretty much sure the path is always right.
And as you say CI, with relative paths, you can change your domain or url. With relative url's you always have the risk of getting the path wrong.
With absolute paths, it would be a b***h moving the site to a new domain.

I've never moved a site to a new domain after 8 years of development..(guess I'm just lucky ;-))

Creative Insanity
01-11-2006, 07:52 PM
You are very lucky dom.. with most of the stuff I do it is mainly front ends and addons for personal forums and these people always tend to think of a better name for their site and then it is hello! New URL.. got caught out once with absolute and thought.. bugger that, never again.

mk59
01-11-2006, 08:48 PM
whew!!!!!!!!!!!
the site will probably not move soon, as I have lived at the same adress since 1959....
many thanks for the coding, I'll need a day or two to digest, hopefully without too much gas
;)

Jittor
01-11-2006, 09:28 PM
- CI, True , but I am like dom I have never moved a site so I would have to agree with you on that. I have now changed my view to the same as dom's - knowing both and planning is guess is the real key. Well, if I ever have to move a site I am pretty much F...! Hope that never happens or find and replace will be my new bestfriend :rolleyes: - nice new avitar by the way! The other one still rocks though!

domedia
01-11-2006, 09:29 PM
well you can always do a sitewide search and replace if that's needed ;)

Jittor
01-11-2006, 09:32 PM
True - If that ever happens Iíll let you guys know, I'm gonna have to B & moan to someone!

Creative Insanity
01-11-2006, 10:18 PM
But guys in the mean time you have an irate client because when he moved his site to the new location it all fell to bits. The links busted, the images did not show.. not good for ones rep ah. :P

Jittor
01-11-2006, 10:51 PM
LOL - I give, I give. You make a strong point CI. I promise the next site I make I'll keep that in mind.

Creative Insanity
01-12-2006, 12:27 AM
LOL don't give up so soon.. hehe

davidj
01-12-2006, 08:45 AM
im on the side of relative paths

i would only use absolute if i was calling in an image from a different domain or sending an HTML mailshot

Creative Insanity
01-12-2006, 07:21 PM
ahh see folks.. dj does love me.. come 'ere dj and give us a kiss
LOL