Problem with Dreamweaver template not accessing banner

Hi,

For some reason my Dreamweaver template is only displaying the flash banner on the files in the root directory and not in the sub-dirs. I've checked the code and can't seem to figure out why this is as it looks like it has the correct address for it?

The name of the flash nav is wys_nav.swf and I have included a problem child file snippet.

The folder /images contains the swf file.

If you need more info please let me know.

Thanks
<td align="left"><table summary="" style="background: transparent url(/i/banner_login.jpg) no-repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" class="banner_login_inset" cellpadding="0" cellspacing="0" height="0" width="0">
<tbody><tr></tr>
</tbody></table>
  <table width="766">
    <tr>
      <td width="758" height="56"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','761','height','50','src','images/wys_nav','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/wys_nav' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="50">
        <param name="movie" value="../../images/wys_nav.swf">
        <param name="quality" value="high">
        <embed src="../../images/wys_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="50"></embed>
      </object></noscript></td>
    </tr>
  </table>
  <table width="767" height="71">
    <tr>
      <td height="65"><img src="../../register_files/register_new_2.png" width="766" height="124"></td>
    </tr>
  </table></td></tr>
</tbody></table></td></tr><!-- END OF BANNER -->

Open in new window

jones_bonesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rbudjCommented:
Hard to tell without seeing your folder structure but remember, when you create a template and link to a file with that template, it will automatically add the ../ for ONLY the template.  For the other pages it should render the correct path.  Look at the source of the page that is not displaying correctly and you will see if the path to the banner is correct or not.
0
Jason C. LevineNo oneCommented:
rbudj is correct.

DW templates often have path resolution problems.  The template starts in /Templates, so all paths have an extra ../ added to them.

Once you apply the template to the page, that extra ../ should be removed.  If not, check the site definition to see if DW is set to rewrite relative paths.
0
jones_bonesAuthor Commented:
Hi guys,

I have attached another snippet of code from a child file. This file is located in the /inves/free directory (2 from root).

As you can see from below the second two calls to the wys_nav.swf file have been changed correctly by the template applied (../../images/wys_nav.swf") but the first two calls did not change the path (../images/wys_nav') to cater for the sub-directory.

Just to be clear. The template is stored in the /templates directory and the .swf is stored in the /images directory.

Jason, I ahve tried toggling on and off the "don't rewrite document relative paths" in the site definition but it doesn't solve this problem.

Thanks
<td width="758" height="56"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','761','height','50','src','../images/wys_nav','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../images/wys_nav' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="50">
        <param name="movie" value="../../images/wys_nav.swf">
        <param name="quality" value="high">
        <embed src="../../images/wys_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="50"></embed>
      </object></noscript></td>

Open in new window

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Jason C. LevineNo oneCommented:
What version of DW is this?  8 or CS3?

Frankly, you may not be able to get this to work with relative paths.  This has been a bug in DW since the version 4 days and, while it has gotten better since v8, still crops up from time to time.  

I would not waste that much energy on this.  If you have a relative path that isn't translating in a template, just make that path absolute and move on.
0
jones_bonesAuthor Commented:
I'm using v8. Okay thats not a problem, so I have changed the template to the absolute path as below in the code. Why is it still not working in the child page?

see main page for example http://www.whatyouseeyoucannotbe.com/

the banner is not displaying.

Thanks
<td width="758" height="56"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','761','height','50','src','http://whatyouseeyoucannotbe.com/images/wys_nav','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://whatyouseeyoucannotbe.com/images/wys_nav' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="50">
        <param name="movie" value="http://whatyouseeyoucannotbe.com/images/wys_nav.swf">
        <param name="quality" value="high">
        <embed src="http://whatyouseeyoucannotbe.com/images/wys_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="50"></embed>

Open in new window

0
Jason C. LevineNo oneCommented:
You're missing the call to the external javascript file that contains AC_FL_RunContent.

It should look something like this:

<script type="text/javascript" src="/Scripts/AC_RunActiveContent.js"></script>

and be located in the head section.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jones_bonesAuthor Commented:
Great! That'll do the trick. Thanks again for your help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.