frame html help v.easy

Discussion in 'OT Technology' started by happyrobots, Jun 9, 2006.

  1. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    I've got two frames on a page, one labels 'Top' and the other 'Main'.
    So someone clicks a link from the Top frame and I want it to open in the Main frame, how do I do that? I know I have to go into the corresponding page and do something...lets call that page top.html ...so, whats the html to do that?
     
  2. cmsurfer

    cmsurfer ºllllllº

    Joined:
    Jun 6, 2003
    Messages:
    5,079
    Likes Received:
    0
    Location:
    NJ
    Should be something like this.

    <A HREF="link.html" TARGET="main.html">
     
  3. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    why the fuck are you using frames?
     
  4. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    I knew someone would ask....I'm using simpleview (picture gallery) and I don't want one huge gallery w/ 200 pictures. So I have 11 of them now, and they can pick which gallery they want to see from the top frame, and it'll open in the bottom frame.

    If there is a better way to do this that is somewhat easy, I'm open to it. Another picture gallery would do as well, but I want a simple yet modern. here's a thread I made about it ...so if you can find me something that'll work that is cool, i'll do that,...or another option besides frames.
     
  5. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    Well "Gallery 2.0" or even "Gallery 1.0" does exactly what you want.

    Heck, I wrote a 2-file gallery script in PHP for use on my own personal website that loads images and creates thumbs on-the-fly using a flat-directory structure.

    The one I wrote is 100% XHTML 1.1 and CSS2 compliant, and uses no frames or tables. Everything uses DIVs and SPANs, and I use the FLOAT property to get some really cool cross-platform, cross-browser compatibility that doesn't punish those with low screen resolutions, but still takes full advantage of users with better screens.
     
  6. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    Ok, but it's almost done...one problem...

    Page with 2 frames, but the pages for the frames won't display in them...
    ...code for it I guess?
     
  7. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,918
    Likes Received:
    10
    Location:
    Los Angeles
    Me too. :wavey:
     
  8. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    well hook me up!
     
  9. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    is the 'main.html' the name of the frame or what? Cause my frame name is Main, not main.html, so I'm not sure.....hm....
     
  10. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    yes, name of frame.



    (please don't use frames)
     
  11. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    heh, yeah....
    I am using the frame name, and it's not working. :hs:

    so I guess I'll just have it open in a new window. but I don't like how simpleviewer makes it a flash file (swf) and you can't edit anything with it....grr.

    so I can't have the gallery deal you made? :sadwavey:
     
  12. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    I dunno. I put some work into it, and I'm proud of it. Kinda wanna be greedy with it, lol.
     
  13. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    Hotscripts.com search for drop-in image gallery. Done.
     
  14. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,918
    Likes Received:
    10
    Location:
    Los Angeles
    You need to set a name in your frameset. Example:

    PHP:
    <frameset>
              <
    frame src="main.html" name="main">
    </
    frameset>
    Then in your HTML you would link it like this:
    PHP:
    <a href="porn.html" target="main">Click Here</a>
    Hope that helps.
     
  15. happyrobots

    happyrobots Ü

    Joined:
    Aug 27, 2005
    Messages:
    1,184
    Likes Received:
    0
    Location:
    Phx
    Yep, that's what I did. I've been having problems with this project since I started. I'll link an image and it won't display. Then I'll change how I linked it, and it may or may not display. Then I go back to the first way I tried to link it and it will work. Same thing with getting a page to display, it won't work and it should, but I'll change a few things and it will work. Grr.....
    I don't know if it's the frame crap, or just me...

    Haha, that's fine. I understand. :greddy:

    Will do. Thanks.
     
  16. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,918
    Likes Received:
    10
    Location:
    Los Angeles
    Time to post your code.
     

Share This Page