how to display content of a hyperlink in a table on the same page
hi
i have to tables in one big outer table, they are seated in two columns. the left table is a menu. what i want to do is to make the 2nd right side table the target, so if a user clicks on a link the content is shown, just like in frameset only i dont want to use a frame set.
Any body pls, thnx
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
i have looked at the possibility of using the iframe, but how will then be possible to have the content of the iframe change with each menu selection?
since the code for iframe is <iframe> src="file name"</iframe> that means in my understanding only one file can be dispplayed in it.
As for the DHTML suggestion can you highlight further please.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> new document </title>
<script>
function clicker()
{
document.getElementById("f1").src="test3.html";
}
</script>
</head>
<body>
<form>
<input type="button" value="clickme" onclick="clicker()">
</form>
<iframe id="f1" name="f1" src="test2.html"></iframe>
</body>
</html>
__________________
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/