gialloporpora 's Library tagged → View Popular
Browser’s implied globals / Stoyan's phpied.com
Like it's not bad enough that JavaScript has implied globals (forget var and you create a global), but the browsers have decided it's a good idea to add more pollution to the global namespace.
Coming At You Like A Pydermonkey at Toolness
Since learning JavaScript over a year ago, it’s become one of my favorite dynamic programming languages alongside Python. And as I’ve mentioned before, I think the two languages actually complement each other pretty well.
John Resig - Easy Retweet Button
Picoolo script per tenere traccia delle visite via Twitter.
Ever since I saw the Bit.ly JavaScript API I've been wanting to build a simple script for tracking the number of people visiting a blog post from Twitter. This past weekend I built a little script for doing just that - and in a completely unobtrusive manner.
John Resig - Computing with JavaScript Web Workers
Web Workers are, undoubtedly, the coolest new feature to arrive in the latest version of web browsers. Web Workers allow you to run JavaScript in parallel on a web page, without blocking the user interface.
A Piano
Requires Firefox 3.5 or another browser with <Audio> tag support.
You can play this by clicking on it with the mouse, or by using the keys on your real keyboard that correspond to the labels below.
It supports chords (play multiple notes at the same time by holding down multiple keys on your real keyboard). Try it!
perfection kills » Blog Archive » Detecting event support without browser sniffing
One of the pain points of feature testing in client-side scripting is that for event support. DOM doesn’t really specify any means to detect exactly which events browser understands and can work with. If you’d like to know if a browser supports, say, “dblclick” event, you’re pretty much out of luck. This is probably the reason why so many scripts on the web employ unreliable browser sniffing in such cases. One of the most common events that people sniff for are IE’s proprietary mouseenter/mouseleave, Opera’s impotent contextmenu, and input-related onbeforepaste, onbeforecut, etc. which are present in IE and WebKit, but not in Mozilla-based browsers.
Come creare una Richiesta XMLHttpRequest(ajax) con JSON e PHP → SoulBit.org
Nativamente in version >= di PHP5.x abbiamo 2 costrutti per manipolare gli oggetti di tipo JSON
RestTest Debug di richieste XHR con firefox → SoulBit.org
Firebug estensione per Firefox ne ha combinata un altra delle sue per sviluppatori web, o per debuggatori folli…Questa estensione si chiama RESTTest .Usa l’oggetto XmlHttpRequest e permette quindi di testare velocemente le richieste XHR e di individuare eventuali problemi di sicurezza. Supporta tutti i metodi HTTP e permette di inviare richieste HTTP con headers e dati definiti ed esaminare il risultato per testare i codici sorgenti. Se state iniziando a sviluppare con json questa estensione è molto utile, vedendo direttamente la richiesta che viene inviata al server e possibili problemi. Per lavorare con la feathures bisogna aprire firebug, posizionarsi sul tab “net” e selezionare la voce XHR, da li la finestra mostrerà le iterazioni con il server
JSONP: JSON With Padding come usarlo, significato,implementazione,callback → SoulBit.org
Buona spiegazione dell'utilizzo di Ajax, dei problemi di sicurezza ad esso legati (XSS Cross Site Scripting).
-
La cosiddetta same domain policy è una restrizione presente nei recenti browser che impedisce a script scaricati dalla rete di accedere, tramite qualsiasi tipo di richiesta HTTP, a risorse che si trovano su server diversi rispetto a quello iniziale che ha inviato lo script. Questa inibizione non riguarda solo host diversi tra di loro, ma anche processi in ascolto su porte diverse della stessa macchina, il motivo principale, per il quale si è iniziato a chiudere l’accesso a siti esterni è stato quello di evitare il cross-site scripting (XSS).
-
Attacco non persistente: Bob espone un servizio web che richiede autenticazione, e i suoi utenti registrano nel loro profilo dei dati sensibili. Alice si iscrive e diventa uno dei tanti utenti di Bob. Mallory, scopre una vulnerabilità in una pagina del sito di Bob. Visto che è un esperto di XSS, costruisce una url che sfrutta questa falla e la invia via mail ad Alice, facendosi passare per Bob (email spoofing). Alice è distratta e non si accorge che la mail non proviene dal sito di Bob, e clicca sul link in essa contenuto. Se in quel momento Alice era contemporaneamente collegata, con un’altra finestra del suo browser, al sito di Bob, Mallory può farsi inviare dallo script i dati sensibili di Alice (contenuti ad esempio in cookies non criptati).
Tecniche Javascript - Lazy loading (versione per la stampa) | Articoli Javascript | Javascript.HTML.it
Grazie all'avvento di numerose tecniche client-side come AJAX, le pagine web sono diventate sempre più complesse e pesanti: spesso infatti parte dell'elaborazione si è in qualche modo trasferita dal server al client.
php etc...: jQuery - Select element cheat sheet
jQuery Cheat Sheet for selecting elements.
Cheat Sheet per selezionare gli oggetti con jQuery
Simple JQuery Modal Window Tutorial | Queness
In this tutorial, I'm going to share how to create a simple modal window with jQuery. I like jQuery, it makes everything so simple and so easy. In case you don't know what's modal window. You can click here. That's an example of a modal window.
jQuery for JavaScript programmers
Insieme di semplici e utili esempi di utilizzo di jQuery.
When jQuery came out back in January 2006, my first impression was that it was a cute hack. Basing everything around CSS selectors was a neat idea (see getElementsBySelector) but the chaining stuff looked like a bit of a gimmick and the library as a whole didn’t look like it would cover all of the bases. I wrote jQuery off as a passing fad.
Ubiquity Script to Download File Patterns on Your Page
I wrote a ubiquity script that lets you download just about anything on the page you’re visiting, for example images and javascript files. It’s called “save-all” “download-files” and it’s available as a gist on github. One of my classes at university has a “resource page” where they provide all of the datasets for our statistics homework; however, you have to click on each one of them (stored in “.dat” format) to get them all! What a waste of time. So instead of clicking on each one, I wrote the following script. Here’s how you would use it:
The Power of WordPress and jQuery: 25+ Useful Plugins & Tutorials
jQuery is ideal because it can create impressive animations and interactions while being simple to understand and easy to use. WordPress awesomeness lies in its fact that it can be customized to power any type of site you like! But what happens when you combine the power of jQuery with WordPress, the possibilities are infinite.
humanmsg - Google Code
Humanized Messages is a javascript-based system for non-model notifications, from an idea by Jef Raskin, as relayed by Aza Raskin and adapted for jQuery and use with K2 by Michael Heilemann.
pyjamas
Many people, when first finding out about Google Web Toolkit, wonder "why can't I use Python instead of Java?". pyjamas is designed to make that possible.
What is pyjamas?
pyjamas is a stand-alone python to javascript compiler, an AJAX framework / library and a Widget set API.
Why should I use it?
pyjamas
Like GWT, pyjamas involves the translation of the application and libraries (including UI widgets and DOM classes) to Javascript and the packaging up of that Javascript code.
There are two core developer tools included with pyjamas. pyjs[1] translates Python code to Javascript by walking the Python abstract syntax tree and generating Javascript.
In many cases, built-in Python types require a custom Javascript implementation. For example, even though Python lists are similar to Javascript arrays, Python lists are converted to custom objects that implement methods such as append. These custom objects, required for translation by pyjs, are defined in a library called pyjslib.[2]
Like GWT, pyjamas comes with a set of UI widgets as well as a library for DOM manipulation.[3] These libraries are written in Python but are, like everything else, translated to Javascript for deployment.
The overall translation of individual components is managed by build[4] which also creates the necessary boilerplate code. The result is a set of .html and .js files that can be served up by a Web server.
There are other components planned which have not been covered here such as server-side code for communication in client-server applications. The examples do however contain JSONRPC server-side source code (in cgi python, and php) which give an idea of what's involved
Learning Advanced JavaScript
Tutorial avanzato su Javascript (closures, ereditarietà e altro)
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in javascript
-
Interoperability and The Quest For A Universal File Format
Bookmarked pages related to...
Items: 11 | Visits: 238
Created by: Gary Edwards
-
Programming jQquery
Items: 26 | Visits: 253
Created by: Vincent Tsao
-
Javascript
Items: 30 | Visits: 230
Created by: Vincent Tsao
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
