Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

open pages via VB.NET into Firefox

Posted on 2008-10-03
5
Medium Priority
?
1,257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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 +…
Suggested Courses

722 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