Recuperare la password con ajax
mag06
di LucaOggi vi spiego come poter creare una piccola richiesta di password smarrita utilizzando Jquery e una chiamata ajax.
ipotizziamo di avere una tabella degli utenti così strutturata che memorizza le password in chiaro (solo a scopo didattico e per questo articolo).
[sql]
CREATE TABLE user(
id bigint AUTO_INCREMENT,
username varchar(50) NOT NULL,
password varchar(30) NOT NULL,
nome varchar(80) NOT NULL,
cognome varchar(80) NOT NULL,
ins_date datetime,
upd_date datetime,
lastlogin datetime,
status tinyint(1) DEFAULT 1
PRIMARY KEY (`id`),
KEY `username` (`username`,`password`)
) ENGINE=MyISAM
[/sql]
You inspiration web compie un anno
apr30
di LucaVolevo segnalarvi un blog molto interessante ed in italiano che seguo da qualche giorno e che oggi compie un anno.
Da quando lo seguo ho scoperto molto cose interessnti e nuovo che non conoscevo come ad esempio compe creare un template per joomla, o una bella guida su come scrivere un plug ing di jquery.
Consiglio a tutti di iscriversi ai feed rss del blog perché troverete sempre qualcosa da imparare.
Link al sito http://www.yourinspirationweb.com/
aggiornamento 2 maggio Come mi hanno fatto notare ho corretto il titolo
jquery 1.4.1
gen26
di LucaNeanche ci siamo abituati alla nuova versione di jquery che oggi già rilasciano al prima minor release. De seguito riporto le principali novità (prese sempre dal nuovo sito di jquery per la nuova versione)
New Features
A full list of the API changes can be found in the 1.4.1 category on the jQuery API site.
- .live(“focus”) and .live(“blur”) now work – mapping to .live(“focusin”) and .live(“focusout”). (Documentation, Ticket)
- .live(“hover”) now exists, mapping to .live(“mouseenter mouseleave”). (Documentation, Ticket)
- It’s now possible to bind multiple event types with live. (Documentation, Ticket)
- Calling .die() (with no arguments) removes all bound live event handlers. (Documentation, Ticket)
- .height( function ) and .width( function ) now exist. (Height Documentation, Width Documentation, Ticket)
- jQuery.parseJSON has been exposed, allowing you to parse JSON strings into JavaScript objects. (Documentation, Ticket)
- jQuery.error has been exposed, to be used by plugin developers to provide informative user feedback. (Documentation, Ticket)
Bug Fixes
CoreEventsTraversing
EffectsAjaxOffsetManipulation
Jquery 1.4
gen15
di LucaCome recita il banner nell’home page di jquery Nuovo anno, nuova versione. Infatti, ieri è uscrita la nuova versione 1.4 della libreria javascript. Per festeggiare l’evento hano creatoun nuovo sito dove possiamo trovare tutte le informazioni sul rilascio di jquery dal’ultima RC.
Sicuramente interessante è l’annucio del rilascio della nuove versione o le domande e risposte.
Tutte le novità e modifiche sono presenti qui
Riporto un elenco delle nuove funzionalità:
- .clearQueue()
- jQuery.contains()
- .delay()
- .detach()
- .focusin()
- .focusout()
- .has()
- jQuery.isEmptyObject()
- jQuery.isPlainObject()
- .nextUntil()
- jQuery.noop
- .parentsUntil()
- .prevUntil()
- jQuery.proxy()
- .toArray()
- .unwrap()
Ci sono delle novità anche per quanto riguarda la parte AJAX, cito solo i titoli dei paragrafic eh riguardano la sezione
Nested param serialization (jQuery.param() Documentation, Commit 1, Commit 2)
JSON and script types auto-detected by content-type (jQuery.ajax Documentation, Commit 1, Commit 2)
Etag support has been added (jQuery.ajax() Documentation, Commit)
Strict JSON parsing, using native JSON.parse (jQuery.ajax() Documentation, Commit 1, Commit 2, Commit 3)
Serialize HTML5 elements (jQuery.param() Documentation, Commit)
Context for Ajax Request (jQuery.ajax() Documentation, Commit)
Success callback receives XHR object as third argument (jQuery.ajax() Documentation, Commit)
Explicitly set a content-type (jQuery.ajax() Documentation, Commit)
Explicitly specify a JSONP callback name (jQuery.ajax Documentation, Commit)
Avoid pre-flighting cross-domain XHR (Commit)
jQuery.ajax() is now using onreadystatechange instead of a timer (Commit)
Ce n’è da imparare!
Il Bloggatore