Results 1 to 7 of 7
  1. #1
    3 Star Lounger
    Join Date
    Sep 2004
    Location
    Portsmouth, Hampshire, England
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirect Error and jump out of Frame (6)

    Hi there,
    I'm not sure whether this is the correct place to be asking this, but I'm sure one of you kind loungers will point me in the correct direction if I have it wrong.

    I look after a site for my church and it is set up on a redirect from the deomain registration company.

    The redirect page set up by the company looks like this:
    <pre><HTML><HEAD>
    <META NAME="description" content="">
    <META NAME="keywords" content="">
    <TITLE>St James Church Milton</TITLE>

    </HEAD>
    <FRAMESET ROWS="100%,*" BORDER="0" FRAMEBORDER="0">
    <FRAME SRC="http://stjamesmilton.port5.com/" SCROLLING="AUTO" NAME="bannerframe" NORESIZE>
    </FRAMESET>
    <NOFRAMES>
    St James Church Milton



    <DIV ALIGN="CENTER">http://stjamesmilton.net/</DIV>
    </NOFRAMES>
    </HTML>
    </pre>

    Now, whilst the page at http://stjamesmilton.port5.com/ loads OK, I get the following "Errors on page" reported by IE:
    <pre>Line: 3
    Char: 443
    Error: Access is denied.
    Code: 0
    URL: http://stjamesmilton.port5.com/
    </pre>

    If one goes directly to http://stjamesmilton.port5.com/ then no such errors are reported.

    So the first question is, can anyone see why I am getting the error?

    Next, I want to change the name and host of the site and would like to create a page that will cause a jump out of the frames page so that the new address loads in the address bar.
    Does anyone know how I do this?

    TIA

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Redirect Error and jump out of Frame (6)

    Character 443? That's an awfully long line of code! I wonder whether your host is changing your page on the fly, or whether this really is something in the hidden second frame. If you temporarily enable display of enough of the bottom frame to right-click it and view source (e.g., change the proportions to 90%,10%), does that provide any insights?

    On your second question, lots of web sites have sample code to "escape" a frame and occupy the entire browser window. This then would show the true URL. Is that what you want, or something different?

  3. #3
    3 Star Lounger
    Join Date
    Sep 2004
    Location
    Portsmouth, Hampshire, England
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Redirect Error and jump out of Frame (6)

    Well I altered the ratios to 90/10 but I didn't see anything different?

    What should I have been looking for?

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Redirect Error and jump out of Frame (6)

    That was so you could right-click in the bottom frame. What is the URL so we can see the error?

  5. #5
    3 Star Lounger
    Join Date
    Sep 2004
    Location
    Portsmouth, Hampshire, England
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Redirect Error and jump out of Frame (6)

    Sorry for the delay but I've been at CEBIT in Hanover for the last couple of days.

    The URL was posted in the first post. It is www.stjamesmilton.net

    However you can see the error just by taking the complete block of HTML that I posted and writing it to a .HTM page on your own PC and then opening it in IE.

    The same HTML is used to redirect to other sites (albeit with different URLs) and it does not produce the error.

    For example try www.isleofwightwines.co.uk

    So we have

    www.isleofwightwines.co.uk redirect to perksofventnor.co.uk <font color=448800>OK</font color=448800>
    direct access to stjamesmilton.port5.com <font color=448800>OK</font color=448800>
    www.stjamesmilton.net redirect to stjamesmilton.port5.com [b]<font color=red>Page loads but with errors reported</font color=red>[b]

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Redirect Error and jump out of Frame (6)

    Actually, there is no redirect. The ISP still has you in their frameset. Might this be creating a problem for a script on your site?

    When I visit your page (the frameset) using Firefox, the JavaScript console reports this:

    "Error: uncaught exception: Permission denied to get property HTMLDocument.referrer"

    This is consistent with the Access Denied error in IE. Something in your script was written with the assumption that it would be able to access certain window properties, and perhaps because two domains are involved (??), it cannot do that.

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Redirect Error and jump out of Frame (6)

    Following up on my last post, if you place these tags at the bottom of a test document on your site that calls the statistics script, and load it inside the ISP frame, I suspect you would get similar errors:



    <script type="text/javascript">document.write(top.document.referer);</script></p>

    Here's the include where I believe the error is occurring:

    <script language="JavaScript" type="text/javascript" src="http://m1.nedstatbasic.net/basic.js"></script>

Posting Permissions

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