Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-20-2007, 02:55 AM   PM User | #1
sehana
New Coder

 
Join Date: Jul 2007
Location: at home
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sehana is an unknown quantity at this point
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
sehana is offline   Reply With Quote
Old 07-20-2007, 03:21 AM   PM User | #2
frost
New to the CF scene

 
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
frost is an unknown quantity at this point
AJAX is the most common alternative. You can AJAXly load things into any element, although the most common one is the div.
frost is offline   Reply With Quote
Old 07-20-2007, 03:36 AM   PM User | #3
sehana
New Coder

 
Join Date: Jul 2007
Location: at home
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sehana is an unknown quantity at this point
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
sehana is offline   Reply With Quote
Old 07-20-2007, 04:10 AM   PM User | #4
BWiz
Regular Coder

 
BWiz's Avatar
 
Join Date: Mar 2006
Location: Sol System
Posts: 471
Thanks: 7
Thanked 21 Times in 21 Posts
BWiz is an unknown quantity at this point
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.
BWiz is offline   Reply With Quote
Old 07-20-2007, 04:32 AM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-20-2007, 12:44 PM   PM User | #6
sehana
New Coder

 
Join Date: Jul 2007
Location: at home
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sehana is an unknown quantity at this point
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..
sehana is offline   Reply With Quote
Old 07-20-2007, 12:48 PM   PM User | #7
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-20-2007, 01:18 PM   PM User | #8
sehana
New Coder

 
Join Date: Jul 2007
Location: at home
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sehana is an unknown quantity at this point
ok thanks for the links... will be updating my code! thanks for the help.
sehana is offline   Reply With Quote
Old 07-31-2007, 09:01 PM   PM User | #9
sehana
New Coder

 
Join Date: Jul 2007
Location: at home
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sehana is an unknown quantity at this point
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>
sehana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:50 PM.


Advertisement
Log in to turn off these ads.