Problem with submenus and cgi-bin script

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sospiri
Beginner
Beginner
Posts: 8
Joined: Mon Feb 05, 2007 10:21 am

Problem with submenus and cgi-bin script

Post by sospiri »

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

Post by Andy »

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

Code: Select all

<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>
sospiri
Beginner
Beginner
Posts: 8
Joined: Mon Feb 05, 2007 10:21 am

Post by sospiri »

Inside bnbform.cgi ?????

That just causes an Internal Server Error, presumably because the script is in Perl about which I know absolutely nothing! :roll:
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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.
sospiri
Beginner
Beginner
Posts: 8
Joined: Mon Feb 05, 2007 10:21 am

Post by sospiri »

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