Browser Launcher

Tagged:

This is something I discovered quite a while ago, but re-discovered a bit tonight. I always love the situations where you want to do something as stupidly simple as launch the user's default browser, only to discover that it's really not all that simple from a cross-platform programming point-of-view. After a few hacks of my own for a particular project, I came across the BrowserLauncher2 project on SourceForge. It easily handles all the "let's try it this way .... no? how about this way .... no again? ok what about this ... ?", all in a single method call. It seems to be stuck in 1.0RC? status, but I haven't had any issues with the code as-is.Enjoy!http://sourceforge.net/projects/browserlaunch2/

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <shell>, <c>, <drupal6>, <java>, <javascript>, <objc>, <perl>, <php>, <python>, <rails>, <ruby>, <sql>, <xmlcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.