1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

html question

Discussion in 'Off Topic' started by aiman.h.kallaf, May 31, 2012.

  1. aiman.h.kallaf

    aiman.h.kallaf Active Member

    hope that you all fine and doing well ,

    here is what i'm trying to do

    i have an html page with Frame inside it
    say there is a link called ( http:google.com) which open in the frame whose called ( Frame1 )

    i want to get the link for the whole page where it open Google directly

    something like this

    http:/currentpage.com?frame1=http:google.com
    i just made that up , but hope it will show what i'm looking for
     
  2. MagnusB

    MagnusB Well-Known Member

    You need to use the target attribute.
     
    aiman.h.kallaf likes this.
  3. aiman.h.kallaf

    aiman.h.kallaf Active Member

    how to use them
     
  4. MagnusB

    MagnusB Well-Known Member

    <a href="somelinkehere.html" target="framename">
     
    aiman.h.kallaf likes this.
  5. aiman.h.kallaf

    aiman.h.kallaf Active Member

  6. MagnusB

    MagnusB Well-Known Member

    How do you construct the frame? Can't you just use the src="whatever"?
     
    aiman.h.kallaf likes this.
  7. aiman.h.kallaf

    aiman.h.kallaf Active Member

    it is not about coding ,
    it is when i want to give the link to people in forums or msn

    i want when a user click on the link that i give him , the main page open www.mypage.com , and then the link http://english4me...../creat-thread open load in the frame


    Capture.JPG

    as can be seen in the picture i have a frame and 4 links at the top which open in the frame once they been clicked

    what i want is how to get a link for a certain one of the and give to user in msn or whatever and when then click the link the page open and loead the frame with a one of the four links
     
  8. MagnusB

    MagnusB Well-Known Member

    aiman.h.kallaf likes this.
  9. aiman.h.kallaf

    aiman.h.kallaf Active Member

    i need an example for the link
    can someone construct a link to share with users so that i know how to make them
     
  10. MagnusB

    MagnusB Well-Known Member

    You place the document in your root (or wherever), then you just add the src="http://whatever.com" to the frame tag. The link would just be to the document then, the frame will load the src url every time.

    If you want something dynamic, you will need a script, don't know how to go about that.
     
    aiman.h.kallaf likes this.
  11. Jeremy P

    Jeremy P Well-Known Member

    What aiman means is when you have a site with frames, and you click to another frame, the browser URL stays the same because the base page hasn't changed. He's asking how he can link to the base page and make it load a specific frame.
     
    aiman.h.kallaf likes this.
  12. MagnusB

    MagnusB Well-Known Member

    He will need a script for that.
     
    aiman.h.kallaf likes this.
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Magnus is correct.

    Why do you want to use a frame? I don't recommend them. There are extra considerations like link targets, the browser URL, and even cookie scope in some cases. Custom programming is required to handle these things to make the frame behave as if it's not.
     
    aiman.h.kallaf likes this.
  14. aiman.h.kallaf

    aiman.h.kallaf Active Member

    Thanks all ,
    i will try doing something else or coming up with new idea
     

Share This Page