ianhaynes
Nov 25 2002, 05:37 PM
I need to use the menus on an Atomz.com results page. Normally you do this by copying your page template into the Atomz template and then adding the Atomz code. You set a base ref to your site so that images etc get the right locations.
The menu code falls over when doing this and I guess the various paths that get built up in the script are not being created correctly. I've tried replacing some of them with absolute paths without sucess.
Has anyone else done this sucessfully?
xfx
Nov 25 2002, 06:55 PM
ianhaynes,
If you're not using frames then this can be done.
Just run a search on the forum with the term "atomz".
ianhaynes
Nov 26 2002, 04:05 AM
Unfortunately I am using frames.
I wonder whether a third frame on the appropriate page will work, or pehaps an IFrame??
PS: I've searched the forums for "Atomz" and "atomz" (just in case the search is case sensitive) but get no result.
ianhaynes
Nov 28 2002, 04:35 AM
I have found a solution to this problem, which is to use an inline frame (IFRAME) for the Atomz search box and the returned results.
This frame can be put far enough down the page so it doesn't affect the drop-down menus. If the page is scrolled upwards so that the menus do overlap the frame content, they still work but dont always release easily. It's a good compromise.
NS4 doesn't support IFRAME but an error message can be put between the IFRAME tags to indicate this. All other browsers tested ok.
Ian
mikeruss
Nov 29 2002, 09:58 AM
Hi
the good news is that I have done it, the bad is I cant remember how - it certainly wasnt IFRAME - unfortunately I have stopped using them
I seem to recall having a problem and writing to the Atomz support desk who told me how to get it to work very quickly
it might be this change to the JS
if(navVer.substr(0,3) >= 4)
if((navigator.appName=='Netscape') && (parseInt(navigator.appVersion)==4))
document.write(\"<\"+\"script language='JavaScript' type='text/javascript' src='/css/nsmenu_frames.js'><\\/script\\>\");
else
document.write(\"<\"+\"script language='JavaScript' type='text/javascript' src='/css/iemenu_frames.js'><\\/script\\>\");
";
I use absolute paths
hope this helps
Mike
bhermer
Jan 28 2003, 12:47 PM
Hi, I have done this with my companies site, what I have done is have the atomz template encapsulate the results inside a hidden form field; submit this field to and asp page which displays the results as if they have come from atomz.
I have the atomz template say 'Please wait while search in carried out' to make it appear seemless. If you would like a more indepth description, a copy of my atomz template etc let me know and I will provide them.
As soon as you move your frame back onto your own server then the menus will work, the problem comes from not having both pages ( your page and atomz page) served from the same place. the page I developed is Search" target="_blank">http://www.rip.org.uk/mainmen....a> Page
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.