Solved

open pages via VB.NET into Firefox

Posted on 2008-10-03
5
1,229 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
ID: 22641830
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
ID: 22642269
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
ID: 22643891
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
ID: 22644857
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
ID: 31502839
Not quite what I was after, I found the link in the end, but recognise your contributions. Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

910 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

24 Experts available now in Live!

Get 1:1 Help Now