Login
Nome utente:

Password:

Ricorda



Recupero password

Registrati!
Navigazione
Utenti Online
15 utente(i) online
(1 utente(i) in Tutorial)

Iscritti: 0
Ospiti: 15

altro...
Tutorial :: Temi e templates

Utilizzare jQuery in Xoops


Utilizzare jQuery in Xoops
Defkon1
Esiste un'incompatibilità tra jQuery e il codice Javascript di Xoops, ma può essere superata.
Profilo Autore: Defkon1
Ingegnere informatico da anni impegnato nella comunità opensource.

Al momento è Webmaster del portale XoopsItalia.
Traduzione e adattamento dell'articolo inglese "jQuery and Xoops" di nachenko (XoopsTips.com)

E' possibile utilizzare la libreria jQuery in Xoops, ma se provate a seguire le usuali istruzioni di installazione non riuscirete a farla funzionare a dovere su tutti i browser.

Esiste infatti un'incompatibilità di base tra la libreria e il codice Javascript nativo di Xoops. Vediamo come aggirarla, in modo da poter utilizzare tutte le sue funzionalità nei nostri temi senza doverci preoccupare di nulla.

1. includete la libreria con un path basato sulla variabile Smarty <{$xoops_url}> e non un path assoluto.

<pre><script src="<{$xoops_url}>/jquery/jquery.js"></script></pre>


2- Non utilizzate la funzione $ per eseguire jQuery. XOOPS possiede la propria funzione $, e dovrete quindi utilizzare la chiamata jQuery originale.

<pre>jQuery(document).ready();</pre>


3. includete i file jQuery prima di questa linea nel vostro tema:

<pre><{$xoops_module_header}></pre>


Tale linea infatti caricherà il file includes/xoops.js, che contiene la sua versione della funzione $.
<< Visualizzare un messaggio di loading nel tuo sito Xoops! Override di un template: tutorial introduttivo >>
API: RSS | RDF | ATOM
Copyright© Defkon1 & Xoops Italia
I commenti sono di proprietà degli autori. Si declina ogni responsibilità sul loro contenuto.

Autore Contenuto
huff01
Data di invio: 5/9/2012 11:59  Aggiornato: 5/9/2012 11:59
Senior
Iscritto: 5/9/2012
Da:
Inviati: 164
 fake watches for sale
six o clock profession. The dial is quite legible , replica rolex replica rolex Visualizza immagine originale the weather composing it staying very well positioned. Relating to its technical efficiency, the Chronoswiss Perpetual Calendar look at functions over a Do. 127 caliber armani replica armani replica replica armani swiss replica armani swiss , becoming produced of fifty hand-assembled factors replica watches replica watches Audemars Piguet Classique Perpetual Calendar Replica Audemars Piguet Classique Perpetual Calendar Replica fake audemars piguet fake audemars piguet , a mechanism that has centered its producing procedure over a Debois-Depraz calendar module. This innovative and very complex strategy is employed to manage the primary features which make up a perpetual calendar view and gives the ideal precision 1 can inquire for. The mechanism also supplies a thirty meter drinking water resistance Breitling Chrono Avenger watches Breitling Chrono Avenger watches , and it s really guarded because of the sapphire crystal lined instance back again and top rated. The brand new Chronoswiss Perpetual Calendar enjoy is unquestionably suitable for those that don t see in watches just a few fancy breitling crosswind replica breitling crosswind replica

Autore Contenuto
huff01
Data di invio: 12/9/2012 3:20  Aggiornato: 12/9/2012 3:20
Senior
Iscritto: 5/9/2012
Da:
Inviati: 164
 ebel replica watches
does not seem right franck muller replica watches franck muller replica watches . "After months of struggle with guilt, ebel replica ebel replica Lou, replica aigner watches replica aigner watches Diane decided to say goodbye chopard replica watches chopard replica watches . remonstrations\'s girlfriend continued in February 1983 was at night, Lou is cutting them. "Who is my best, Diane I asked you and. You love Nora. I love Nora. It. Regretted, praised the bombing, and I cried. In front of my ways I\'ve never seen anyone smoke. "10000000000000000 weeks when the route home, Diane, Nora is also for him and his house and followed the steps. "She muneule night we come, replica porsche design replica porsche design "recalled his wife breguet replica breguet replica , Lou. "I was on the phone, "came the. But the next. Day, she was featured at the entrance to the Nora\'s face. "She was my wedding, I ruwaui relationships all of them a fire door in his face, I must begin to teach. Visualizza immagine originale "He Lu, "We have no choice, "and he never saw her again, was known replica cartier replica cartier

Autore Contenuto
huff01
Data di invio: 12/9/2012 4:09  Aggiornato: 12/9/2012 4:09
Senior
Iscritto: 5/9/2012
Da:
Inviati: 164
 girard perregaux replica
wedding? If the simple replica oris replica oris replica breitling replica breitling , elegant style of Pippa's Sarah Burton stunner is what you're looking for, replica breguet watches replica breguet watches check out the gown below (photo 7). replica chopard replica chopard It's almost a dead ringer! Which wedding dress is your fave iwc replica watches iwc replica watches ? And what do you think of the vintageinspired tealength number? Are you head over heels alain silberstein replica alain silberstein replica ulysses nardin replica watches ulysses nardin replica watches Visualizza immagine originale ? 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011 wedding dresses and reception frocks by Matthew Christopher 2011

Autore Contenuto
huff01
Data di invio: 12/9/2012 6:45  Aggiornato: 12/9/2012 6:45
Senior
Iscritto: 5/9/2012
Da:
Inviati: 164
 guess replica watches
yellow, rivets, replica welder replica welder leather combine to create a card full of rock and roll flavor Stealth weapons nude color heels long legs Visualizza immagine originale , forward girl wear, wild pass out of earth. Nowadays, more and more women are hot tea, they are young beautiful and fashionable, trendy, it seems that they have quietly led the youth and fashion trend. Today we also found Xiaobian two super women take the shape of tea new hairstyle, might together Check it out, perhaps such a simple hairstyle, replica omega replica omega you can greatly enhance your popularity rolex fake watches rolex fake watches . charming sense of transparency long curly hair, lashing the most feminine youth tea woman said, bell ross replica watches bell ross replica watches long hair is still very important symbol of a woman, movado replica movado replica with a long hair can be very good to their feminine comes out completely. replica ferrari watches replica ferrari watches In fact rado replica rado replica , tea youth fashion feminine women will not give up the element! This

Autore Contenuto
huff01
Data di invio: 12/9/2012 8:59  Aggiornato: 12/9/2012 8:59
Senior
Iscritto: 5/9/2012
Da:
Inviati: 164
 tag heuer replica
Genesis be.. Look what Adeel Chowdhry say about their product: Income Genesis Is A SOFTWARE MIRACLE That Will Make You BANK! Ia? watches replica watches replica replica emporio armani replica emporio armani enicar replica watches enicar replica watches ?m putting my entire reputation on the line.. Yes, that's right! I am not going to hide behind a fake actor and am putting my name to something that I can really bank on and give back to the superstars with whom Ia? panerai replica panerai replica ?ve been making money with for the past five wildly successful years this means YOU! I think youa??re going to be surprised with what Ia?? Replica Rolex Swiss Watch Replica Rolex Swiss Watch ve been cooking up in my underground moneymaking bunker Income Genesis is the product of many, many months and $80, jaeger lecoutre replica watches jaeger lecoutre replica watches 000a??s worth of research, design and development, resulting in a cashcommanding machine with attitude thata??ll really show you where the moneya??s at. Visualizza immagine originale . Adeel Chowdhry Well, Ia? replica audemars piguet watches replica audemars piguet watches ?m excited
Sostieni XoopsItalia!
Ultimi Tutorial
Ultime Traduzioni
XOOPS ITALIA © 2002-2012 - Powered by XOOPS