[PHP-DB] RE: ?DHTML Layers with PHP?

2004-03-19 Thread Brock Jimmy D Contr DODHSR5
If you compiled PHP with DOM support you can use XML to create dynamic trees.

Here's a link to an article that uses XML...it's in ASP but the code could be 
converted to PHP.

http://xefteri.com/articles/may312002/default.aspx

Hope this helps,

Jimmy Brock

-Original Message-
From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 19, 2004 12:04 PM
To: '[EMAIL PROTECTED]'
Subject: ?DHTML Layers with PHP?


I've been sitting here all morning wracking my brains for a way to code a hierarchical 
menu tree with JavaScript from database data retrieved by PHP, so that the child menus 
appear on a mouse click.  Can PHP do this without JS?  The only JS examples I can find 
use static menu trees, not dynamic data.

tia,
Mark

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: ?DHTML Layers with PHP?

2004-03-19 Thread Justin Patrin
Mark A Galbreath wrote:

I've been sitting here all morning wracking my brains for a way to code a
hierarchical menu tree with JavaScript from database data retrieved by PHP,
so that the child menus appear on a mouse click.  Can PHP do this without
JS?  The only JS examples I can find use static menu trees, not dynamic
data.
tia,
Mark
The short answer is No. PHP is a server-side scripting language, meaning 
that things can't change on the client side (browser) unless the user 
makes a new request. All of the text (HTML, JS, CSS, etc.) sent by PHP 
to the browser is "static" until the user sends another request. If you 
want DHTML, you have to use JS. (It's part of the definition of DHTML ;-).

If you still don't understand, you might want to check out some PHP 
tutorials or read some of the basics in the PHP manual. 
(http://php.net/manual)

--
paperCrane 
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php