I wanted to be able to change the values for a pie chart created with gRaphaël. After some tries I finally created a new method called changeValues that is available in my fork of gRaphaël. Below is an example: Move your mouse over one slice from the first chart to see the second one that […]
Month: November 2012
JavaScript APIs you’ve never heard of (And some you have)
From this video I’ve discovered several JS API I didn’t know. Let’s list them: 1) Use children instead of childNodes to list the children nodes of a DOM element: <ul> <li>Hello</li> <li>world</li> <li>!</li> </ul> <script> document.getElementById(‘test’).childNodes.length; // 7 -> because it also returns the text nodes document.getElementById(‘test’).children.length; // 3 </script> Support: all browsers, but from […]
Raphaëljs plugins for different charts [gRaphaël]
There is gRaphaël that provides several useful plugins to create some different charts like the pie charts, the line charts and so on, based on the Raphaël JS library. unfortunately, the owner doesn’t update his files very often, even if there are several pull requests from the users. So I decided to fork the main […]
Erreur 0x800700005 avec Sharepoint
C’est vraisemblablement une erreur de permissions sur la liste ! 🙂
How to trigger the window.resize event on IE8
For the modern browsers it’s easy to fire the window.resize event, but not for IE8…. After several hours of searching, I didn’t find anything. The only solution I found is the one to resize the HTML that will trigger the event: function triggerEvent(element, eventName) { var event; if (document.createEvent) { event = document.createEvent(“HTMLEvents”); event.initEvent(eventName, true, […]
WebPart doesn’t work with IE8 in standard mode under Sharepoint 2010
The Microsoft developers are not really good, and we can see it if you use IE8 in standard mode with Sharepoint 2010: the web parts don’t work anymore due to an error with the wpadder.js file. After few hours trying to find the problem I’ve finally discovered that the WPAdder class uses the for..in statement […]
Citrix Receiver: impossible d’ajouter un compte [configuration]
J’utilise Citrix Receiver dans le cadre de mon travail. Après avoir installé la dernière version sur mon ordinateur, il me demande d’entrer une adresse email professionnel, ou bien une adresse HTTPS du serveur. Lorsque je rentre l’URL sécurisé du serveur j’avais le droit à un laconique message disant “impossible d’ajouter un compte”…. Après avoir cherché […]