Il n’existe pas de commande directe qui permette de savoir si le Player est éteint (en veille) ou allumé… Cependant il existe une astuce qui consiste à faire une requête en utilisant les paramètres suivants : { url:”http://mafreebox.freebox.fr/api/v3/airmedia/receivers/Freebox%20Player/”, headers:{ “X-Fbx-App-Auth”: client.app.session_token }, method:”POST”, json: { “action”:”stop”, “media_type”:”video” }, encode:”utf-8″ } La Freebox va alors retourner […]
Month: November 2016
Execute an action before saving a form but after the form validation [Sharepoint]
Let’s say you want to do an asynchronous request just before saving a Sharepoint form, but after Sharepoint verified all the fields in your form (for mandatory ones, or for format, …). Here is my solution to do it (using jQuery.Deferred): // this function will do our asynchronous check function beforeSaving() { var deferred=jQuery.Deferred(); setTimeout(function() […]
Disable X-Frame-Options on Sharepoint
I needed to communicate with an iframe on Sharepoint, however Sharepoint returned Load denied by X-Frame-Options … To override this limitation you have to create a Webpart page where you’ll add the code <WebPartPages:AllowFraming runat=”server” /> into the <asp:Content> section (that might work somewhere else, but I did this way). You can also add it […]
Capture HTTP(S) traffic from Android using a sniffer
I wanted to debug an Android app that uses HTTPS requests with a JSON API. Thanks to this article I’ve been able to use my Windows 10 computer to get all the network from my Android phone thru my local network and decode the HTTPS requests ! I’m going to summarize the steps from the […]
Hide a field into a form with JSLink based on field’s description [Sharepoint]
On Sharepoint 2013 I was trying to hide a field (the complete row) based on some elements into its description. To do so we will call our file using the JSLink (see my previous post about it). The JS file looks like that: (function() { // do some actions as soon as the fields are […]