SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make This INTRANET Your Homepage

    Hello, New here, go easy on me if this is in the wrong place.

    Looking for help on an alternative to the following code which I have found from searching:

    Code:
    <!--[if IE]> 
    <font face="Arial" size="3"> 
    <A HREF="#" 
    onClick="this.style.behavior='url(#default#homepage)'; 
    this.setHomePage('www.mysite.com');"> 
    Make mysite Your Homepage 
    </A> 
    </font> 
    <![endif]-->
    This would be fine but I am trying to do this for my company Intranet so I am thinking I need to change
    Code:
    www.mysite.com
    with the location of my index.html file
    Code:
    p:\intranet\index.html
    This of course does not work.

    Any suggestions on producing this?

    Many thanks in advance
    ~Mark

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    P:\intranet\index.html will only work on computers that have the P drive (I assume this is a network drive). If that network drive is not available it will not work.

    I've also heard that the setHomePage javascript no longer works as of Internet Explorer 7. I'm trying to find the article where I read that.

    EDIT: I just did some tests. In IE7, it gives me an ActiveX content block bar. If I accept it, this function works. In Firefox, it reports the function as non-existent. Safari and Opera both just ignored it (they may have said it was a non-existent function too, but I don't have any error reporter for them).

  3. #3
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply.

    Yup all will have the correct path available and all are running IE 7

    I think it has something to do with p:\intranet\index.html not being a url, rather it is expecting some correct statement instead, only I dont know it.

    Thanks
    ~Makr

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    Try "file://p:\intranet\index.html"

    Also, check and see if that ActiveX blocker bar is showing up.

  5. #5
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you also for the tip, I now have:

    Code:
    <!--[if IE]> 
    <font face="Arial" size="1"> 
    <A HREF="#" 
    onClick="this.style.behavior='url(#default#homepage)'; 
    this.setHomePage('file://p:\intranet\index.html');"> 
    Make the site your homepage
    </A> 
    </font> 
    <![endif]-->
    When I hover over the link in the page it reads:

    file:///p:\intranet\index.html#

    When I click, nothing happens but there is an error on page warning which reads:

    Line: 163
    Char: 1
    Error: Permission denied
    Code: 0
    URL: file///p:/intranet/index.html


    It seems to be trying to treat that path/file name as a url, which would make sense why it doesnt work I suppose.

    Thanks
    ~Mark

  6. #6
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,345
    Mentioned
    192 Post(s)
    Tagged
    5 Thread(s)
    You are trying to access a mapped network drive from a webpage (which is looking for a response on port 80).
    Can you "surf" to the Intranet page with a browser? If so, simply copy/paste that URL to replace "www.mysite.com"
    Windows will read a network share as a resource. A browser will not (although IE makes seem transparent)

    Can't you simply set that file "P:\intranet\index" as part of your Startup group on Windows? Then it will come up everytime the computer starts.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  7. #7
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi ParkinT,

    I dont understand I am afraid. Can I surf the intranet page with a browser. Yes, I can simply type in the url address bar - p:\intranet\index.html which of course is what I have pasted as 'my site'

    No I cannot set the index file as part of their system startup, I come from a long line of corporate I.T departments that think they know best and now that I am in charge of I.T I am giving my users freedom to choose their homepage.

    Many thanks for the input

    ~Mark


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •