ludo / jquery-treetable-ajax-example Goto Github PK
View Code? Open in Web Editor NEWRuby on Rails example of AJAXified jQuery treeTable table with D&D support
License: GNU General Public License v2.0
Ruby on Rails example of AJAXified jQuery treeTable table with D&D support
License: GNU General Public License v2.0
I tried implementing this on rails 3.0 and was wondering if this method can also be utilized in rails 3.0 or does it only apply to 3.2 ?
Thank you
How add rows, do not refresh the page, just refresh the table。
In my web application, when I click on the parent(top) node, I am calling API using AJAX. Once I get the response in AJAX, I am appending data to under the parent(top) node using the loadBranch
function. But before loading data into a table, the browser is displaying the following message -
Something went wrong while displaying this webpage
Error code: STATUS_BREAKPOINT
I have also noticed this behavior when I load more than 1000 parent nodes.
Is there an on line example of the treetable ajax example OR an example that is is in something else beside ruby?
Thank You,
~Donavon
Under which license is this excatly?
EDIT: ok, found it
hi,
you should bump rails version to 4.1.2
4.1.1 do not work any more with your configuration as it depends on i18n version that is no longer in gems repositories... don't no why..
bumping to 4.1.2 and doing bundle update solves the problem and demo works like a charm
regards,
Michal
Ludo, Your last commit broke the example code. I think it may have to do with the case change on treeTable to treetable in the plugin. The dynamic expanding and DD is not working.
THanks for this example anyway, it's been great for my learning. If I figure out whats wrong, I'll post it back.
Hey thanks for this example code but db:seed fails with this error;
No such file or directory - tree -XDh
How to clone node with childnodes when they selecting button or node and appended to the tree?
$("#tree .file, #tree .directory").live("mouseenter", function()...
The jQuery "live" function has been deprecated long time ago. From version 1.9, it has been removed.
The 'jquery-rail' gem loads version 1.11 of jQuery.
Quick fix: On the gem file, change the 'gem jquery-rail' to look:
gem 'jquery-rails', '2.1.2'
That will force rail to load an earlier version (1.8.2) version of jQuery that supports the live function.
Better fix:
Replace the 'live' function by 'on()' function. The on() call is slightly different than the live() function.
When I load the image into the rails 3.2 and ruby 1.9.2, I get a file explorer of what seems to be the source folder with no options to expand and only shows folders and files. Am I doing something wrong?
I have table with about 1000 table rows. When I call method
$("#example-advanced").treetable({expandable: true});
on Chrome Browser it works very fast, about 3 seconds.
But on Safari browser it works more slowly.
Finally, on IPad2 Safari Browser it works VERY VERY SLOW. About 1 minute.
Can you improve performance for Safari Browsers ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.