Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:13

Does anyone know?

Poster: darkcircuituk
Dated: Wednesday August 25 2004 - 12:47:47 BST

I wish to add the page properties to the right click menu (sample 27), how would I go about doing this? I tried using; That didn't work, any ideas people? :?

Poster: Andy
Dated: Wednesday August 25 2004 - 17:53:05 BST

Not sure what you mean here, you got a URL we look at with a bit more info?


Slight Problem

Poster: darkcircuituk
Dated: Wednesday August 25 2004 - 19:38:40 BST

One slight problem, the website is internal and therefore cannot be accessed by the outside world, and due to the company's data security policy, I am unable to display a whole page worth of code. But when I return to work tomorrow, I can send u a couple of snippets of the code for specific sections, that you believe would help you to determine the problem. Please let me know which sections of code I should place here.


Further Explanation

Poster: darkcircuituk
Dated: Wednesday August 25 2004 - 19:42:22 BST

When you right click on a standard website, the standard microsoft right click context menu will be displayed. At the bottom of this menu is "Properties", which displays the properties of the page you right clicked on. I wish to add the "Properties" link to your right click menu, making it possible to access the properties of a page. I believe it should be just a case of using a single command, but I am not sure which one. If you know could you please let me know.

Hope that makes it clearer :)

Poster: Andy
Dated: Friday August 27 2004 - 12:37:44 BST


Not sure it's possible to fire the properties tab from within a browser.

What you could do is use the menu to display a window containing window properties. Some properties can be returned using JavaScript like lastModified, you could then insert this information into a menu. Here's a list of some properties you could try:


output="lastModified: " + document.lastModified+"\n"+
"fileCreatedDate: " + document.fileCreatedDate+"\n"+
"fileModifiedDate: " + document.fileModifiedDate+"\n"+
"fileSize: To be returned from server\n"+
"protocol: " + document.location.protocol+"\n"+
"port: " + document.location.port+"\n"+
"filename: " + document.location.href+"\n"



-- Andy

It Has To Be Possible

Poster: darkcircuituk
Dated: Friday August 27 2004 - 13:28:15 BST

It has to be possible, you can access it fine with the standard right click menu!

Re: It Has To Be Possible

Poster: kevin3442
Dated: Saturday August 28 2004 - 0:27:07 BST

darkcircuituk wrote: can access it fine with the standard right click menu!
darkcircuituk wrote:
[so] It has to be possible,
Not necessarily true.

One doesn't necessarily follow from the other. For example, when you right-click on an image, the resulting context menu in IE includes "Save Picture As...", "Print Picture..." etc. But just because that's the case, you wouldn't necessarily expect equivalent javascript methods to be available to do those things. In other words, for you to do exactly as you describe, there would have to be a native javascript method that opens that Properties dialog to which you refer. To my knowledge, there is no such method.

So... in the absence of a built-in method, your best bet is to construct your own function with the methods that are available. That's what Andy was suggesting (and the sample code he gave is a good start).