Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: iframes + JS = ???

  1. #1
    Join Date
    Jul 2010
    Posts
    45
    Thanks
    6
    Thanked 4 Times in 2 Posts

    Question iframes + JS = ???

    hello js people,
    i need your help please.
    my problem is i have 2 different parent pages (index.html & other.html) with it's own iframes(iframe _1.html & iframe _2.html) .

    index.html ------> iframe _1.html
    other.html ------> iframe _2.html

    when i click link on the "index.html" (not on iframe _1.html but on index.html ), it should go to middle of the iframe _2.html together with it's parent page.

    can it be possible???

    i post this problem in "HTML" division. but a guy who helped me, said that it is not possible.

    for more view, please visit that post http://www.dynamicdrive.com/forums/s...ad.php?t=60997

    actually can do nothing with javascript also???

    Please help me.... thnx.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there M rosi,

    this can be done with a couple of lines of javascript.

    Check out the attachment for a basic working example.

    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    M rosi (02-27-2011)

  4. #3
    Join Date
    Jul 2010
    Posts
    45
    Thanks
    6
    Thanked 4 Times in 2 Posts

    Default

    WOW. that's the javascript that i'm looking for. thank you. thank you very much...

  5. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're very welcome.

  6. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  7. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Thanks Arie,

    but it only needed two lines of javascript.

    coothead

  8. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I know, but it helped me see what I was doing wrong.
    I was so much focused on not having to put an iframe on every page that I forgot what the question was really about.
    ===
    Arie.

  9. #8
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Arie,
    I was so much focused on not having to put an iframe on every page that I forgot what the question was really about.
    Well, I can understand that.

    When I first read M rosi's original post in his other thread, I was totally bamboozled by his requirements.
    Re-reading the same problem in this thread, though, the solution now appeared to be rather simple.

    My recurring "Senior Moments" seems to be the reason for these odd mental states.

    coothead

  10. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I second that coothead - you simplified everything!
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  11. #10
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Beverley,

    Thanks for the thumbs up.

    Are all Derbyshire lasses as sweet-natured as you?

    coothead

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
  •