Hi,
Wondering if anybody can help with some coding advice here….
I have in a PHP page code in the following form:
<tr>
<td>
<div class=”textcontent”>
<? include(“content/info01.txt”); ?>
</div>
</td>
</tr>
The “info01.txt” file contains html tags including image tags. I want to be able to include links within this text file too, so that when clicked, a different set of content “info02.txt” will appear in place of the original included content. I don’t want to load an entire new page though (as this is a client-changeable section and I want to limit the client to changing included text files content only, not the whole html document), so I just want to make some kind of link which will replace the section within the <div> tags above so I can maintain the css of that included content.
Is there some easy way of doing this? I thought perhaps I could give the <td> an identifier (say “includearea”) and within the included text file use an onClick statement to load the new content, something like
onClick=”document.includearea.something=newcontent”
but can’t work out how to code this…. what is the “something” and how could I define “newcontent”?
I’m stuck. Any suggestions would be most appreciated.
Thanks in advance…