PDA

View Full Version : Calling all html, java and ssi gurus, help needed quickly!


QuietMike
10-08-2001, 09:25 PM
Does anyone know how to change the html in a table cell with a link in another cell on the same page?

(the info won't be just text in the cell, but also things like drop down menus...)

I figure using ssi would work, but I don't know how to change it with a click on a link. Can anyone help me out, please??? This is for a school project and it is due on wedensday and I have been to busy with porn sites to even start the project. :)

QuietMike
10-08-2001, 09:27 PM
ohh, and can someone rate me? :D

Unknown
10-08-2001, 10:56 PM
If I understand the question correct, this would be easy to do with iframe.

Or you could use any kind of include if that is what you want.

PHP example: (Place PHP code in table)

<?
if($loadwhat){

if(file_exists($loadwhat_html.txt)){
include"$loadwhat_html.txt";
}else{
include"default_html.txt";
}

}else{
include"default_html.txt";
}
?>

With this you could link to for example: page.php?loadwhat=donkeysex and it would load the HTML code of donkeysex_html.txt.

If I misunderstood your question just ignore this post.

QuietMike
10-09-2001, 07:05 AM
Well it is for a site for my colleges library. I need to make sure that every single browser and version will work, so Iframe would be a bad choice. I need this for most of the browser versions, and I will make a separte for java-disabled users.

The php looks good, because all I want to do is change all of the html code in the cell for each link and have it display the change on the click. I just don't know if there server supports php, is there any requirements for that?

I was going to use frames, but they said they didn't want them. So, I want to make a table with a four cells with the botom right one being the biggest to display the content and the right bottom one to have the navigation. Everytime you click on a link, I need the bottom right cell to change all of its content (including drop down menus and text mixed with links). Hope that is clearer. thanx for the response!

salsbury
10-09-2001, 01:54 PM
if you want it to work on all browsers, you're going to need to just have each click go to different pages. not all browsers support DHTML (which is what it sounds like you want).