| sourabh1989 |
09-18-2012 12:24 PM |
Updating a div with file
I want to insert a file into a div. my code is below.
Code:
<html>
<head>
<script src="table.js"></script>
<link rel='stylesheet' type='text/css' href='table.css'>
<script ="text/javascript">
function help_file(value) {
document.getElementById('help').location.href= value;
}
</script>
</head>
<body>
<div class="toc">
<h2>Existence Checks</h2>
<ul>
<li><a onclick="lib(FRS_existance_lib); help_file('../../../scripts_block/html/help_syntax.html');"><h3><u>Library Data</u></h3></a> </li>
</ul>
<h2>POK Checks</h2>
<ul>
<li><a onclick="html_table(FRS_ccs); parent.help.location='help_pok_pm_cells_check.html';"><h3><u>CCS POK Cells Summary</u></h3></a></li>
</ul>
</div>
<div id="help" class="help">HELP</div>
<div id="content" class="content"></div>
</body>
</html>
I have three div as in code. i want that when i click on the contents a file is opened in div with id "help"... Is it possible???
Can someone help me out???
|