Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48

Atomz Search kills the menu?


Poster: AM Radio
Dated: Saturday January 17 2004 - 7:13:56 GMT

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!


Poster: kevin3442
Dated: Saturday January 17 2004 - 7:57:22 GMT

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


Poster: AM Radio
Dated: Saturday January 17 2004 - 9:00:36 GMT

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?


Poster: Andy
Dated: Monday January 19 2004 - 12:38:34 GMT

Here is the problem:

Code:
<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:
<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


Poster: John
Dated: Monday January 19 2004 - 19:38:30 GMT

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.


Poster: akerin
Dated: Monday January 19 2004 - 22:42:16 GMT

I had the same issue (http://www.circadian.com). I just added a static, non-java menu for the search page.


Poster: marks
Dated: Friday February 13 2004 - 17:53:19 GMT

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/scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.foundationsystems.co.uk/scripts/mmenudom.js><\/scr"+"ipt>");
//-->
</script>