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

Problem with submenus and cgi-bin script


Poster: sospiri
Dated: Monday February 5 2007 - 14:05:39 GMT

I have a problem when using the BigNoseBird contact form script on http://www.sorrentobarcrete.com

Select "Contact Us" from the top-level menu, enter a couple of characters in just one of the fields and press "Submit". This will cause the page error.htm to be displayed. Now mouseover "Photos" on the top-level menu which should at this point display a submenu. Dependent on the browser, an error will occur as follows:-

Internet Explorer 6 will fail to display the submenu and instead display a Javascript runtime error. Checking out the debugger this turns out to be line 22 of the function openSubmenu() in mm_navframes.js which reads: var mNum=mm_tf.getMenuByName(_mi[mm_si][3])

Firefox just fails to display the submenu! :roll:

Opera fails to display the submenu and on mouseover displays "address: javascript: void(0)" rather than an address.

I would assume that the error is due to the fact that the browser cannot find either milonic_src.js and/or menu_data_body.js or one of the other two javascript files as referenced from error.htm, possibly because the script calling the page is running from a cgi-bin directory rather than the normal HTML directory. However, prefixing the location of all of these javascript files with the absolute path of "http://www.sorrentobarcrete.com/" makes no difference. Has anyone any thoughts on how to get around this problem please?


Poster: Andy
Dated: Monday February 5 2007 - 15:36:17 GMT

You'll need to ensure that you include this inside the formmail script:

Code:
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data_body.js"></script>


Poster: sospiri
Dated: Monday February 5 2007 - 15:51:48 GMT

Inside bnbform.cgi ?????

That just causes an Internal Server Error, presumably because the script is in Perl about which I know absolutely nothing! :roll:


Poster: Andy
Dated: Monday February 5 2007 - 18:26:46 GMT

email me a copy of the script and I'll take a look, that's the bnbform.cgi file. I'll see what I can do.


Poster: sospiri
Dated: Monday February 5 2007 - 20:04:30 GMT

Thank you - should be with you now! :lol: