Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    XML Adding nodes with a context menu / edit node names

    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

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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:
    Code:
    <html:script type="application/javascript" 
                 xmlns:html="http://www.w3.org/1999/xhtml"><![CDATA[
    /* your code here */
    ]]></html:script>
    HTH!
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • Users who have thanked Alex Vincent for this post:

    jedistev (03-31-2009)

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    making sense

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •