PDA

View Full Version : Html Id


balanvip
01-09-2006, 12:55 PM
Hi,
I need a small coding in html. I have 1 rows and 1 column. In the 1st row i have a text for instance i have abc. If i click the text abc the page called abc.html should be opened in the corresponding next column. I dont want to use the frames.

What type of coding i should addd with this

<table width="75%" border="1">
<tr>
<td width="51%"><a href="abc.html">abc</a></td>
<td width="49%">&nbsp;</td>
</tr>
</table>

Thanks,
Balan

Span
01-09-2006, 01:25 PM
Could be done with AJAX (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm). But don't tell anyone ;)

mark87
01-09-2006, 01:26 PM
Well, you're best looking at using Javascript.

Basically you'd have the whatever text/content you have abc.html in a div in the column already like so.

<td width="49%" id="contentcolumn">
<div id="abc" style="display:none">
ALL YOUR CONTENT GOES HERE.
</div>
</td>

Then using Javascript you can set #abc's display to 'block' to show it, and back to 'none' again to hide it.

Because I'm guessing you have other 'pages' you wish to display there as well, you'd also add in those sections to the same column, under the #abc div.

It might be an idea to ask for help with the Javascript in the Javascript section as they will guide you better than what I can, but that's what you basically have to do. :)

EDIT / Good link Span, didn't realise Ajax would be able to pull up different html files like that; definately something I'll look into as well.

balanvip
01-10-2006, 04:15 AM
Hello,
Thank you for your suggstion i will and check it and revert back soon.

balen