SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Custom Context Menus using DHTML and XML


Sponsored Links
Developer's Paradise : Inside Technique :
Custom Context Menus using DHTML and XML
Submission by SiteExperts Staff

Go to the resource:
Custom Context Menus using DHTML and XML

Add to Assistant

Short Description
Create custom context-menus for Internet Explorer 5.0 or later using DHTMl and XML Data Islands.

Long Description
Context menus are commands that are displayed when the user right-clicks on your web-page. Learn how to override the default menus in Internet Explorer 5.0 or later using XML Data Islands and DHTML.

Author
Scott Isaacs
Date/ Version
9/26/2000
Submission URL
http://www.SiteExperts.com/tips/styles/ts42/page1.asp
Submission Date
Sep 26,2000
Last Update
Sep 26,2000
 

Discussion and Rate this Resource
Overall Rating: 4

scottwall on Dec 31, 2003 at 6:28:12 AMRating: 5

Very good for supporting multiple context menus on a single page.

However there is a problem when you right click other than on one of the elements supporting a context menu. It seems to capture focus so nothing else can be accessed until you right click on an element that has a context menu.

Being a total javascript novice I cant see why, any ideas??

JerryNixon on Dec 5, 2001 at 12:01:38 PMRating: 3
databinding menus is the way to do it. it is fast and easy to maintain. it also allows you to maintain your menu content in seperate files that lets ie download them all in seperate threads and improve your download performance. i made a non-bound demo that uses xml to populate tiered select boxes - it is TOTALLY different than what this is but chk it  http://jerrynixon.com/jerrynixon/vbscript/new/select.htmout
resptech on Jun 7, 2001 at 11:42:02 AMRating: 4

I like the idea of putting menus in XML data however hw can I reference an external xml file with the menus I tried this and the call in

function fnPopulate(sID) {

to

var elMenuRoot = document.all.contextDef.XMLDocument.childNodes(0).selectSingleNode('contextmenu[@id="' + sID + '"]');

doesn't work because the datasrc is external to the document. how can I create copy  of the external data that has all the menu items in it so the script can reference these nodes.

 

 

braveheart on Nov 27, 2000 at 12:33:27 PMRating: 5

well smart!!

i'll use this some time to have my links in the context menu,

csolesbee on Oct 10, 2000 at 6:06:13 AMRating: 3
Gothic on Oct 7, 2000 at 7:00:26 AMRating: 4

 

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.