Category: JavaScript

Simple modal HTML dialog overlay 0

Simple modal HTML dialog overlay

In case you don’t want to deploy full fledged JavaScript libraries, such as jQuery or Dojo, to implement a simple modal HTML dialog overlay here is a quick and easy way to do so...

VideoJS Zeige Standbild Nach Abspielen von VideosVideoJS Show Poster Image after video stopped 0

VideoJS Zeige Standbild Nach Abspielen von VideosVideoJS Show Poster Image after video stopped

By default, the video.js simply shows the last frame of the video once the end has been reached. Sometimes, it comes in handy to show the poster image again once the video has stopped....

Generating optimized JavaScript Source Code using Dojo’s Build System 0

Generating optimized JavaScript Source Code using Dojo’s Build System

The Dojo Toolkit represents one of the most powerful and feature-rich JavaScript libraries to-date. Apart from its core functionality such as DOM manipulation (i.e. Dojo namespace) it provides developers with a vast range of...

jQuery Logo 0

jQuery Multi File Upload

A couple of days ago I accidently discovered https://blueimp.net/‘s jQuery File Upload. Update Finally I found some time to post back on jQuery File Upload. As of this writing I have successfully integrated blueimp’s...

Verbinden von JSON Objekten mittels DojoMerging JSON objects using Dojo 0

Verbinden von JSON Objekten mittels DojoMerging JSON objects using Dojo

A simple way to merge JSON objects is to use dojo.mixin(): The above code will result in {foo:”bar”, bar:”foo”}.

html is null” error using set(‘value’) for dijit.Editor 0

html is null” error using set(‘value’) for dijit.Editor

Be aware of the fact the using editorDijit.set(‘value’, null) will result in an error (“html is null”) rather than setting an empty value. I’ve experienced this behavior when trying to update a dijit.Editor using...

Scrollbar in dijit.layout.ContentPane aktivierenActivate scrollbar in dijit.layout.ContentPane 1

Scrollbar in dijit.layout.ContentPane aktivierenActivate scrollbar in dijit.layout.ContentPane

It seems that if dijit.layout.ContentPanes are nested inside other containers, such as dijit.layout.BorderContainer they do not automatically display the scrollbar when content overflows their visible area. In order to force a scrollbar simply specifiy...

dojo.dnd Elemente programmatisch zwischen Containern verschiebenProgrammatically move dojo.dnd items between containers 0

dojo.dnd Elemente programmatisch zwischen Containern verschiebenProgrammatically move dojo.dnd items between containers

In order to programmatically move dojo.dnd items (dojo.dnd.Item) between containers (dojo.dnd.Container) you only need to insert existing nodes from the source container into the target container, delete any moved nodes from the source container...