Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2007
    Location
    at home
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Iframes alternative?

    i know alot of people don't like frames. i like frames tho'. more-so iframes. the reason why is i can target it. i know about the div using overflow:auto; , i use that alot, but is there another alternative for iframes, but can also use the function target??

    here is what it is currently...

    <div id="b1"><iframe src="hi/hello.html" title="" name="view" frameborder="0" style="width:99%; height:98%; "></iframe></div>

    i use the "name" for the target feature [<a href="link.html" target="view">link</a>]

    i need to see an example of how it is done...

    thanks for the help.
    Last edited by sehana; 07-20-2007 at 03:35 AM. Reason: added details

  • #2
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    AJAX is the most common alternative. You can AJAXly load things into any element, although the most common one is the div.

  • #3
    New Coder
    Join Date
    Jul 2007
    Location
    at home
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i'm sorry, i understand that you can use divs, but i'd like to see an example of how its done... thanks for replying

  • #4
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    AJAX, and I am describing it applied to your question, is a language which reloads just a specific part of a page without having to reload the entire page - basically iFrames.

    You can find AJAX tutorials all over the place. http://w3schools.com/ajax/default.asp has a good AJAX tutorial. Try there.

    If not, just google AJAX.
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I think the question here would be why would you want to use iframes. Sure you can target it but is the reason because you don't want to have to update the navigation on every page?

    As to the AJAX solution brought up here is script already made.
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    New Coder
    Join Date
    Jul 2007
    Location
    at home
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy lazy

    Quote Originally Posted by _Aerospace_Eng_ View Post
    I think the question here would be why would you want to use iframes. Sure you can target it but is the reason because you don't want to have to update the navigation on every page?
    yea i'm constantly adding stuff to the navigation, it's easier to have 1 navmenu on 1 page than different ones throughout a whole bunch of pages. yea so i'm lazy


    Thanks for the links, will look at those
    Last edited by sehana; 07-20-2007 at 12:47 PM.

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Well there are better solutions for lazy people like you.
    http://www.joe2torials.com/view_tutorial.php?view=3
    http://www.joe2torials.com/view_tutorial.php?view=2

    The second tutorials can be used with .shtml pages.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #8
    New Coder
    Join Date
    Jul 2007
    Location
    at home
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok thanks for the links... will be updating my code! thanks for the help.

  • #9
    New Coder
    Join Date
    Jul 2007
    Location
    at home
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post

    i went over the ajax section of w3schools, but when i was trying it out, i didn't know what was going on.
    and went over to try out some of the other links, but i am lost...
    how do i convert this code to ajax?

    <base target="imain" />

    <div><a href="link.html" title="">link</a></div>
    <div><a href="site.html" title="">site</a></div>
    <div><a href="page.html" title="" target="_blank" >site</a></div>

    <span style="border:1px solid #555555; "><iframe src="imain.html" title="imain" name="imain" frameborder="0" style="width:670; height:70%; "></iframe></span>


  •  

    Posting Permissions

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