Categories
Most commented
-
Recent Posts
Recent Comments
- dbunic on From MySQL to XML with PHP
- Kim on From MySQL to XML with PHP
- dbunic on Drag and Drop table content with JavaScript
- Frank on Drag and Drop table content with JavaScript
- dbunic on Clear form with JavaScript
- Robert on Clear form with JavaScript
- dbunic on Drag and Drop table content with JavaScript
Documentation
-
Archive for the Category: JavaScript
Migration guide for REDIPS.drag version 5+
REDIPS.drag version 5 has major name changes in properties, methods and event handlers. Here you will find listed old and new names so migration to version 5 should not be a problem. Main intention for this change was to have consistent names of properties, methods and event handlers.
REDIPS.table documentation
REDIPS.table is a JavaScript library which enables dynamically merging and splitting table cells. Here you will see a list of public properties and methods contained in REDIPS.table library. Documentation is generated with JsDoc Toolkit.
Merge and split table cells with JavaScript
REDIPS.table is a small JavaScript library which enables interactively or through script merging and splitting table cells. REDIPS.table.onmousedown() public method will activate onmousedown event listeners on TD elements to enable mark cells with mouse button. Additional feature is appending / deleting table rows / cells.
REDIPS.drag documentation - Appendix A
Here is list of keywords (mostly class names) used in REDIPS.drag library. Id of drag container(s) or table cell class names should be named properly to achieve needed functionality like cloning DIV elements, adding trash cell, mark cells, adding row handler or mark table as "nolayout". This post is appendix to the REDIPS.drag documentation post.
JavaScript checkbox toggle
Demo shows how to toggle or clear a checkbox group. On button click, all checkboxes in HTML table will change their state. Checkbox group can be defined with any container so it's not necessary to use a table. This is a really simple JavaScript function with checkbox toggle and clear options.
JavaScript drag and drop plus content shift
Demo is based on REDIPS.drag JavaScript library with enabled shift drop option. After element is dropped to the cell, other elements will be shifted to make room. Animation is optional and can be turned off. The presented demo can be a good start point for various sorting Web applications.
console.log in IE8
Why IE8 displays error for console.log line in JavaScript? Well, developer tools should be activated if you intend to use console.log command. Just press F12 (to turn on developer tools) and F5 (to reload the same page) - and error will disappear magically.
Find parent node in DOM
Every HTML element in DOM has reference to its parent node. With simple iteration it's possible to traverse up to the requested element. If this loop is wrapped within a function, you will get a very useful code.
Drag and drop table content plus animation
Example shows drag-n-drop functionality in combination with animation. Tables are closed within separated drag containers and actions from any table are mirrored to the other table. Elements can be shuffled or reset to the initial position.
REDIPS.drag documentation
REDIPS.drag is a JavaScript drag and drop library focused on dragging table content and table rows. Here you will see a list of public properties and methods contained in REDIPS.drag library. Documentation is generated with JsDoc Toolkit.
HTML5 canvas example 2
Canvas is a new HTML5 element. Actually it's a rectangular area enabled for drawing with JavaScript. This post shows random animation based on geometry of line and parabola. It is possible to run processes in parallel where more than one animation will be displayed on canvas.
Drag and drop table rows with JavaScript
REDIPS.drag was initially built to drag and drop table content. After publishing first version of REDIPS.drag, I received a lot of questions about dragging table rows also. Now is possible to drag and drop table rows as well as table content.