...

View Full Version : Iframes alternative?



sehana
07-20-2007, 02:55 AM
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.

frost
07-20-2007, 03:21 AM
AJAX is the most common alternative. You can AJAXly load things into any element, although the most common one is the div.

sehana
07-20-2007, 03:36 AM
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

BWiz
07-20-2007, 04:10 AM
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.

_Aerospace_Eng_
07-20-2007, 04:32 AM
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/dynamicindex17/ajaxcontent.htm

sehana
07-20-2007, 12:44 PM
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:D


Thanks for the links, will look at those

_Aerospace_Eng_
07-20-2007, 12:48 PM
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.

sehana
07-20-2007, 01:18 PM
ok thanks for the links... will be updating my code! thanks for the help.

sehana
07-31-2007, 09:01 PM
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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum