Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Code/script to open in Firefox, not IE?
New Posts  All Forums:Forum Nav:

Code/script to open in Firefox, not IE? - Page 2

post #11 of 20
Thread Starter 
Quote:
Originally Posted by JEK3 View Post
What are you using for a java host? Standard MS default? That may be the problem.
I'm not really sure what you're asking.

Could you tell me how to check that, and change it? (if I need to)
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
post #12 of 20
Thread Starter 
Alright, I may have thought of something.

Does anyone know how to create a protocol and associate it with Firefox? I found the Set Associations section under the Control panel, but only allows me to manage existing protocols and I do not see any way to add a new protocol. I was thinking maybe I could make a ffox:// protocol or something and then have javascript open the URL with that protocol, which would then have IE open it using Firefox.
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
post #13 of 20
Call System.Shell.execute("http://example.com/whatever.html"); . It should then open in the user's default browser, whatever it's set to.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #14 of 20
Quote:
Originally Posted by error10 View Post
Call System.Shell.execute("http://example.com/whatever.html"); . It should then open in the user's default browser, whatever it's set to.
That's Java, though, not JavaScript.

As for the OP, I'm fairly certain that what you're trying to do is not possible. IE is rendering the gadgets in the sidebar, so instances of IE are essentially running there. Opening a link in a new window will just open a new window of IE.

Unless you can figure out some magical way of having Firefox render the gadgets, you won't be able to do anything about it.
Macbook
(17 items)
 
  
CPUGraphicsRAMHard Drive
Intel P8600 @ 2.4Ghz Geforce 9400M 6GB Crucial DDR3-1066 OCZ Vertex 2 128GB 
Hard DriveOptical DriveOSOS
External 1TB Broken and Making Funny Noises OS X Lion Windows 8 Preview 
MonitorMonitorKeyboardPower
13.3" 1280x800 Dell 2407WFP-HC Backlit Lithium-Polymer Battery 
CaseMouseAudio
Unibody Multi-Touch Trackpad JVC Marshmallow's 
  hide details  
Reply
Macbook
(17 items)
 
  
CPUGraphicsRAMHard Drive
Intel P8600 @ 2.4Ghz Geforce 9400M 6GB Crucial DDR3-1066 OCZ Vertex 2 128GB 
Hard DriveOptical DriveOSOS
External 1TB Broken and Making Funny Noises OS X Lion Windows 8 Preview 
MonitorMonitorKeyboardPower
13.3" 1280x800 Dell 2407WFP-HC Backlit Lithium-Polymer Battery 
CaseMouseAudio
Unibody Multi-Touch Trackpad JVC Marshmallow's 
  hide details  
Reply
post #15 of 20
Quote:
Originally Posted by mentholmoose View Post
That's Java, though, not JavaScript.
Click the link. It's what Microsoft says to do for a sidebar gadget.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #16 of 20
Thread Starter 
Quote:
Originally Posted by mentholmoose View Post
That's Java, though, not JavaScript.

As for the OP, I'm fairly certain that what you're trying to do is not possible. IE is rendering the gadgets in the sidebar, so instances of IE are essentially running there. Opening a link in a new window will just open a new window of IE.

Unless you can figure out some magical way of having Firefox render the gadgets, you won't be able to do anything about it.
That's what I thought, but I was being hopeful that you could possibly somehow tell it to open in another browser.

However, do you know how to add protocols that IE could recognize?

For example, when you click, for example, the AIM icon on this forum below each user's name in their posts, it pops up a window and then you click the "Send message" or "add to buddy list" options, and the links have like "aim:" at the start, letting IE know that it needs to do it in the AIM program, and I assume that protocol is associated with AIM. Is there a way to add a protocol to tell IE to open a link in Firefox? Like, somewhere where I could create one and have it say "ffox:www.woot.com", telling it to open www.woot.com in Firefox...

What I'm trying to do probably isn't actually called a protocol, like http:// or ftp://, but whatever. Semantics, shmemantics


Quote:
Originally Posted by error10 View Post
Click the link. It's what Microsoft says to do for a sidebar gadget.
Thanks, but I'm not really sure at all how to use that... lol
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
post #17 of 20
Quote:
Originally Posted by TriplePlay View Post
So, in the javascript file, I used a simple window.open(buyURL) command to open up a window to the purchase page at Woot.
Quote:
Originally Posted by TriplePlay View Post
Thanks, but I'm not really sure at all how to use that... lol
Yes you do.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #18 of 20
Thread Starter 
Quote:
Originally Posted by error10 View Post
Yes you do.
Oh, I didn't think it was a javascript command. I thought it was something else.

Back to the point: I just tried it, and it worked like a charm. I used:
Code:
System.Shell.execute("Firefox.exe",buyCrap,"C:Program FilesMozilla Firefox","open");
rather than the window.open(buyCrap) command.

I wish I could rep you about ten million times.
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
post #19 of 20
Good show.

Of course that opens it in Firefox -- and only if the user has Firefox installed! If not, you're kind of screwed.

The command I gave should open in the user's default browser, whether Firefox, IE or something else.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #20 of 20
Thread Starter 
Quote:
Originally Posted by error10 View Post
Good show.

Of course that opens it in Firefox -- and only if the user has Firefox installed! If not, you're kind of screwed.

The command I gave should open in the user's default browser, whether Firefox, IE or something else.
Yes, but I decided to make sure it used Firefox.
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
Pumpmaster Flex
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7-2700k Gigabyte GA-Z170X-UD5 ASUS R9 280X DirectCU II TOP 3 GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Razer Blackwidow Ultimate 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
OtherOtherOther
Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Code/script to open in Firefox, not IE?