Quick question

This is a discussion on "Quick question" within the Web Page Design section. This forum, and the thread "Quick question are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 1st, 2006, 14:01
Reputable Member
Join Date: May 2006
Location: Warrington, UK
Posts: 428
Thanks: 0
Thanked 0 Times in 0 Posts
Quick question

Anybody got any idea how to make a link load Internet explorer when its clicked?

I have a link that goes to an external page beyond my controll that isn compatible with forefox or anything but IE (mumble mumble arf)

So, id like to auto launch internet explorer when the link is clicked to avoid compatibility issues.

Also.... id like it to just load as normal if the client is allready using IE (fools)

Thanks for any suggestions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 1st, 2006, 14:05
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Quick question

heh in wondows for me even though FF is set as my default, when I click links in other apps IE always launches. I am guessing that some form of ActiveX Control would do the trick. ASp or VBScript?
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Nov 1st, 2006 at 14:07.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 1st, 2006, 14:10
Reputable Member
Join Date: May 2006
Location: Warrington, UK
Posts: 428
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Quick question

was hopoing for a javascript solution tbh.

ill search around....... if anyone comes up with an answer in the meantime lemme know pls
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 1st, 2006, 14:52
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Quick question

You could use a JavaScript browsers detect. Where it detects the browser and if it is not IE it goes to another page that says, this page must be viewed in IE. Here would be the code....
Code: Select all
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else if(navigator.userAgent.indexOf("MSIE") != -1)
{
   window.location = "http://www.yourdomain.com/YEAH_IE.html";
}
else if(navigator.userAgent.indexOf("Netscape") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
</script>
Here is the code change it to whatever, use it or don't. I don't really care....lol

Last edited by JacobHaug; Nov 1st, 2006 at 14:54.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 1st, 2006, 16:14
Reputable Member
Join Date: May 2006
Location: Warrington, UK
Posts: 428
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Re: Quick question

Quote:
Originally Posted by JacobHaug View Post
You could use a JavaScript browsers detect. Where it detects the browser and if it is not IE it goes to another page that says, this page must be viewed in IE. Here would be the code....
Code: Select all
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else if(navigator.userAgent.indexOf("MSIE") != -1)
{
   window.location = "http://www.yourdomain.com/YEAH_IE.html";
}
else if(navigator.userAgent.indexOf("Netscape") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
</script>
Here is the code change it to whatever, use it or don't. I don't really care....lol
I'm quite liking this idea actually.... thankyou very much

I dont suppose you could explain it a little further to me, and maybe an idea of how i would implement it into an html link?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 1st, 2006, 18:44
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Quick question

Well do something like this....

They click the link and the link opens a pop-up window, or whatever type of window you want. Have the link be something like this...

Ok so have your html link, link to a page called ID.html/whatever.html

Then on that page paste this code, and change the URLS...

Code: Select all
<html>
<head>
<title>Your Company - Browser ID</title>
</head>
<body>
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else if(navigator.userAgent.indexOf("MSIE") != -1)
{
   window.location = "http://www.yourdomain.com/IE.html";
}
else if(navigator.userAgent.indexOf("Netscape") != -1)
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
else
{
   window.location = "http://www.yourdomain.com/Sorry.html";
}
</script>
</body>
</html>
Then make the page Sorry.html, on that page tell them that IE is required to view this page, and allow them to copy the URL to the browser ID page so that they can paste this into their IE browser.

Then make the page IE.html/whatever then on that page put the content that you want your IE viewers to see. You could also make a version for people that are using Firefox so that the don't get mad...lol

Let me know if you need anything else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
a href

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
quick question jtyoungs PHP Forum 7 Sep 25th, 2007 15:45
Quick question extrememonkey Website Planning 0 Mar 27th, 2007 17:56
Quick Question!! JacobHaug Web Page Design 6 Oct 18th, 2006 22:08


All times are GMT. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved