forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Default Browser

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Fri Oct 12, 2007 9:16 pm    Post subject: Default Browser Reply with quote

I did some searching on this here (and other places) and couldn't find much help. I am making a browser and I want to set it as the default browser. Anyone know how I can do this? I also want to make sure that if a link is clicked on a web page that is a popup, it opens my app and not Internet Explorer.

Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Oct 13, 2007 1:23 am    Post subject: Reply with quote

I believe for you to do this, you will have to associate your app with as many web based file extensions (html, htm, asp, asx, php...etc) and mime http and https.

I don't think there is, for lack of a better term, a single switch or command that will set this for you.

Good Luck Wink

Aslan
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Oct 13, 2007 1:40 am    Post subject: Reply with quote

This info might be of use to you.

Quote:
Start the registry editor (regedit.exe)

Move to HKEY_CLASSES_ROOT\http

Expand the tree and move to HKEY_CLASSES_ROOT\http\shell\open\command, double click on default and set the string to the command you wish to run for Internet addresses, for example "E:\Program Files\Internet Explorer\iexplore.exe" -nohome for Internet Explorer.

Click OK

Move to HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application, and again double click Default, change to the browser, IExplore for Internet Explorer.

You may also want to change the icon associated, move to HKEY_CLASSES_ROOT\http\DefaultIcon, (do I need to say) double click Default and set to the icon %SystemRoot%\system32\url.dll,0 Internet Explorer

You should repeat the above for https as well, i.e. HKEY_CLASSES_ROOT\https\shell\open\command etc.


Ref: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1765109&SiteID=1
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sat Oct 13, 2007 1:52 am    Post subject: Reply with quote

I'll have to play around with this. Sounds like a pain, but if I can get it down, shouldn't be too bad. Would be nice if it was explained in full somewhere to make it less of a headache. Confused

Thanks a lot.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sat Oct 13, 2007 2:57 am    Post subject: Reply with quote

Well, I can get it to set default, but when I click on a link that is a popup window, it still opens in IE. I am using VDSBrw50.dll for the browser element, since it uses the internet explorer engine is that why it just keeps using IE for popups? I really need it to open in my app. Any more ideas?

Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Oct 16, 2007 1:43 am    Post subject: Reply with quote

LiquidCode,
The VDS Browser element is Internet Explorer. There is an event that the browser control fires when you click on a link. You have to trap that event and respond in a special way to tell the browser control to open popup windows in a different manner than it's default which is to open Internet Explorer as an Application. Another thing you could do is update the HTML with a little javascript to keep popups in your own window. I think I have some around here somewhere. I will look and let you know.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Oct 16, 2007 2:06 am    Post subject: Reply with quote

That would be great! I would be able to use the script on all sites, not just ones that I make?

Thanks a lot!

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group