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.

Also posted in Drag and Drop Download / Preview GitHub 7 Comments

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.

Download GitHub 10 Comments

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.

Download GitHub 16 Comments

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.

Also posted in Drag and Drop Video Download / Preview GitHub 36 Comments

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.

Download 2 Comments

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.

Also posted in Drag and Drop Video Download / Preview GitHub 33 Comments

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.

Leave a comment

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.

Leave a comment

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.

Also posted in Drag and Drop Video Download / Preview GitHub 12 Comments

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.

Also posted in Drag and Drop Video Download / Preview GitHub 112 Comments

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.

Download 3 Comments

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.

Also posted in Drag and Drop Video Download / Preview GitHub 141 Comments