homepage Welcome to WebmasterWorld Guest from 54.237.38.30
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
xml populating pure css menu
is this possble?
omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3830400 posted 3:38 pm on Jan 20, 2009 (gmt 0)

Hello all,

as you can see on the title of this post, i want to populate a pure css menu with xml data.
This means that all the options in the menu (horizontal drop down menu, by the way) must load from an xml file.

Is something like this possible? Can it be done with pure xml file and pure html file?
I can do this with php+css+xml.
Can it be done with html+css+xml? (or/and with javascript)

In case this is something that can be done, can you point me to some good examples? Or to a good site to start reading?
Mind you that my javascript knowledge is ery limited, while i can stand my ground with xml/css.

 

omoutop

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3830400 posted 11:22 am on Jan 21, 2009 (gmt 0)

change of approach ...

i used ssi o include my menu on all static pages

For anyone interested for the solution (although here may be not the right place)...

Where you want your menu to appear put something like:
<!--#include virtual="/some/path/menu_info.txt" -->

In your htcess file put:
AddHandler server-parsed .htm
Options +Includes

So now your .htm files can include files like .shtml

Problem solved for me... hope this helps you also

httpwebwitch

WebmasterWorld Administrator httpwebwitch us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3830400 posted 12:54 pm on Jan 21, 2009 (gmt 0)

Actually you can accomplish the entire thing using JavaScript. Read in your XML file using XmlHttpRequest object (aka AJAX), parse it and inject those elements into the DOM.

It will take some JS chops to pull it off

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved