how to replace <frame> with <table> and <div&

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Mon Jun 28, 2004 7:25 am

Well, you don't. Frames are designed for what you have in mind, tables are not. You can change the src of a frame, you cannot change the src of a table cell.
Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Mon Jun 28, 2004 7:47 pm

there is another option to your path...
using div tags.., iframe
and thus using DHTML
would definately suite your need

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Thu Jul 01, 2004 8:01 pm

encapsulate the table with an iframe..
and the iframe page will have the table in it...

and on the link...

Code: Select all

<script type="text/javascript">
function changelink() {
  d = document.getElementById("idnameofiframe");
  d.src = page.htm
}
</script>
<a href="javascript changelink('page.htm')">Page</a>
<iframe src="somepage.htm" id="idnameofiframe" width... height...></iframe>

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests