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 August 3rd, 2005, 10:18 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Link Will not work Need help.

Hi All

I have learnt what I have with Beginning DreamweaverMX. I am doing a web site for my son's charity walk. I can not get the links to work. If I upload the library it works. If I load the library into the screen then It will not.
If anyone has an answer I would be grateful.

Below I am Attaching the code for the menu bar and then the template itself.

I had noticed that DW was not putting the .. to signify a directory change so I have added these. IO found that I had to do this with the images. They work fine in local host now.

To make matter worse I have the index.htm page up at www.swcw.co.uk

Thanks in advance


Library Bar

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../Style%20Sheets/mrnsStyles.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DBF2F8">
  <tr>
    <td width="24" scope="col">&nbsp;</td>
    <td scope="col"><a href="../index.html">Home</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="../Screens/WalkSwcw.htm">Walk</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="../Screens/Sponsorship.asp">Sponsorship</a></td>
    <td>&nbsp;</td>
    <td><a href="../Screens/WhyRaleigh.htm">Why Raleigh International</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="../Screens/WhyChille.htm">Why Chille</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="../Screens/WhyShelterBox.htm">Why Shelter Box</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="../Screens/AboutMe.htm">About me </a></td>
    <td width="24" scope="col">&nbsp;</td>
  </tr>
</table>



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.style1 {color: #000000}
-->
</style></head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DBF2F8">
  <tr>
    <th width="24" scope="col">&nbsp;</th>
    <td scope="col"><img src="Images/MainHeading/Raleigh_logo.jpg" width="210" height="188" /></td>
    <th scope="col">&nbsp;</th>
    <th scope="col"><img src="Images/MainHeading/SouthWestMapLogo_resize.jpg" width="496" height="252" class="style1" /></th>
    <th scope="col">&nbsp;</th>
    <th scope="col"><img src="Images/MainHeading/SBOX_CforLogo.png" width="206" height="188" /></th>
    <th width="24" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <th scope="col">&nbsp;</th>
    <td colspan="5" scope="col">
    <link href="/Style%20Sheets/mrnsStyles.css" rel="stylesheet" type="text/css" />
    <table width="100%" border="0"cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DBF2F8">
      <tr>
        <td width="24" scope="col">&nbsp;</td>
        <td scope="col"><a href="../index.html">Home</a></td>
        <td>&nbsp;</td>
        <td scope="col"><a href="../Screens/WalkSwcw.htm">Walk</a></td>
        <td>&nbsp;</td>
        <td scope="col"><a href="../Screens/Sponsorship.asp">Sponsorship</a></td>
        <td>&nbsp;</td>
        <td><a href="../Screens/WhyRaleigh.htm">Why Raleigh International</a></td>
        <td>&nbsp;</td>
        <td scope="col"><a href="../Screens/WhyChille.htm">Why Chille</a></td>
        <td>&nbsp;</td>
        <td scope="col"><a href="../Screens/WhyShelterBox.htm">Why Shelter Box</a></td>
        <td>&nbsp;</td>
        <td scope="col"><a href="../Screens/AboutMe.htm">About me </a></td>
        <td width="24" scope="col">&nbsp;</td>
      </tr>
    </table>
    </td>
    <td scope="col">&nbsp;</td>
  </tr>
</table>

    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#DBF2F8">
       <tr>
               <td width="24">&nbsp;</td>
                <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                <td><a href="/Screens/AboutMe.htm" id="aboutUs">About Me </a></td>
                <td><a href="/Screens/Sponsorship.asp" id="sales">Sponsorship</a></td>
                    <td>&nbsp;</td>
                <td><a href="/publicScreens/copyScreens/contact.php" id="contact">Contact Me </a></td>
                <td><a href="/sitePlan.php">Site Plan</a></td>
            <td width="24">&nbsp;</td>

                      <br />
        <script language="JavaScript" type="text/javascript">
               var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
            sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
            sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
               if (document.getElementById(sPageName))
            {
            document.getElementById(sPageName) .style.fontWeight = 'Bold';
            document.getElementById(sPageName) .style.fontSize = '14pt';
            }
        </script>
       </tr>
    </table></body>
</html>



 
Old August 3rd, 2005, 03:47 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 Jacky,

Can you define "does not work". What exactly is the problem? Do you get an error? If so, what error. You are linking your files to ../Screens. Is that correct? Are the files you're linking to in a directory at the same level that is called Screens?
Seems odd to use .. when you're in a root based file.

Also, did you check your remote server? Are the files there?

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 4th, 2005, 07:29 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Imar

Great to hear from You Imar.

Some of this is unnecessary for this discussion but may be of use to others so I have left it in.

I do use subdirectories to sort my files.

Index.htm
Index Copy.htm
Folder Images.
    Images
    Folder Scenic Images
    Folder Main Heading Images

Folder Screens.
So Far all in the one folder although in Renovations I had sub folders and all was well
Folder Templates.
    No Sub folders
Folder Library.
    No Sub folders
Folder Style sheets.
    Styles

I have found that DW does not always enter the .. to indicate a subfolder and I have put this in. The explanation web site www.renovations.co.uk which I put together had subfolders and templates yet I never had to enter the ..

For this project SWCW.co.uk I have entered the .. into the Menu.lbi.
I also find that if I move a Screen then DW forgets the image and I have to enter the .. again.

However for this case www.swcw.co.uk

I can see all the images in localhost I achieved this by entering the .. for dome of the images.
I use the Menu.lbi by itself to navigate in test. That is Ctrl F12 when on the screen in DW open the menu in IE. Click on a link and I go there.
My problem is that when I put the Menu.lbi into a page it ceases to function.
    In local test I get 404 – File not found.

As you will see below I have found the answer to this. DW drops the .. when updating so the original has the .. and the children file do not.

This also means that if there is any alteration to the navigation then all the .. links have to be manually replaced. Makes a mockery of the DW template concept. The possible way round is to have all myo0ur pages on one level but that does not explain to me why it worked in the first site I did but not the second.

For example I next made the two logos live for the charities all the other links and added an e-mail address to contact me and created a blank Site map. All went dead AGAIN. I have not moved any files but on examination the .. have been removed from all the links. YET they are in the .lbi


Part of the code from Menu.lbi I put in the ..

<td scope="col"><a href="../index.html">Home</a></td>

The same part after I have put it into my template

<td scope="col"><a href="/index.html">Home</a></td> (..Dropped)

 An earlier version in the same template which I have altered.

<td scope="col"><a href="../index.html">Home</a></td>

Ctrl F12 to test the 2nd one works but the first does not.

I have fiddled about and all is OK however I can not rely on the Menu.lbi facility or the templates for a serious site. Unless I find out that I have been making a serious mistake.

Below are some issues with the templates. You will see that the ../ has been replaced with =” It seems to work but I do not know why.

Template
<td scope="col"><a href="../Screens/Sponsorship.php">Sponsorship</a></td>
         <td>&nbsp;</td>
         <td><a href="../Screens/WhyRaleigh.htm">Why Raleigh International</a></td>
         <td>&nbsp;</td>

 Recipant screen
<td scope="col"><a href="Sponsorship.php">Sponsorship</a></td>
         <td>&nbsp;</td>
         <td><a href="WhyRaleigh.htm">Why Raleigh International</a></td>

How can I force DW to put the entire site?

So much for now Thanks for your help.

Jacky


 
Old August 4th, 2005, 07:35 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar. Checking my links now i find one is not working. Must have missed to put in the .. This means that I have to fix it and then manually do all the others.

What waste of time Eh

Jacky

 
Old August 4th, 2005, 11:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It may all depend on how you work and insert links. Dreamweaver should be able to put the links in correctly, and update them for you when you move files.

To fix problems, you can use root based URLs like:

/Screens/Whatever.asp

With this link, it doesn't matter if you use it in a page that is 1, 2 or more directories deep in the site.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 4th, 2005, 11:57 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

In September I am starting a course on PHP Mysql and in parallel a course on Dreamweaver using PHP Mysql. So hopefully I will be able to get up to speed. I feel that I have rushed this site a bit much because Justin is off in a couple of weeks so I dod not have much time. It would also have been much better to complete your book.

All the best and thanks again.

Jacky






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to figure out how to work a link issue gene4455 VBScript 0 October 22nd, 2008 12:06 PM
Link button in nested grids clcik doesnt work fir RaghaSM ASP.NET 2.0 Basics 1 June 26th, 2008 12:05 AM
How does Update Link in FormView work? URGENT shaly ASP.NET 2.0 Professional 0 December 7th, 2006 04:10 PM
Link Button does not work properly nitinp ASP.NET 2.0 Basics 0 November 9th, 2006 06:02 AM
File Link Won't Work Ron Howerton ASP.NET 1.0 and 1.1 Basics 13 November 3rd, 2006 12:54 PM





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