Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 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
 
Old February 13th, 2006, 09:22 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bug in overwriting files?

Hi -

I am a newbie building my site. When doing the first site (Cooking Place) I found some errors, so I started over from scratch, overwriting my old index.htm with the new one. Now, when I hit F12 to display the site, my images don't show (topleft.gif).

After checking my remote and testing servers, it shows the image folder and all images intact.

However, when I open my inetpub/wwwroot/The Cooking Place Folder...and click on the index.htm there, I get the same problem, the image doesn't display. Yet, the image folder is right there in the same root directory.

Any suggestions? Could something have been left over from my overwriting of the original index.htm?

Any help appreciated!



 
Old February 14th, 2006, 04:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Did you upload the images to the "remote" server, by selecting them in the Files panel, and then clicking Put from the right-click menu?

If that doesn't help, can you show us some of the code for the HTML page? Are you referencing them correctly?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: If You Have A Cross To Bear You May As Well Use It As A Crutch by Moloko (Track 16 from the album: Things To Make And Do) What's This?
 
Old February 15th, 2006, 02:15 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes..I uploaded the images. In fact, if I display the page from my remote or testing server, the page runs fine. It just won't display the image on a browser (Netscape, IE, Opera)...

Here is a code snippet from my index.htm...thanks for your help!


<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/images/topbkg.gif">
  <tr>
    <td width="50%"><img src="/images/topleft.gif" width="290" height="51" /></td>
    <td width="50%"><div align="center"><span class="style1">The Cooking Place </span></div></td>
  </tr>
</table>
</body>
</html>



Quote:
quote:Originally posted by Imar
 Hi there,

Did you upload the images to the "remote" server, by selecting them in the Files panel, and then clicking Put from the right-click menu?

If that doesn't help, can you show us some of the code for the HTML page? Are you referencing them correctly?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: If You Have A Cross To Bear You May As Well Use It As A Crutch by Moloko (Track 16 from the album: Things To Make And Do) What's This?
 
Old February 15th, 2006, 04:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are you running the site in the root of the web server or as a separate application?

Look at this:

<img src="/images/topleft.gif" width="290" height="51" />

This references an images in the "root". If you just double click the .html file in Windows Explorer, the browser will look for images in the root of your *disk* so it looks for a folder called C:\Images which most likely doesn't exist.

If you open this file over http, things will be different. Consider the following:

1. Your web site is located at c:\Inetpub\wwwroot

2. You have an images folder in c:\Inetpub\wwwroot\Images

3. You open the file as http://localhost where the .html file is located at the folder mentioned at 1).

In this scenario, things will work. The "root" for IIS will be the folder at c:\Inetpub\wwwroot so the /Images folder will be found.

However, when you set up a site as a separate app, things will change:

Consider the following:

1. Your web site is located at c:\Inetpub\wwwroot\MySite

2. You have an images folder in c:\Inetpub\wwwroot\MySite\Images

3. You open the file as http://localhost/MySite where the .html file is located at the folder mentioned at 1).

In that case, things won't work. When you rerer to the images as /Images, the browser will try to locate the images folder at c:\Inetpub\wwwroot\Images and not at c:\Inetpub\wwwroot\MySite\Images

So, it's all a matter of set up and the way you open / refer to the files. Hopefully, this post sheds some light on that....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 16th, 2006, 10:59 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your help! That was the problem. One last question...I used "point to file" to link my page with the image...does it automatically select a site root-relative path, or is that a setting I must have inadvertently selected...because I didn't type in the link by hand and insert a forward slash. Thanks again!

Quote:
quote:Originally posted by Imar
 Are you running the site in the root of the web server or as a separate application?

Look at this:

<img src="/images/topleft.gif" width="290" height="51" />

This references an images in the "root". If you just double click the .html file in Windows Explorer, the browser will look for images in the root of your *disk* so it looks for a folder called C:\Images which most likely doesn't exist.

If you open this file over http, things will be different. Consider the following:

1. Your web site is located at c:\Inetpub\wwwroot

2. You have an images folder in c:\Inetpub\wwwroot\Images

3. You open the file as http://localhost where the .html file is located at the folder mentioned at 1).

In this scenario, things will work. The "root" for IIS will be the folder at c:\Inetpub\wwwroot so the /Images folder will be found.

However, when you set up a site as a separate app, things will change:

Consider the following:

1. Your web site is located at c:\Inetpub\wwwroot\MySite

2. You have an images folder in c:\Inetpub\wwwroot\MySite\Images

3. You open the file as http://localhost/MySite where the .html file is located at the folder mentioned at 1).

In that case, things won't work. When you rerer to the images as /Images, the browser will try to locate the images folder at c:\Inetpub\wwwroot\Images and not at c:\Inetpub\wwwroot\MySite\Images

So, it's all a matter of set up and the way you open / refer to the files. Hopefully, this post sheds some light on that....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 16th, 2006, 04:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi again,

It depends; in recent versions of DW this is a setting on the Site Definition dialog. In earlier versions, you control this setting when you insert an Image. The confusing thing was that the dialog for the insert image determined the settings for other parts of DW as well. That's why they moved it to the Sites panel.

Can you please not quote the entire message when you reply? Since the entire thread can be read here sequentially, the extra quote just clutters up the page. You can use the quote feature to put emphasis on specific sections from a previous post. Thanks.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
overwriting files mrjits Excel VBA 2 August 1st, 2006 02:53 PM
Overwriting fields in a table caterpillar SQL Server 2000 3 July 24th, 2006 09:00 AM
overwriting data bryan.lugo Excel VBA 8 April 21st, 2006 01:59 PM
overwriting file ozPATT Excel VBA 0 October 14th, 2005 04:49 AM





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