SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Asp

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Bombay, Mah, India
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can I prevent an asp page to break my frame, which I import from another site??

  2. #2
    SitePoint Member
    Join Date
    May 2000
    Location
    Yonkers, NY
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm guessing here, perhaps a target="_self" tag embedded somewhere in the <A HREF> or <IMG SRC> tag? Might that prevent the newly loaded page from loading into the top frame?



    my $0.02

    w

  3. #3
    SitePoint Member
    Join Date
    May 2000
    Location
    Bombay, Mah, India
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for you reply...well but u got me wrong. okey, I will give you a example. I have got two frames in my website, the left hand site is for the menu which controls the right hand side frame. I have linked a menu item on the left frame to display the website(ASP) from another server to be displayed on the right frame. The problem is whenever I click, the asp page loads on the right hand side and breaks the frame and my left frame is popped up in to a new window :-(

    thanks anyway...
    :-)

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by wvp001:
    I'm guessing here, perhaps a target="_self" tag embedded somewhere in the &lt;A HREF&gt; or &lt;IMG SRC&gt; tag? Might that prevent the newly loaded page from loading into the top frame?



    my $0.02

    w
    <HR></BLOCKQUOTE>


  4. #4
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the frameset document (the one with the &lt;FRAMESET&gt; tags), you should have named each frame, with the &lt;FRAME NAME=""&gt; attribute.
    In the link that you want to come up in the right frame, put the &lt;A HREF="someurl.com" TARGET="name of right frame"&gt;.

    I think that will work!

  5. #5
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,939
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I know what your problem is. There have been copyright lawsuits about framing other people's sites. I dont really remember the outcome of them but it illustrates how some people dont want THEIR page in YOUR frame. So there is this nifty little javascript you can put in your page and if anyone tries to frame it what happens to you (if I'm reading it right) will happen.

    I dont remember the exact code but its something along the lines of

    if document.top != document.self then document.self = document.top

    What I just typed is in no way code, but thats about what it does.

    So in other words, if you dont own the page you can't do anything about it.

    Chris


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
  •