Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - Applet launching new browser window from Firefox 1.5

 
Thread Tools Search this Thread
Old 12-06-2005, 11:09 PM   #1
Default Applet launching new browser window from Firefox 1.5


As of Firefox 1.5 Java's showDocument method is blocked by the Firefox popup
blocker. We deal with the similar issue in Internet Explorer by using a
Runtime.exe command (our applet is digitally signed). I'm having trouble
figuring out the command line argument to open a new Firefox window.

"C:\Program Files\Mozilla Firefox\firefox.exe" http://www.mozilla.org
opens the URL but it replaces the current page that was open, killing the
applet.

"C:\Program Files\Mozilla Firefox\firefox.exe" -new http://www.mozilla.org
does not seem to work; it just opens a new browser window to your Home Page.

Does anyone know the proper syntax for opening a new Firefox window?




Mickey Segal
  Reply With Quote
Old 12-06-2005, 11:44 PM   #2
Mickey Segal
 
Posts: n/a
Default Re: Applet launching new browser window from Firefox 1.5
"Mickey Segal" <> wrote in message
news:...
> "C:\Program Files\Mozilla Firefox\firefox.exe" http://www.mozilla.org
> opens the URL but it replaces the current page that was open, killing the
> applet.


The folks on netscape.mozilla.user.win32 had the answer - the URL needs
quotation marks. The following works:
"C:\Program Files\Mozilla Firefox\firefox.exe" "http://www.mozilla.org"

Whether it opens in a new window or a new tab seems to be controlled by the
user settings.

The command line options page for Firefox is at:
http://www.mozilla.org/docs/command-line-args.html
I was having trouble finding it.




Mickey Segal
  Reply With Quote
Old 12-07-2005, 11:09 AM   #3
Nigel Wade
 
Posts: n/a
Default Re: Applet launching new browser window from Firefox 1.5
Mickey Segal wrote:

> "Mickey Segal" <> wrote in message
> news:...
>> "C:\Program Files\Mozilla Firefox\firefox.exe" http://www.mozilla.org
>> opens the URL but it replaces the current page that was open, killing the
>> applet.

>
> The folks on netscape.mozilla.user.win32 had the answer - the URL needs
> quotation marks. The following works:
> "C:\Program Files\Mozilla Firefox\firefox.exe" "http://www.mozilla.org"
>
> Whether it opens in a new window or a new tab seems to be controlled by the
> user settings.
>
> The command line options page for Firefox is at:
> http://www.mozilla.org/docs/command-line-args.html
> I was having trouble finding it.


How does that work for someone whose browser isn't running on Windows?

(If you don't care, why program in Java at all; you might as well be using a
Microsoft product which is tuned for Windows).

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail :
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555


Nigel Wade
  Reply With Quote
Old 12-07-2005, 01:30 PM   #4
Mickey Segal
 
Posts: n/a
Default Re: Applet launching new browser window from Firefox 1.5
"Nigel Wade" <> wrote in message
news:dn6ft2$m86$...
> How does that work for someone whose browser isn't running on Windows?
>
> (If you don't care, why program in Java at all; you might as well be using
> a
> Microsoft product which is tuned for Windows).


Our code checks for various browsers and operating systems and handles the
peculiarities of each as needed. The Windows code is only executed for the
Windows environment.

On my "to do" for today was checking Firefox 1.5 for Macintosh, and sure
enough it has become the first Macintosh browser to block showDocument.
Things were simpler in the days that one could count on Java methods
working.






Mickey Segal
  Reply With Quote
Old 12-07-2005, 04:16 PM   #5
Thomas Weidenfeller
 
Posts: n/a
Default Re: Applet launching new browser window from Firefox 1.5
Mickey Segal wrote:
> Our code checks for various browsers and operating systems and handles the
> peculiarities of each as needed.


Oh sure <sarcastic grin>. I live in an environment where there is more
than one browser available, most not in any of the common directories,
and on an operating system / desktop combination where there is no real
concept of a "default browser" (there is a something similar thing,
which everyone ignores). "default" is what you start ... How do you
intend to figure out which browser I use today?

> On my "to do" for today was checking Firefox 1.5 for Macintosh, and sure
> enough it has become the first Macintosh browser to block showDocument.
> Things were simpler in the days that one could count on Java methods
> working.


Java is still working and is not to blame. It is that users got sick and
tired of popups, redirections to their sites, and many other sorts of
massive abuse. So users demand from browser manufacturers to plug the
holes. And once one hole was plugged the spammers and abusers figured
out the next hole, until that was plugged, too.

The only one you have to blame are the abusers.

BTW: Why do you think you have the right to open another browser window
on your users' desktops? Probably your users don't want that you open
another window, and won't want your application that way.

/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq
http://www.uni-giessen.de/faq/archiv....java.gui.faq/


Thomas Weidenfeller
  Reply With Quote
Old 12-07-2005, 05:14 PM   #6
Mickey Segal
 
Posts: n/a
Default Re: Applet launching new browser window from Firefox 1.5
"Thomas Weidenfeller" <> wrote in message
news:dn71s4$aq$...
> Why do you think you have the right to open another browser window on your
> users' desktops? Probably your users don't want that you open another
> window, and won't want your application that way.


We have the right to open another browser window since the applet is
digitally signed. We display further information on other Web sites such as
articles about a diagnosis being considered. Our users asked for this
content and tell us it is important to them. Displaying it in a frame in
the HTML page with the applet would be very clunky. Replacing the HTML page
running the applet stops the applet. If you are arguing that one should not
use applets for this computationally-intensive material and instead should
use server-based code this would make response time much slower than is
possible with a Java applet.

The showDocument method was put in Java for a good reason. It is too bad
that skuzzy marketers have abused it, but a digitally-signed applet should
be able to get back functionality that was included in Java from the very
early versions.




Mickey Segal
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing Browser Window shanza Software 1 05-28-2008 08:42 PM
Applet to Servlet to HTML cisco_query Software 0 01-27-2008 05:32 PM
new window minimizes to taskbar -D- A+ Certification 0 03-03-2007 01:07 AM
Re: Firefox browser question smackedass A+ Certification 0 11-09-2006 12:55 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46