Important alert: (current site time 7/16/2013 12:04:24 AM EDT)
 

" Change To: strHTML = "" Basically remove the brackets 2. createSubMenu Function: Change the "this" keyword being passed in to the two functions to "Me" The menus should now function as they did in IE5. Al....
(If this comment was disrespectful, please report it.)

 
winzip icon

XML Driven ASP Menu

Email
Submitted on: 4/11/2000 5:54:40 PM
By: Patrick Smits  
Level: Intermediate
User Rating: By 16 Users
Compatibility: ASP (Active Server Pages), VbScript (browser/client side)
Views: 65239
 
     Create a pull down menu using server side XML. All processing of the XML is done using ASP on the server. Easy configurable pull down menu.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
5/18/2000 3:11:05 PMLarry

I tried the code as is, setting up a directory with script and execute also putting the files in the correct directories but no menu showed up.Am I missing something
(If this comment was disrespectful, please report it.)

 
5/19/2000 10:19:10 AMAndré Ratté Jr.

It does not support Netscape For IE only
(If this comment was disrespectful, please report it.)

 
5/19/2000 6:22:17 PMDuarte

I've the same problem of Larry
(If this comment was disrespectful, please report it.)

 
6/2/2000 2:28:04 PMMathew A Tilman

Along with Larry and Duarte, I too, just get blank screens. Doing a view screen on the blank page and scrolling to the bottom will expose an error: Object doesn't support this property or method: 'objNodeList.nextNode' This occurs on line 20 (approx): set objNode = objNodelist.nextNode
Because of this I consider this bad code to be posted and I would suggest that you navigate to http://webreference.com/xml/column3/ for an example and tutorial for XML Hierarchical Menus that do work and are much easier to understand.
(If this comment was disrespectful, please report it.)

 
6/15/2000 4:31:42 PMPatrick Smits

Comment on all the comments :
Some guys downloaded the code an don't know how to use it (I even doubt if they know what XML is ;-)). Well anyway. The nextNode errormessage you guys get is because on old version of the XML parser was installed. You should at least use the XML parser which comes with IE5. So if you install IE5 on your server (or the seperate parser alone) it will definitely work. I've tried it here with win2000 and everything works fine. And a separate comment to Mathew :You say the code is bad but I've got it working here and a lot of other guys have it working. So is this bad code ? I don't think so. But there is a difference in "I cannot use the code" or "the code is bad". I think the first option happened to you..
(If this comment was disrespectful, please report it.)

 
11/21/2000 10:17:00 PMGreg Haddad

OK, I give up. I've installed MSXML 3.0, even used the xmlinst.exe for
(If this comment was disrespectful, please report it.)

 
11/21/2000 10:19:23 PMGreg Haddad

Sorry about that last post. I have installed MSXML 3.0 and even the xmlinst.exe for REPLACE mode, so no old libraries are referenced. Still does not recognize the NextNode method. Any idea folks? Thanks in advance.
(If this comment was disrespectful, please report it.)

 
2/8/2001 1:42:29 PMMike Kelley

I downloaded the files and had it up and going in less than 5 minutes. Loads up quick and seems like a good script.
(If this comment was disrespectful, please report it.)

 
2/16/2001 12:55:19 PMMichael Ferreira

I loaded up this code and it seems to work well. I tried to modify the code so that the list is on the left hand side and each menu item is in a list form ie( one under the other) How do I do this and then have the submenu's pop up on the right hand side of the menu instead of underneath it. Any help would be greatly appreciated. Thanks,
Mike mferreira@huon.com
(If this comment was disrespectful, please report it.)

 
8/12/2001 7:36:04 AMmawar _merah

cool men it is good.
But I try create sub menu
could you tel me to mawar_merah_2001@yahoo.com
Tnk
(If this comment was disrespectful, please report it.)

 
2/9/2002 3:30:22 AMJay

doesn't work can't find problem, I get his error:

Line: 1
Char: 46
Error: Cannot use parentheses when calling a Sub
Code:0
(If this comment was disrespectful, please report it.)

 
4/3/2002 5:10:33 PMTonysComp

same here, i am using xp (so i have ie6 installed and iis 2000) dont know much about asp, just started learning it. but it doesnt work for me either
(If this comment was disrespectful, please report it.)

 
8/9/2002 6:41:39 AMnick

i'm using win xp and i've even downloaded the ms xml 4.0 parser sdk. but somehow i keep getting the error message: No data is available for the requested resource.

Why is this so? How do I correct this?
(If this comment was disrespectful, please report it.)

 
8/9/2002 6:43:15 AMnicholas

i'm using win xp and i've even downloaded the latest ms xml 4.0 parser sdk. However, i've error loading the xml file.

I keep getting this error: No data is available for the requested resource.

Why is tat so? How do I rectify this?
(If this comment was disrespectful, please report it.)

 
8/27/2002 9:33:13 PMCarlos Valdes

I get this error:

An error occured while loading the XML definition.Error : No data is available for the requested resource

running explorer v5.5 and iis 5. sp-2
(If this comment was disrespectful, please report it.)

 
9/27/2002 6:09:04 PM

I get the same message as you Carlos.. I am new to XML but can't figure out why it isn't finding the data.. Any help would be GREAT!! I love this menu style... Thanks...
(If this comment was disrespectful, please report it.)

 
10/3/2002 3:24:01 AM

I get this error:
An error occured while loading the XML definition.Error : No data is available for the requested resource.
I have IE 6.0 on my desktop machine, do I need to install msxml on server also.

Any help will be appreciated.
Thanking you in anticipation.
(If this comment was disrespectful, please report it.)

 
10/5/2002 8:00:10 AM

Dear Author,
I have pasted the code in the relevant folders but after load method it always goes in else part and give errpor msg. Pl. suggest what is done wrong?
Thanks.
(If this comment was disrespectful, please report it.)

 
10/6/2002 5:11:25 PM

This Error:
___________________

(If this comment was disrespectful, please report it.)

 
10/12/2002 6:54:46 AM

I have Windows XP Pro. I have loaded the msxml4.0 parser. I still get:
An error occured while loading the XML definition.Error : No data is available for the requested resource.

How did this code win an award if it doesn't work?
(If this comment was disrespectful, please report it.)

 
11/5/2002 9:53:56 AM

Really impressed with this piece of code, it has saved me a lot of time and trouble. To all those having problems, install SP2 of the msxml dll. This sorts the nodenext issue out. Also ensure that the ISUR user has the correct permissions to the dll. Other than that it works like a charm, well done Patrick!!!
(If this comment was disrespectful, please report it.)

 
11/5/2002 6:33:33 PM

about
(If this comment was disrespectful, please report it.)

 
11/5/2002 6:35:46 PM

check out : http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q281142&
(If this comment was disrespectful, please report it.)

 
3/26/2003 6:26:28 AM

get this error:

An error occured
while loading the XML definition.Error
: No data is available for the
requested resource

Can you help

I am running IE6 and IIS5 on win2000

Thank you

(If this comment was disrespectful, please report it.)

 
4/2/2003 10:12:15 AMAlan Byrne

Has anyone managed to solve the issue :
Line: 1
Char: 46
Error:
Cannot use parentheses when calling a
Sub
Code:0

It can only be reproduced using IE6 and for the life of me I can't find the problem, can anyone help PLEASE!!!
(If this comment was disrespectful, please report it.)

 
4/3/2003 5:13:33 AMAlan Byrne

FIX FOR THE IE6 ISSUE!! Change the following lines from the menu.vbs file: 1. createHeader Function Change from: strHTML = "
|  " & sHeaderName & "  |  " & sHeaderName & "  
11/4/2003 11:06:34 AM

if you are getting
(If this comment was disrespectful, please report it.)

 
11/4/2003 11:09:31 AM

if you are getting "No data is available for the requested resource" message, check the following link:
http://www.perfectxml.com/msxmlAnswers.asp?Row_ID=68
(If this comment was disrespectful, please report it.)

 
11/12/2008 1:19:10 AMManish

I down load but in this code any problem
an occurred error

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.