473,549 Members | 3,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP - JSCookMenu problem


I am trying (for first time) to get Yuan Heng's JSCookMenu to work.

I have placed "JSCookMenu .js" in the main web directory (ie. in
http://xyz.com/) , and created a folder called ThemeIE (ie.
http://xyz.com/ThemeIE/) to hold the image files, and the "theme.css" and
"theme.js" files.

I have edited "theme.js" script, and changed the first line to:-
var cmThemeIEBase = 'ThemeIE/';
(previously it referred to '/~heng/JSCookMenu/ThemeIE/')

(I've also tried the script with '/ThemeIE/' instead of 'ThemeIE/' - no
difference!)

Lastly I've created the following test.htm to check if it works - but I
ALWAYS get script error that "myMenu" is undefined.

Can anyone tell me what's wrong please? Better still, what I need to do to
code this correctly?

Thanks
-------------------

<html>
<head>
</head>

<body link="#000080" vlink="#800080" text="#FFFF00" bgcolor="#0000F F"
alink="#FF0000" >
<DIV ID="MenuDefinit ion">
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu .js"></SCRIPT>

<LINK REL="stylesheet " HREF="ThemeIE/theme.css" TYPE="text/css">
<SCRIPT LANGUAGE="text/javascript" SRC="ThemeIE/theme.js"></SCRIPT>

<SCRIPT LANGUAGE="text/javascript">
<!-- var myMenu =
[
[null,'Home','ww w.yahoo.com','_ top','Return to Home page',
[null,'Welcome', 'www.yahoo.com' ,'_top','Return to Home page'],
[null,'Contact Us','home_conta ct.htm','_top', 'Contact information']
],
[null,'News','ne ws_index.htm',' detail','News pages',
[null,'News Index','news_in dex.htm','_top' ,'Main news index'],
]
];
-->
</SCRIPT>

<DIV ID='myMenuID'></DIV>

<SCRIPT LANGUAGE="JavaS cript"><!--
cmDraw ('myMenuID', myMenu, 'hbr', cmThemeIE, 'ThemeIE');
--></SCRIPT>

</DIV>

</body>

</html>
Aug 8 '05 #1
3 3111
Hi Richard,
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu .js"></SCRIPT>


Don't know if it changes anything, but the value for the langauge-attribute in a
script-Tag is "JavaScript " not "text/javascript" - that's the type-Attribute:

<script language="JavaS cript" type="text/javascript" src="JSCookMenu .js">

Greetings,

Martin
Aug 8 '05 #2

"Martin Kurz" <in**@martinkur z.in-berlin.de> wrote in message
news:11******** *****@elch.in-berlin.de...
Hi Richard,
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu .js"></SCRIPT>


Don't know if it changes anything, but the value for the
langauge-attribute in a
script-Tag is "JavaScript " not "text/javascript" - that's the
type-Attribute:

<script language="JavaS cript" type="text/javascript" src="JSCookMenu .js">


Hi

Changed that - no difference :-( ... exact same error.

Aug 8 '05 #3
Richard wrote:
"Martin Kurz" <in**@martinkur z.in-berlin.de> wrote in message
news:11******** *****@elch.in-berlin.de...
Hi Richard,

<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu .js"></SCRIPT>


Don't know if it changes anything, but the value for the
langauge-attribute in a
script-Tag is "JavaScript " not "text/javascript" - that's the
type-Attribute:

<script language="JavaS cript" type="text/javascript" src="JSCookMenu .js">

Hi

Changed that - no difference :-( ... exact same error.


Language is depreciated, type is required. It rarely makes any
difference but can cause very difficult to find problems in particular
circumstances - and it will make a validator squawk.

--
Rob
Aug 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
628
by: Mj23 | last post by:
I'm Italian and I'm sorry for my English!!!I'm new of this ns and so I don't know if my question is suitable. I have a problem: using the C++ language,the QT library and the OpenGL library realize a CAD that can: a) load a glut three-dimensional model b) load a three-dimensional model in dxf format Thank you very much
0
1632
by: Prasanth U | last post by:
Hi All, We are facing a problem while integrating a HTML help file (chm version 1.x) to our windows .net application (C#). The help topic for the controls in the application are shown using the following command Help.ShowHelp(helpParent, @HelpFile, HelpNavigator.Topic, topicName); The problem is like this. Our application has two modes...
1
2061
by: Richard | last post by:
I have a framed page, with a 100 pixel deep header section. I've coded the JSCookMenu in that frame, but the drop downs get cut in half ..... ie. the drop downs only display within that frame and won't overlay over the frame below. Is there any way round this?? I'm not a Javascript programmer, so any coding changes need to be fully...
7
5348
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available from clicking on many of the available topics (mostly methods but some properties are also unavailable). This same problem occurs with many, if not...
23
3241
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application to create certain textboxes, labels, and combo boxes? Any ideas would be appreciated. Thanks
10
2827
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I have to add a datalist control. Using this datalist control I should be able to add edit, modify and cancel the items listed in this control. ...
1
1998
by: Tomasz Leskier | last post by:
I placed JSCookMenu near the applet and after expanding the menu, part of it is _below_ the applet. I tried setting z-index attribute and putting the menu in 'div'. No effect. Any solutions ? greetings TL
16
2779
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and efficient navigating within Visual Studio 2005. Let's say your project (or solution) has dozens of forms and hundreds or even thousands of routines. ...
0
3179
by: Vinutha | last post by:
I have designed one xhtml page using frameset, where i have included 3 frames to make one page, ie. one for header, one for menuTree & one for body, This is my code, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.