Il primo problema riscontrato implementando jQuery in un mio progetto è stato un conflitto con lo script di lightbox2.

Lightbox usa prototype and scriptalicious mentre jQuery usa appunto jquery.js .

Dopo un’intensa googlata mi sono ritrovato nel sito ufficiale di Jquery dove ho trovato una semplice soluzione che vi segnalo:

…if you want to make sure that jQuery won’t conflict with another library – but you want the benefit of a short name, you could define your own alternate names (e.g. jq, $J, awesomeQuery – anything you want).

Vedi la soluzione


Email this post Email this post

If you thought this page is useful to your friend, use this form to send.
Email a cui inviare la segnlazione
Messaggio e vostri riferimenti