PDA

View Full Version : How can I create an expandble table in Dreamweaver


SickLord
03-18-2005, 05:57 AM
I have a problem,
I need to create an expanding table! Currently I have this:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
topic 4 (link in table)
topic 5 (link in table)

and what I need to do is.... when I click on topic 3 that i get the folowing picture...ON THE SAME PAGE!!!:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
topic 4 (link in table)
topic 5 (link in table)

My knowledge of java scrip and php is very feint...but I'm an advanced Dreamweaver user...
Thansk in advance...

znaps
03-18-2005, 07:11 AM
Can you try and clarify a bit? When you click on topic 3, does that run a PHP script?

Also, your before and after description is identical.

llbbl
03-18-2005, 07:20 AM
maybe he is trying to create a dropdown navigational menu. or it could be he is trying to dynamically change some content based on a drop down menu without having to hit submit.

I think he wants table 1 to remain static and change the content of table 2 based on what you click in table 1 ...

dang
03-18-2005, 09:40 AM
if he is trying to change content of a cell in a table when clicking on another area, you can do it using an iframe, frames or javascript

k2
03-18-2005, 11:58 AM
use javascript to change a blank 1x1 graphic to the new image based on what's clicked

k2
03-18-2005, 12:05 PM
here's an example...

javascript
----------
var d = document;
switchImage = function(f) {
d.imageID.src = f;
}

html
----
<p><img src="blank.gif" id="imageID"></p>
<p><a href="javascript:switchImage('image1.jpg');">swap image 1</a></p>
<p><a href="javascript:switchImage('image2.jpg');">swap image 2</a></p>

SickLord
03-18-2005, 12:20 PM
Currently I have this:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
topic 4 (link in table)
topic 5 (link in table)

and what I need to do is.... when I click on topic 3 that i get the folowing picture...ON THE SAME PAGE!!!:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
topic 4 (link in table)
topic 5 (link in table)

Yes, I am trying tocreate a drop-down navigation link...
I would be very grateful if anyone can explain this in dreamweaver...please

k2
03-18-2005, 12:24 PM
a hierarchy menu?

SickLord
03-19-2005, 12:00 AM
"Yes, I am trying tocreate a drop-down navigation link...
I would be very grateful if anyone can explain this in dreamweaver...please
"

SickLord
03-19-2005, 04:33 AM
Currently I have this:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
topic 4 (link in table)
topic 5 (link in table)

and what I need to do is.... when I click on topic 3 that i get the folowing picture...ON THE SAME PAGE!!!:

topic 1 (link in table)
topic 2 (link in table)
topic 3 (link in table)
... topic 4 (link in table)
... topic 5 (link in table)

znaps
03-19-2005, 02:58 PM
I think by now you could have taught yourself how to do it using PHP.

llbbl
03-23-2005, 11:28 AM
don't use iframes ! they suck == there is an iframe vulnerability in IE you can hack people's systems using those tags if you were inclined to do so.

I agree with znaps. use javascript. but there is no reason you have to reinvent the wheel. I have used this guy's script before. It is easy to customize for your own use. He even has instructions on his website of how to set it up.

http://www.webdevtips.com/dropmenu/index.html

Guide to DropDown Menu
http://www.webdevtips.com/dropmenu/guide/index.shtml

Good luck!

llbbl
03-23-2005, 11:30 AM
oh and its cross browser supported so all those morons who are still using IE can see your menu's too. :)

k2
03-23-2005, 12:03 PM
you can't hack thru an iframe, you can see directory contents.

llbbl
03-23-2005, 12:17 PM
yea and that's bad!

k2
03-23-2005, 12:49 PM
because getting the filenames is really an issue? i guess if you need to hide something like child porn it might be, but realistically .. it's just filenames.

llbbl
03-24-2005, 07:30 AM
http://secunia.com/advisories/12959/

Secunia Advisory: SA12959 Print Advisory
Release Date: 2004-11-02
Last Update: 2004-12-01

Critical:
Extremely critical
Impact: System access
Where: From remote
Solution Status: Vendor Patch

Software: Microsoft Internet Explorer 6

Select a product and view a complete list of all Patched/Unpatched Secunia advisories affecting it.

CVE reference: CAN-2004-1050

Description:
A vulnerability has been reported in Internet Explorer, which can be exploited by malicious people to compromise a user's system.

The vulnerability is caused due to a boundary error within the handling of certain attributes in the <IFRAME> and <FRAME> HTML tags. This can be exploited to cause a buffer overflow via a malicious HTML document containing overly long strings in e.g. the "SRC" and "NAME" attributes of the <IFRAME> tag.

Successful exploitation allows execution of arbitrary code.

The vulnerability has been confirmed in the following versions:
* Internet Explorer 6.0 on Windows XP SP1 (fully patched).
* Internet Explorer 6.0 on Windows 2000 (fully patched).

NOTE: This advisory has been rated "Extremely critical" as a working exploit has been published on public mailing lists. A variant of the MyDoom virus is now also exploiting this vulnerability.

llbbl
03-24-2005, 07:30 AM
see i told u so . iframes suck!

k2
03-24-2005, 09:11 AM
"NOTE: The vulnerability does not affect systems running Windows XP with SP2 installed nor Windows Server 2003."

if there's a patch and the user doesn't apply it, it's their own fault.

dang
03-24-2005, 10:57 AM
sounds like it's a vulnerability for the client, not the server. If someone has long strings in the attributes of the iframe, then they can execute abitrary code through IE "which can be exploited by malicious people to compromise a user's system."

So, basically what you want to do is NOT use IE since someone could author a page using iframes and execute a script on your system.

llbbl
03-24-2005, 11:27 AM
"NOTE: The vulnerability does not affect systems running Windows XP with SP2 installed nor Windows Server 2003."

if there's a patch and the user doesn't apply it, it's their own fault.

yea I and i think it took MS like 3 months to come up with a patch for it =/

k2
03-24-2005, 01:10 PM
so because ms sucks, iframes suck? that's not how the net works.

llbbl
03-24-2005, 01:55 PM
Well for one thing, I object to them from a design point of view, I think they look stupid. All they succed in doing is hiding the information from the user and cluttering up the page. This makes browsing more difficult, and it is harder to find the information you need.

Here are some examples of your wonderful iframes.

http://www.cs.tut.fi/~jkorpela/html/iframe.html

znaps
03-24-2005, 02:17 PM
yea I and i think it took MS like 3 months to come up with a patch for it =/


And plenty of corporations are not allowing their people to install SP2 yet.

Tychovk
04-14-2005, 03:29 AM
"NOTE: The vulnerability does not affect systems running Windows XP with SP2 installed nor Windows Server 2003."

if there's a patch and the user doesn't apply it, it's their own fault.

same as 'it's their fault for not running another browser', and 'it's their fault, they shouldn't be connected to the internet.'

Pah!