Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
DHTML on the search template

 

 


cornish
Novice

Jun 10, 2002, 7:59 PM

Post #1 of 6 (5188 views)
Shortcut
DHTML on the search template Can't Post

Hi,

I have been trying to get a dhtml menu to work on my website it works fine on all pages and folders except the cgi-bin/am/templates anyone out there have any ideas would be much appreciated.

Thanks

Daniel


Dave
Staff / Moderator


Jun 10, 2002, 8:07 PM

Post #2 of 6 (5185 views)
Shortcut
Re: [cornish] DHTML on the search template [In reply to] Can't Post

Daniel,

It's probably something to do with relative paths. What is probably happening, is that your DHTML is looking for a file in the current directory (the same directory all your other html files are in). When it's called from your regular HTML files it finds the include file in the same directory but when it's called from the /cgi-bin/am/ folder it's looking for the same file in /cgi-bin/am/, but can't find it.

Check if the DHTML refers to a javascript (.js) file in the current directory (eg: src="file.js"). If you see anything like that, replace it with a full, absolute path like this (http://www.yoursite.com/file.js) or just ("/file.js").

If that doesn't work, post a link to a broken and working DHTML page and we can take a look.

Dave Edis - Senior Developer
interactivetools.com
 


cornish
Novice

Jun 10, 2002, 8:23 PM

Post #3 of 6 (5184 views)
Shortcut
Re: [Dave] DHTML on the search template [In reply to] Can't Post

Hi Dave,

I really appreciate your swift reply, here are the links

http://www.allianceyachts.net/ayindex.shtml this is what will be the home page

http://www.allianceyachts.net/cgi-bin/am/exec/search.cgi and this is the devil I've been working on all day not my most productive.

I even copied all the files to every folder in desparation still no joy, you guys who know that magical code stuff will probably spot the flaw.

I was going to give up and put a plain old menu in, this forum was my last resort.

Thanks

Daniel


Dave
Staff / Moderator


Jun 10, 2002, 8:31 PM

Post #4 of 6 (5180 views)
Shortcut
Re: [cornish] DHTML on the search template [In reply to] Can't Post

Wow, those sure are fancy menus! : )

Try changing this line:

var st_lib="stm31.js";

to this:

var st_lib="http://www.allianceyachts.net/stm31.js";

Dave Edis - Senior Developer
interactivetools.com
 


cornish
Novice

Jun 11, 2002, 7:28 AM

Post #5 of 6 (5173 views)
Shortcut
Re: [Dave] DHTML on the search template [In reply to] Can't Post

Hi Dave I got a partial fix by editing as you had suggested it now will drop down a menu but the graphics dont show... any thoughts

Regards

Daniel


Dave
Staff / Moderator


Jun 11, 2002, 12:39 PM

Post #6 of 6 (5165 views)
Shortcut
Re: [cornish] DHTML on the search template [In reply to] Can't Post

Which graphics aren't showing? Are they just not showing or are they showing as broken images?

Probably the best thing to do is check where you've entered the filename or path to your images and make sure it's a full absolute web path (eg: http://yoursite.com/images/myimage.gif) and not a relative path ("myimage.gif" or "images/myimage.gif").

Basically, if the path to any file or image starts with http:// or even just / it looks for it starting at the root of your website, otherwise, it looks in the current directory.

Also, make sure you're not referencing or linking to anything with an url that starts with "file://" (I noticed you had "file:///A|\\trir.gif"). That means it will try and pull that file off your local computer, which won't work for anyone but you because other people won't have that file on their local computer. You want to make sure you upload those files and link to them with your website URL.

Hope that helps.

Dave Edis - Senior Developer
interactivetools.com