here's a sample of the menu working fine:
http://www.movingpictures.nisa.com/dire ... essage.htm
notice that i have the menu relative, in a table. run a search (top right) and then you'll go to the results page, where the menu doesn't exist.
am i missing something?
thanks for any advice. this site is going live in a matter of hours!
Atomz Search kills the menu?
First glance, I'd say it's a cross-domain security issue. The menu scripts are on your site in http://www.movingpictures.nisa.com/mm, and you load the scripts into your page addressing them as mm/milonic_src.js, etc. So far so good. But the search results page is generated from http://search.atomz.com/search/... Since the search results are on a different domain from your site, I see that you have tried loading the scripts by referencing them using your full domain. The security issue would be trying to load javascript from one domain into another... normally a no-no. DOn't know if you'll be able to get around that, unless you havesome control over trusted domains at atomz.com.
Can you have your search results open in a new browser window, so that when your user is finished with the results, he or she can simply close the search results window to return to your site?
Kevin
Can you have your search results open in a new browser window, so that when your user is finished with the results, he or she can simply close the search results window to return to your site?
Kevin
thanks for the reply kevin. problem with new browser window is that if they click a result, they're going to stay in that new window. unless there's a workaround, i might have to go old-school and insert some text along the lines of "click your browser's back button". damn.kevin3442 wrote: Can you have your search results open in a new browser window, so that when your user is finished with the results, he or she can simply close the search results window to return to your site?
i don't understand about the javascript -- which isn't surprising, as i'm not much of a techie. but since t's going to be running on the client computer, not the server, what's the problem?
any other ideas? should i see what Atomz says?
Here is the problem:
Note the missing "+" between the <scr and ipt>
It should be
Something is stripping all of the formating out of the above code.
Cheers
Andy
Code: Select all
<script language="JavaScript" type="text/javascript">
if(ns4)_d.write("<scr ipt language=JavaScript src="http://www.movingpictures.nisa.com/mm/mmenuns4.js"></scr ipt>");
else _d.write("<scr ipt language=JavaScript src="http://www.movingpictures.nisa.com/mm/mmenudom.js"></scr ipt>");
</script>
It should be
Code: Select all
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.movingpictures.nisa.com/mm/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.movingpictures.nisa.com/mm/mmenudom.js><\/scr"+"ipt>");
</script>
Cheers
Andy
Last edited by Andy on Fri Feb 13, 2004 7:02 pm, edited 2 times in total.
I had the same issue (http://www.circadian.com). I just added a static, non-java menu for the search page.
Same problem - fixed by inserting comments into the script e.g.
<script language=JavaScript>
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.foundationsystems.co.uk/scri ... /scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.foundationsystems.co.uk/scri ... /scr"+"ipt>");
//-->
</script>
<script language=JavaScript>
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.foundationsystems.co.uk/scri ... /scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.foundationsystems.co.uk/scri ... /scr"+"ipt>");
//-->
</script>