Click to See Complete Forum and Search --> : drop down menu based on js ans xml


pelegk1
08-31-2003, 05:46 AM
i am looking for an example of a javascript\
that read's xml
and show it o n the screen as menu with sub menus
lke u have in a browser with
file
open
send to-> mail->rcpient
mail->group
and so on
20:)
in advance
peleg

Xin
08-31-2003, 12:09 PM
There are lots of menu scripts out there but not many guys would feel the need to code a XML parser in Javascript.

May be you will need to parse the XML on server side and output it in the format of menu definition of your favorite menu script.

pelegk1
09-01-2003, 02:33 AM
i preffer to do it on client side of my own reason's
so have any idea how to do it?

Xin
09-01-2003, 03:36 AM
It might not be a very good idea to make a general purpose XML parser in JS, so you will just decide the tags to be used in your XML menu content and let the JS only detect those tags. Then it's just about some JS regular expression matching and extracting.

Xin
09-01-2003, 01:52 PM
The hotscripts.com has some nice JS XML parsers, some are for IE only and some would work for IE/N6+/Opera7.

I found this is pretty cool among those parsers:

http://xmljs.sourceforge.net/index.html

pelegk1
09-02-2003, 03:06 AM
very nice thanks