473,806 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with dynarch context menu

Hi,

I am creating html pages with forms where I use Dynarch menu script in a
context menu mode. Their script needs to be initialized like this:
<body onload="Dynarch Menu.setup('men u', { context: true });">

This is in the beginning of the html page.
But, in my webpages I have only few pages where I actually use this kind of
menu. Since I use smarty template engine, I have single html-header file for
all pages - it includes the same <html><head><bo dyetc. for each page.
So I tried to initialize this dynarch script only within the page that
actually uses this menu. I do it like this:

<form>[...]</form>
<ul id="menu">
[context menu elements definition here]
</ul>

<script>window. onload=DynarchM enu.setup('menu ',{ context: true });</script>

This thing works OK in Firefox, however when I load such page in IE6 it
aborts the operation without even showing the page, and the popup message
says:
"Internet Explorer cannot open the Internet site http://example.com.
Operation aborted."

Does anyone know a way how to initialize the DynarchMenu.set up not from the
<bodyelement but from anywhere else in the html page?

--
Regards,
RB

Aug 2 '07 #1
2 2418
Robbo said the following on 8/2/2007 3:09 AM:
Hi,

I am creating html pages with forms where I use Dynarch menu script in a
context menu mode. Their script needs to be initialized like this:
<body onload="Dynarch Menu.setup('men u', { context: true });">

This is in the beginning of the html page.
But, in my webpages I have only few pages where I actually use this kind
of menu. Since I use smarty template engine, I have single html-header
file for all pages - it includes the same <html><head><bo dyetc. for
each page.
So I tried to initialize this dynarch script only within the page that
actually uses this menu. I do it like this:

<form>[...]</form>
<ul id="menu">
[context menu elements definition here]
</ul>

<script>window. onload=DynarchM enu.setup('menu ',{ context: true });</script>

This thing works OK in Firefox, however when I load such page in IE6 it
aborts the operation without even showing the page, and the popup
message says:
"Internet Explorer cannot open the Internet site http://example.com.
Operation aborted."

Does anyone know a way how to initialize the DynarchMenu.set up not from
the <bodyelement but from anywhere else in the html page?
window.onload = function(){Dyna rchMenu.setup(' menu',{ context: true })}

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 2 '07 #2

Uzytkownik "Randy Webb" <Hi************ @aol.comnapisal w wiadomosci
news:iI******** ************@gi ganews.com...
>
window.onload = function(){Dyna rchMenu.setup(' menu',{ context: true })}
Wow, amazingly fast response -- thank you very much. The script now works in
both IE and FF -- thanks again !

--
Regards,
RB

Aug 2 '07 #3

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

Similar topics

4
3081
by: Mohit Gupta | last post by:
Hi all, Lately I have been working on an application in VB .net CF for Pocket PC device. I have a small question about Context Menu. When I try to close the window after context menu is poped up, the window does not closes until I click on the window. Below is the code. Hopefully, you can help me out.
5
5495
by: Dean L. Howen | last post by:
Dear friends, Could we determine when context menu should appear?
8
10104
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for a text box has 6 items, undo, cut, copy, paste, delete and select all. I would like to add one additional paste menu that opens a new sub menu with several optional text items that could be pasted. The items would be populated by my program but...
0
1601
by: Lucas, Todd | last post by:
Hello everyone! I'm having a problem with a WebControl that I'm designing for a Menu. I've been at it for about 3 weeks now, and can't seem to get around this problem. So I'm hoping that someone can help me ... My environment: VS 2003 v7.1.3088, Win2K v5.0.2195 SP3, IE6 v6.0.2800.1106 browser. I have a class (C3Menu) derived from WebControl, with a property (MenuItems) that is a collection of menu items. The collection property is...
1
6343
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel etc'). is there a way making this without writing my own context menu (meaning, popup form or something) ? Please don't post commercial products to this topic thanks.
2
2761
by: gilad | last post by:
Hi, I seem to be having a problem getting a context menu to work in Explorer. The menu item installs fine, but when I click it a message box should pop up indicating the command was received and handled. Unfortunately, nothing occurs. I suspect that I am doing something wrong with the command ID for the menu item, but I can't figure out what. After registering my DLL, the menu item "my context menu" appears if I right-click any file. If...
1
3149
by: awebguynow | last post by:
First off, I think the dynarch calendar is quite wonderful, and I've been using it for months. I'm having some issues with form inputs in rows, and initializing the calendar. My fields, and inputs and buttons are all uniquely named ####1, ####2, etc. My text input (datetime), which I have pre-populated, is similar to MySQL format, but without the year: MM-DD hh:mm
3
5053
by: Poggs | last post by:
Hi everyone, I used the pattern for Shell Extensions for Context menu from Dino Esposito's article. However I implemented it in more than one application and it seems that those two right click functionalities cannot work together. void IContextMenu.InvokeCommand (IntPtr pici) I put more debugging information and I noticed that the two assemblies are using a common value. I haved changed their namespaces and guids to be different but...
0
1178
by: EvilProject | last post by:
Hi im writing a class of a context menu where each menu item is linked to a Tree Node. I have a click event (that belongs to the context menu class ,not the menu item class) that it's event arguments contains a reference to the tree node linked to the menu item that was clicked. in the case that no menu item was selected, i want to fire this event with a null refrenced tree node.i could have done so if the collapse event of the context menu...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10620
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10110
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5546
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.