Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 3, 2007, at 12:42 PM, tedd wrote:



that would be more complicated than just using css with js, like so:

http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?



Hey, tedd - - - -

I like this tool, and am playing with it -- --

Just wondering, though, if you have ever created PHP code to generate  
these menus on-the-fly? I am working on an intranet application in  
which I take values from rights-and-responsibilities tables and use  
it to generate navigation options. Got a start on it, but if you  
already had some code I'd appreciate getting a gander at it.


KixJaguar - -

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



RE: [PHP] Generating foldout menus in php

2007-09-06 Thread Edward Kay


 -Original Message-
 From: Ken Kixmoeller -- reply to [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: 06 September 2007 16:48
 To: tedd; php-general@lists.php.net
 Subject: Re: [PHP] Generating foldout menus in php
 
 
 
 On Sep 3, 2007, at 12:42 PM, tedd wrote:
 
 
  that would be more complicated than just using css with js, like so:
 
  http://sperling.com/examples/menuh/
 
  http://sperling.com/examples/menuv/
 
  Why complicate your life?
 
 
 Hey, tedd - - - -
 
 I like this tool, and am playing with it -- --
 
 Just wondering, though, if you have ever created PHP code to generate  
 these menus on-the-fly? I am working on an intranet application in  
 which I take values from rights-and-responsibilities tables and use  
 it to generate navigation options. Got a start on it, but if you  
 already had some code I'd appreciate getting a gander at it.
 

Hi Ken,

You may want to take a look at Yahoo's YUI menu:
http://developer.yahoo.com/yui/menu/

These can be defined using standard XHTML markup.

Edward

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 11:02 AM, Edward Kay wrote:


You may want to take a look at Yahoo's YUI menu:
http://developer.yahoo.com/yui/menu/

These can be defined using standard XHTML markup.


Thank you --- I will do that --

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 10:47 AM, Ken Kixmoeller -- reply to  
[EMAIL PROTECTED] wrote:


Just wondering, though, if you have ever created PHP code to  
generate these menus on-the-fly?


Never mind === I got it working. (Mechanically) --

Aesthetically, though, even though I used the horizontal classes,  
it comes out vertical -- any clues?


thanks ---

Ken

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread tedd

At 10:05 AM -0500 9/6/07, phphelp -- kbk wrote:

On Sep 3, 2007, at 12:42 PM, tedd wrote:


that would be more complicated than just using css with js, like so:

http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?


Hey, tedd - - - -

I like this tool, and am playing with it -- --

Just wondering, though, if you have ever created PHP code to 
generate these menus on-the-fly? I am working on an intranet 
application in which I take values from rights-and-responsibilities 
tables and use it to generate navigation options. Got a start on it, 
but if you already had some code I'd appreciate getting a gander at 
it.


KixJaguar - -


Unfortunately, I have not done anything in php with this and I could 
not do anything without the aid of some client-side help (i.e., ajax) 
-- so, why reinvent the wheel? CSS works!


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Generating foldout menus in php

2007-09-06 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]


On Sep 6, 2007, at 1:17 PM, Ken Kixmoeller -- reply to  
[EMAIL PROTECTED] wrote:


Aesthetically, though, even though I used the horizontal classes,  
it comes out vertical


Never mind (not that you did) -- got it working fine ---

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



RE: [PHP] Generating foldout menus in php

2007-09-04 Thread Arno Kuhl
 I'm looking for a way to generate dropdown/foldout menus (horizontal 
 and
 vertical) on the fly, but all the javascript solutions I've seen use 
 absolute or relative pixel positioning, which means I can't use them 
 because I don't know at the time of generating a specific menu item 
 how many pixels across or down the preceding items have already used. 
 I'm currently using a javascript menu that works really well, but all 
 the top-level menu items have to be preset with specific x-y pixel 
 coordinates, and all the subsequent items are then relative to the 
 top-level items. So I can generate the second-level and subsequent 
 items on the fly but not the top-level items. Is there a way to use 
 css or dhtml or something else (maybe something in javascript that I
missed) to do this?

Is this: http://www.phpguru.org/static/dynContext.example.html what you
mean?

--
Richard Heyes


--
Thanks for the reference Richard. dynContext looks pretty good and is
similar to what I'm already using, but it looks like it also uses x-y
coordinates for the top-level item (looking at the show() function, unless I
misunderstood the manual).

I had problems making it work on my local machine. The
annotated.example.html displayed an error code (I presume) on right click.

BTW I stumbled across cssplay in my search and think it may be the solution.
Just trying to figure if lack of support for IE5 is a problem or not
(supports IE5.5 etc and all other browsers).

Cheers
Arno

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



RE: [PHP] Generating foldout menus in php

2007-09-04 Thread Arno Kuhl
This may not be directly php related but I'm hoping that generating the 
code with PHP will keep it on topic.

I'm looking for a way to generate dropdown/foldout menus (horizontal 
and
vertical) on the fly, but all the javascript solutions I've seen use 
absolute or relative pixel positioning, which means I can't use them 
because I don't know at the time of generating a specific menu item how 
many pixels across or down the preceding items have already used. I'm 
currently using a javascript menu that works really well, but all the 
top-level menu items have to be preset with specific x-y pixel 
coordinates, and all the subsequent items are then relative to the 
top-level items. So I can generate the second-level and subsequent 
items on the fly but not the top-level items. Is there a way to use css 
or dhtml or something else (maybe something in javascript that I missed) to
do this?

Thanks
Arno

Arno:

There's really no way to do this just using php. I can envision a way to use
php with a couple of other languages to provide drop-down and pop-out menus,
but that would be more complicated than just using css with js, like so:

http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?

Cheers,

tedd

--

Hi tedd

Thanks, that's pretty much what I was looking for. I found something similar
at cssplay, except the examples I saw didn't use .htc file. Like your
examples the cssplay code only runs on IE5.5 and up (and other browsers).
Not sure yet if that would be a problem. I don't have IE5 to test with, so I
don't know if there's a graceful fallback that would still allow the user to
navigate. As you said, it doesn't look like there's a solution to fit all
browsers and versions.

Cheers
Arno

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



[PHP] Generating foldout menus in php

2007-09-03 Thread Arno Kuhl
This may not be directly php related but I'm hoping that generating the code
with PHP will keep it on topic.

I'm looking for a way to generate dropdown/foldout menus (horizontal and
vertical) on the fly, but all the javascript solutions I've seen use
absolute or relative pixel positioning, which means I can't use them because
I don't know at the time of generating a specific menu item how many pixels
across or down the preceding items have already used. I'm currently using a
javascript menu that works really well, but all the top-level menu items
have to be preset with specific x-y pixel coordinates, and all the
subsequent items are then relative to the top-level items. So I can generate
the second-level and subsequent items on the fly but not the top-level
items. Is there a way to use css or dhtml or something else (maybe something
in javascript that I missed) to do this?

Thanks
Arno

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



Re: [PHP] Generating foldout menus in php

2007-09-03 Thread Richard Heyes

I'm looking for a way to generate dropdown/foldout menus (horizontal and
vertical) on the fly, but all the javascript solutions I've seen use
absolute or relative pixel positioning, which means I can't use them because
I don't know at the time of generating a specific menu item how many pixels
across or down the preceding items have already used. I'm currently using a
javascript menu that works really well, but all the top-level menu items
have to be preset with specific x-y pixel coordinates, and all the
subsequent items are then relative to the top-level items. So I can generate
the second-level and subsequent items on the fly but not the top-level
items. Is there a way to use css or dhtml or something else (maybe something
in javascript that I missed) to do this?


Is this: http://www.phpguru.org/static/dynContext.example.html what you 
mean?


--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

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



Re: [PHP] Generating foldout menus in php

2007-09-03 Thread Zoltán Németh
2007. 09. 3, hétfő keltezéssel 15.09-kor Richard Heyes ezt írta:
  I'm looking for a way to generate dropdown/foldout menus (horizontal and
  vertical) on the fly, but all the javascript solutions I've seen use
  absolute or relative pixel positioning, which means I can't use them because
  I don't know at the time of generating a specific menu item how many pixels
  across or down the preceding items have already used. I'm currently using a
  javascript menu that works really well, but all the top-level menu items
  have to be preset with specific x-y pixel coordinates, and all the
  subsequent items are then relative to the top-level items. So I can generate
  the second-level and subsequent items on the fly but not the top-level
  items. Is there a way to use css or dhtml or something else (maybe something
  in javascript that I missed) to do this?
 
 Is this: http://www.phpguru.org/static/dynContext.example.html what you 
 mean?
 

hmm on Linux/Firefox I can not see any custom menu... there's a box
saying Right click here to see menu - I tried right click, left click,
double click there and nothing happens. (on right click the standard
firefox context menu appears)

greets
Zoltán Németh

 -- 
 Richard Heyes
 +44 (0)800 0213 172
 http://www.websupportsolutions.co.uk
 
 Knowledge Base and HelpDesk software
 that can cut the cost of online support
 

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



Re: [PHP] Generating foldout menus in php

2007-09-03 Thread tedd

At 4:07 PM +0200 9/3/07, Arno Kuhl wrote:

This may not be directly php related but I'm hoping that generating the code
with PHP will keep it on topic.

I'm looking for a way to generate dropdown/foldout menus (horizontal and
vertical) on the fly, but all the javascript solutions I've seen use
absolute or relative pixel positioning, which means I can't use them because
I don't know at the time of generating a specific menu item how many pixels
across or down the preceding items have already used. I'm currently using a
javascript menu that works really well, but all the top-level menu items
have to be preset with specific x-y pixel coordinates, and all the
subsequent items are then relative to the top-level items. So I can generate
the second-level and subsequent items on the fly but not the top-level
items. Is there a way to use css or dhtml or something else (maybe something
in javascript that I missed) to do this?

Thanks
Arno


Arno:

There's really no way to do this just using php. I can envision a way 
to use php with a couple of other languages to provide drop-down and 
pop-out menus, but that would be more complicated than just using css 
with js, like so:


http://sperling.com/examples/menuh/

http://sperling.com/examples/menuv/

Why complicate your life?

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Generating foldout menus in php

2007-09-03 Thread tedd

At 3:09 PM +0100 9/3/07, Richard Heyes wrote:

I'm looking for a way to generate dropdown/foldout menus (horizontal and
vertical) on the fly, but all the javascript solutions I've seen use
absolute or relative pixel positioning, which means I can't use them because
I don't know at the time of generating a specific menu item how many pixels
across or down the preceding items have already used. I'm currently using a
javascript menu that works really well, but all the top-level menu items
have to be preset with specific x-y pixel coordinates, and all the
subsequent items are then relative to the top-level items. So I can generate
the second-level and subsequent items on the fly but not the top-level
items. Is there a way to use css or dhtml or something else (maybe something
in javascript that I missed) to do this?


Is this: http://www.phpguru.org/static/dynContext.example.html what you mean?

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk



That doesn't do anything in my browser (Safari). Besides, I don't 
have a right click button.


That's one of the problems one runs into trying to make menus for all browsers.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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