Atomz Search kills the menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
AM Radio
Beginner
Beginner
Posts: 2
Joined: Sat Jan 17, 2004 8:10 am

Atomz Search kills the menu?

Post by AM Radio »

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!
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
AM Radio
Beginner
Beginner
Posts: 2
Joined: Sat Jan 17, 2004 8:10 am

Post by AM Radio »

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?
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.

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?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Here is the problem:

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>
Note the missing "+" between the <scr and ipt>

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>
Something is stripping all of the formating out of the above code.

Cheers
Andy
Last edited by Andy on Fri Feb 13, 2004 7:02 pm, edited 2 times in total.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Note also that the terms of the Milonic license allow you to use the menu on one domain. If you do somehow get the menu to work on the search domain, I believe that would be a violation of those terms.
John
akerin
Beginner
Beginner
Posts: 4
Joined: Mon Jan 19, 2004 11:02 pm

Post by akerin »

I had the same issue (http://www.circadian.com). I just added a static, non-java menu for the search page.
marks
Advanced
Advanced
Posts: 14
Joined: Fri Feb 13, 2004 6:50 pm

Post by marks »

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>
Post Reply