Adding to Context Menu

Firefox, Thunderbird, SeaMonkey, Camino, Mozilla, Netscape 6/7/8/9, and all Gecko-based browsers discussion and support forum.
(MozInfo701, Netscape Browser Archive)

Moderators: Antony, Edward, profman, Ramona

Adding to Context Menu

Postby brendandonhu » Sun 27 Apr, 2003 6:20 pm

Hi, im new here :D
Please know this is NOT an advertisement for the message board I am refering to :roll:
I made some javascripts for another message board so you can right click a link to a thread on the board and go straight to the reply page, print it, etc. But its IE only and a netscape user asked if I could make it work in netscape. I think the javascripts would work in netscape if I could add them to the right-click menus.
If you want to look at my javascripts there is a more info at this thread
http://forums.techguy.org/t130582/s.html
The important part of the script is this
Code: Select all
var x = (external.menuArguments.event.srcElement.href);

Which gets the URL that the link is pointing to. Anyone know if that will work in Netscape and how to add it to the right-click menus?
Thanks in advance![/code]
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
brendandonhu
new member
new member
 
Posts: 4
Joined: Sun 27 Apr, 2003 6:13 pm

Re: Adding to Context Menu

Postby Antony » Sun 27 Apr, 2003 9:56 pm

brendandonhu wrote:...
If you want to look at my javascripts there is a more info at this thread
http://forums.techguy.org/t130582/s.html
The important part of the script is this
Code: Select all
var x = (external.menuArguments.event.srcElement.href);

Which gets the URL that the link is pointing to. Anyone know if that will work in Netscape and how to add it to the right-click menus?
Thanks in advance!

Hello Brendandonhu,

To be honest, I don't usually work with IE-only codes. In fact there are still quite a lot of NS-only features as being used in SillyDog701.

If I have time, I will check the detail to see if I can help.

The best approach... (which will cost you $105 AUD, cheaper in USD)
Buy Danny Goodman's JavaScript Bible either the Gold Edition (hard cover, more chapters) or 4th Edition (paper back).
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 14343
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby brendandonhu » Sun 27 Apr, 2003 10:07 pm

Thanks for your reply.
I will look at that book, I am interested in it anyway as a beginning JS writer.

Are you saying that code is IE only though?
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.4.0)
brendandonhu
new member
new member
 
Posts: 4
Joined: Sun 27 Apr, 2003 6:13 pm

Postby Antony » Sun 27 Apr, 2003 10:10 pm

Not sure, But since you mentioned that works for IE (only), I assumed it.
I am at work now. The JS Bible is at home.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 14343
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby brendandonhu » Sun 27 Apr, 2003 10:19 pm

Thanks, the reason it currently only works in IE is because I only knew how to add it to the right click menu in IE, which is done thru the registry.
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.4.0)
brendandonhu
new member
new member
 
Posts: 4
Joined: Sun 27 Apr, 2003 6:13 pm

Postby Antony » Sun 27 Apr, 2003 10:32 pm

your post from another forum wrote:Heres my modifications on Mosaic1's Quick Reply for TSG.

Sorry, What is TSG by the way?

(Can't test your zip in this computer, sorry.)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 14343
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby brendandonhu » Mon 28 Apr, 2003 6:01 am

TSG is tech support guy, which is the msg board I made it for.
And mosaic1 is the user that originally did it.
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.4.0)
brendandonhu
new member
new member
 
Posts: 4
Joined: Sun 27 Apr, 2003 6:13 pm


Return to Firefox, SeaMonkey and Netscape

Who is online

Registered users: Google [Bot], Yahoo [Bot]