Archiv der Kategorie: Web

WordPress 3.9.1: Fix für Bug mit Copy & Paste von Bildern aus Zwischenablage

Um das Problem zu beheben, muss der Konfigurationsparameter paste_data_images für den TinyMCE Editor auf true gesetzt werden. Dazu kann man folgendes tun: In der Datei /wp-includes/class-wp-editor.php folgende Zeile ergänzen: init[„paste_data_images“] = true; Zu finden ist die richtige Stelle dafür in … Weiterlesen

Veröffentlicht unter Allgemein, Web | Verschlagwortet mit | Schreib einen Kommentar

WordPress 3.9.1: Bug mit Copy & Paste von Bildern aus Zwischenablage

Anscheinden hat das heutige Update des Blog eines meiner liebsten Features gekillt: Das direkte Copy & Pasten von Bildern aus der Zwischenablage geht nicht mehr. Tolle Sache. Siehe dazu: https://core.trac.wordpress.org/ticket/27970

Veröffentlicht unter Allgemein, Web | Verschlagwortet mit | Schreib einen Kommentar

XPages: Bootstrap File Input

When using the default file upload control in a Bootstrap application, the default file upload button does not fit anymore to the design: To fix this issue, you can use a small jQuery plugin named Twitter Bootstrap File Input. When … Weiterlesen

Veröffentlicht unter Java Script, Web, XPages | Verschlagwortet mit , , , , , , , , | 2 Kommentare

XPages: A Bootstrap Skin for CKEditor

I have found a very nice skin for CKEditor, the “BootstrapCK-Skin”. It gives a bootstrap look and feel to the Editor: The dialogs are also skinned: You can find and download the skin here http://kunstmaan.github.io/BootstrapCK-Skin/ To use the skin in … Weiterlesen

Veröffentlicht unter Java Script, Web, XSP | Verschlagwortet mit , , , | 4 Kommentare

XPages: Set a Theme for a single XPage

… or how you can use your own FacesContext implementation. What we need first is our own FacesContext implementation with new methods to set the StlyeKitId (which is the name of the Theme) for initializing the StyleKit instance: package ch.hasselba.xpages; … Weiterlesen

Veröffentlicht unter Java, JSF, Web, XPages | Verschlagwortet mit , , , | 3 Kommentare

XPages: Use async / defer option for external CSJS Script Libraries

When adding CSJS libraries to your XPage, try to use the defer or the async option for a better user experience. When not using this options, the Page might be blocked during page load. Have a look at this example … Weiterlesen

Veröffentlicht unter HTML5, Java Script, Performance, Web, XPages | Verschlagwortet mit , , , , , , , , , | 1 Kommentar

XPages: Optimized Partial Refreshs

Inspired by the last post of Mark, I have created a small CSJS snippet which allows to optimize the behaviour of a Partial Refresh. Normally, if you execute a Partial Refresh, all elements of a form are sent to the … Weiterlesen

Veröffentlicht unter Dojo Toolkit, Java Script, Performance, Web, XPages, XSP | Verschlagwortet mit , , , , , , , , , | 6 Kommentare

XPages: Modify the File Selection Button

With Dojo, you can easily customize the file upload button, f.e. to change the label, add additional style sheets or use HTML5 or Flash plugin for uploading. Here is basic example which adds a label and a blue border around … Weiterlesen

Veröffentlicht unter CSS, Dojo Toolkit, HTML, HTML5, Java Script, Web, XPages | Verschlagwortet mit , , , , , , , | Schreib einen Kommentar

Quick-n-Dirty: Ajax Fileuploads

Here is an example how to upload a file with Ajax to a XPage. It is a simple Javascript, and adds the required fields to the xhr request. This example works in FireFox and Chrome and should work on Domino … Weiterlesen

Veröffentlicht unter Dojo Toolkit, Java Script, ServerSide JavaScript, Web, XPages, XSP | Verschlagwortet mit , , , , , , , , , , | 1 Kommentar

XPages: File downloads and blocked UI

Yesterday Christian asked a very interesting question: He had observed that the browser UI is blocked when clicking a button which generates a PDF on the server and sends the result. For about 30 seconds no button is working, no … Weiterlesen

Veröffentlicht unter Dojo Toolkit, HTML, Java Script, Web, XPages, XSP | Verschlagwortet mit , , , , , , , , , | Schreib einen Kommentar