Tagged: javascript

ricerca autocomplete 2

Cakephp 2.0 Address Finder Helper

I’m publishing as open source a simple -but hopefully useful- helper. It is based on http://tech.cibul.net/geocode-with-google-maps-api-v3/, most of the credit goes to this script. The Helper encapsulates the client side functionality as an easy to use widget, allowing a cakephp developer to easily enhance a cakephp form with address autocomplete, geocoding, drag and drop reverse geocoding. Well, in human terms it’s...

Bookmarklets, a quick follow up 1

Bookmarklets, a quick follow up

Following my previous example, here is another version of the “grab a part of an external site’s page and save on my site with links to the original & page title” bookmarklet. Updated to: use an anonymous function to wrap it up select and submit the underlying html, not only simple text Most of the js code is from Tim...

nettuts intro to bookmarklets 2

Bookmarklets for everyone

Ah, those nice javascript snippets that let some external site interact with our applications. Being a bridge for complex features or some simple functions, i was surprised how easy it is to make one. I am almost always looking for new ways to give admins and writers easier and faster way to do their job, and give common users a...

385px-Aphaia_pediment_Aias_W-IX_Glyptothek_Munich_80 1

Cakephp e jQuery: come?

Usare l’helper o direttamente codice javascript/jQuery nelle viste? Sto iniziando ad usare regolarmente jquery nelle mie applicazioni cakephp, oltre ad essere passato da poco alla versione 1.3 del framework. Cassato (seppur ancora utilizzabile) il vecchio Ajax helper,  il nuovo Js helper sembra molto interessante. Finalmente svincola da proptotype e mette jQuery tra gli engine utilizzabili. Js ha qualche metodo in...

google-map-helper 0

Ecco l’ennesimo google map helper

Non sapevo neanche che l’avessero pubblicato! Mi riferisco al mio primo (ed unico, per ora) contributo sulla bakery di cakephp: YAGMH – Yet another Google Map Helper – The Bakery, Everything Cakephp In effetti è vecchiotto ed utilizza la versione 2 delle API di Google Maps (ora c’è la 3 – ho letto alcuni commenti che la sconsigliavano almeno per...

carosello 0

E dopo questo script, tutti a nanna

..è un carosello. Contesto: un’applicazione iniziata con cakephp 1.2 e prototype (sempre quella). Aggiornata a cake 1.3, ma mantenendo i vecchi helper (come AjaxHelper invece del nuovo Js). Quindi, niente jQuery. Una limitazione? un po’, ma anche un’ottima opportunità per provare un po’ di codice lato client o ajax basato su prototype/scriptaculous o indipendente dalle maggiori librerie. Un ottimo esempio...

popup for images embedding 1

Your own cakephp file-browser for ckeditor: part 2 – images

In the previous post we have seen the magic of the CKEDITR.insertHtml method, and how we can use it to avoid the whole file manager thing. The first popup was used to insert files with links to download. Embedding images (thumbnails with link to full version) is easy too. The controller action is even simpler: The admin_index function is still...

file browser popup 2

Your own basic cakephp “file manager” for CK editor

Who hasn’t faced this issue at least once? There are a lot of great online html editors out there (I really like CKEditor), each one with his solution for file and image upload and management. Often, it’s not free. Sometime you don’t need a full-blown file manager. Sometime it’s simply better to give the user a limited set of choices,...