Forum Moderators: phranque

Message Too Old, No Replies

Flash in cgi-bin won't display

         

amyr61

9:44 pm on Jun 19, 2004 (gmt 0)

10+ Year Member



I have a classifieds ads site created from HTML templates which included a Flash logo. The ad templates are in a folder below public_html, called classifieds_templates. The cgi-bin is on the same level as the templates folder.
The .html files in the public_html folder display the Flash. The ad pages do not. I put the .css, header.js, flash.txt, logo.swf, menu.js, and Flash folder with the logo.fla, file in the classifieds_template folder. The menu and .css display correctly, but the Flash just won't run.

[sierrahorsesales.com...]
[sierrahorsesales.com...]

I know this is a simple path problem, but am in a muddle and getting nowhere. Any advice would be appreciated.

achaeus

7:03 am on Jun 20, 2004 (gmt 0)

10+ Year Member



In this file:

[sierrahorsesales.com...]

try changing
<script language="JavaScript" src="/header.js">

to
<script language="JavaScript" src="../../header.js">

or if that doesn't work
<script language="JavaScript" src="http://www.sierrahorsesales.com/header.js">

amyr61

3:24 pm on Jun 20, 2004 (gmt 0)

10+ Year Member



Thanks for responding. Tried your suggestions, but no dice. Grrrrrr!

Dudermont

5:08 pm on Jun 20, 2004 (gmt 0)

10+ Year Member



You are correct that it is a path issue but I think you are looking in the wrong location to fix it.

the "header.js" file writes the top of your page (but unfortuniately it is not shown when you view source.) It is designed to be used from a particular level, because it prints out...
<img src="picts/stretchbar.jpg" width="100%" height="28">

It is looking for the image and flash in the cgi-bin folder.

cgi-bin/picts/stretchbar.jpg

now you will have to have these same files in 3 locations but it will work if you put it there. not suggested.

So the solution is to put a slash in front of the links in the "header.js". it will then no longer be relative. It will be from the webroot for that site. This should make it work in both locations. It will be using the same files as your "contact.htm" page is.

change
<PARAM NAME=movie VALUE="logo.swf"> to
<PARAM NAME=movie VALUE="/logo.swf">
change
<img src="picts/stretchbar.jpg" width="100%" height="28"> to
<img src="/picts/stretchbar.jpg" width="100%" height="28">

I am pretty sure this is it. Hard to really check it without actually looking at file structure and files.

amyr61

1:45 am on Jun 21, 2004 (gmt 0)

10+ Year Member



Thanks for responding. I've been advised of this solution already, but it doesn't help. All the code in the ad pages has a "/" including the /logo.swf in the header file. This resolved the issue of the .html pages in the public_html folder not displaying correctly, but didn't help the ad pages.