Skip to content

ludo/jquery-treetable-ajax-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
db
 
 
doc
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

jQuery treeTable AJAX example

This example demonstrates using the jQuery treeTable plugin (http://plugins.jquery.com/treetable) for an AJAX enabled tree. It uses Ruby on Rails and SQLite for the server side.

The file app/views/nodes/index.html.erb contains the interesting Javascript bits. It uses the jQuery.ajax function to download remote nodes when a node is expanded. It also uses jQuery.ajax to update the remote tree when a node is moved between branches (D&D).

Installation

This assusmes you already have Ruby and the bundler gem installed.

cd jquery-treetable-ajax-example
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
script/rails server

Now open your browser at http://localhost:3000.

About

Ruby on Rails example of AJAXified jQuery treeTable table with D&D support

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
GPL-LICENSE.txt
MIT
MIT-LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published