Solved

open pages via VB.NET into Firefox

Posted on 2008-10-03
5
1,226 Views
Last Modified: 2013-12-07
This question is in two parts:

1) I want to open url's in firefox, at this point, the assumption can be made that firefox is installed (since it's going to be used on my system), and

2) once I have the tabs open, I want to read back the page source(s) into a multi-line text box.

Let's assume (for the sake of argument) that at this point I want to open two tabs and read back the source from the firefox browser. The key point is that I need to be able to get the source for all open tabs
0
Comment
Question by:madivad2
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 400 total points
Comment Utility
1) You can open it using command line arguments as described in this Mozilla support page
http://support.mozilla.com/en-US/kb/Command+line+arguments
2) You can use HTTPRequest object and get the page source directly from the web server.
0
 
LVL 2

Author Comment

by:madivad2
Comment Utility
I was having issues with doing it directly to the web site via code due to required cookies not being available to me, or simply not knowing how to implement them (there is another question out there in relation to this, ie cookies)

In relation to the first part of the problem, that hinges on knowing where firefox is installed. I know there's an easier way where you can reply on the file associations of the html page, but can't remember how it's done
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
You can launch the URL directly but you need to make sure that firefox is the default browser. You could instead search for the firefox.exe in the current system drive and run it with the parameters. This way you could also know if the firefox is not installed.
0
 
LVL 2

Author Comment

by:madivad2
Comment Utility
I found it, this is what I was looking for... now the memories come flooding back :)

http://www.devx.com/dotnet/Article/7914
0
 
LVL 2

Author Closing Comment

by:madivad2
Comment Utility
Not quite what I was after, I found the link in the end, but recognise your contributions. Thanks
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now