...

View Full Version : XML Adding nodes with a context menu / edit node names



jedistev
03-30-2009, 12:52 PM
Hi

i am use XML for few last weeks, normal in prevoius i use basic straght forward XML like data etc but never go in depth

i am looking for example of Adding nodes with a context menu / edit node names

like
http://www.captain.at/howto-xul-tree-new.php


but this is XUL, i want XML smiliar some like that that can load XML files without depend on SQL Query script etc

http://www.captain.at/howto-xul-tree-new.png

this is what i want, cos User can change Node from time to time like Child 1 in few month or next week, user what change Child 1="internal" or "external"

so i want user can click on rename, add, delete on xml

Alex Vincent
03-31-2009, 07:19 AM
For generic XML, you pretty much have to write your own. How are you displaying the content you wish the user to edit?

Note there's a good number of DHTML collapsible menu widgets available (CF's sister site, JavaScriptKit, has a few), but they might not involve well-formed XML - so you might end up doing a bit of editing on the source code.

You can include a JavaScript with a XHTML script element:

<html:script type="application/javascript"
xmlns:html="http://www.w3.org/1999/xhtml"><![CDATA[
/* your code here */
]]></html:script>

HTH!

jedistev
03-31-2009, 09:46 AM
Hi

that making sense, lucky i am good at javascript and AJAX..I should cope on!! cos i was working Drupal with PHP...using Simple XML and Parase XML..i was trying for many weeks to get...but in last few days..i just knew it do with javascript.. now i have to catch it up

thank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum