Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Javascript Question

  • 21-02-2008 10:46PM
    #1
    Registered Users, Registered Users 2 Posts: 1,019 ✭✭✭


    Hi Folks,

    I was hoping someone here could answer a very quick question for me regarding Javascript so hopefully I dont have to hunt down another forum somewhere to ask.

    I was wondering if its possible to code a tree menu in Javascript that can be edited with a right click. So when you want to add a new link/node you just right click on the current tree menu and up pops a menu to add it. So you dont need a seperate application to edit the menu and then have to deploy it you can just do it all there and then.

    I know that various tree menu's have some nice themes with CSS and nice little icons etc jsut wondering if this could be editable too as in assigining an icon to a node.

    Dave


Comments

  • Registered Users, Registered Users 2 Posts: 413 ✭✭ianhobo


    Basically, yes I'm sure you could edit it. Your problem would be in saving the edits as you cannot save or perform write operations with Javascript (There are browser specific ways around this though). You would probably have to update some hidden form fields with the javascripts too, then use some form processing and other scripting to save the new data


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Or more obviously use AJAX :)


Advertisement