Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Iframes help quick!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 07:01 PM #1
Iframes help quick!
Ok,i have an iframe that i use to load mutliply pages in, the iframe is in a table, the table has a background images, how can i get the image to exapnd when the iframe needs to expand? All i can do is set it to scroll or not scroll? And if it isn't possible how can i load differant pages inside that table cell? Thanks. -cnelson.

Hurry, i need this for school..
__________________
Help me, out visit my site! Cnelson Creations
"College student by day, web designer by night.. "
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 07:30 PM #2
iframes aren't meant to expand in the first place....

I would recommend using php includes to change the content of a table cell.
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 07:32 PM #3
hmm, is there anyway to do it with html? its going to hosted at my school, which doesn't support php because i thought of that too.
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 07:34 PM #4
is there anyway to like put the information on the same page, then when the link is clicked just show the information? But when its not click is just shows the other information?
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,192 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
29-Oct-2006, 07:35 PM #5
does your school host support SSI and the .shtml extension?

If so you could use that <!--#include file="somefile.html"-->
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 07:36 PM #6
Was this an assignment or are you trying to incorporate this yourself?
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 07:37 PM #7
No, it doesn't support .shtml and it is an assignment or i would just use php. But other then php and frames i don't know how to have mutiply content on one page without loading the page everytime a link is clicked.
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 08:23 PM #8
use javascript to change the content...inefficient, but it will work
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 08:29 PM #9
how can i got about doing this? -cnelson.
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 08:42 PM #10
Insert <div id=TEST> </div> around your changing content.

Use the link
<a href="#" onclick="document.getElementById('TEST').innerHTML = \"New content\";">Click me</a>
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 08:43 PM #11
Or, you can use that code to insert a new iframe

<a href="#" onclick="document.getElementById('TEST').innerHTML = \"<iframe src=\"\">";">Click me</a>
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 08:51 PM #12
wait.. i'm a bit confused. how can i hide the content in the div's untill its clicked in the link?
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
29-Oct-2006, 09:04 PM #13
what i'm saying pretty much is i want to hide all the "divs" until the link they are assoted with is clicked, and also after a nother one is clicked the old content goes away. is this possible to do?
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
29-Oct-2006, 10:04 PM #14
Thats what I gave you should do. Put the <div>s inside the table cell. Leave it blank initially. Then, you can set it to whatever link is clicked on.
cnelson04's Avatar
Senior Member with 900 posts.
 
Join Date: Dec 2003
30-Oct-2006, 06:34 AM #15
for this;
<a href="#" onclick="document.getElementById('TEST').innerHTML = \"New content\";">Click me</a>

insted of "new content" can i use src="main.html" to load a page, or no?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:46 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.