[opencms-dev] Include Jquery

axel.hollenberg at Bertelsmann.de axel.hollenberg at Bertelsmann.de
Wed Nov 4 14:31:30 CET 2009


Thanks it's working.
But for Direct Edit the <scripts> are doubled now.

lg
Axel


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Andreas Zahner
Gesendet: Mittwoch, 4. November 2009 14:19
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Include Jquery

Hi,

to load the load_script function, you have to add the <cms:jquery> tag 
once more like this:

<cms:jquery dynamic="true" />
<cms:jquery dynamic="true" js="jquery" />

Regards,
Andreas.

-------------------
Andreas Zahner

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com -  http://www.opencms.org

axel.hollenberg at Bertelsmann.de schrieb:
> Hi Andreas,
> after I added the tag I got this:
> <script type='text/javascript'>load_script('/opencms/resources/jquery/packed/jquery.js', 'js');</script>
> 
> What's missing is the load_script function :-)
> The function is only available in Direct Edit Modus.
> 
> Any other ideas?
> 
> Danke
> 
> Axel
> 
> 
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Andreas Zahner
> Gesendet: Dienstag, 3. November 2009 17:06
> An: The OpenCms mailing list
> Betreff: Re: [opencms-dev] Include Jquery
> 
> Axel,
> 
> when using the <cms:jquery> tag, you also have to specify the JS file 
> name you want to load, e.g. like this:
> 
> <cms:jquery dynamic="true" js="jquery" />
> 
> Be sure to place the tag below your <cms:editable> tag.
> 
> Hth!
> 
> Regards,
> Andreas.
> 
> -------------------
> Andreas Zahner
> 
> Alkacon Software GmbH  - The OpenCms Experts
> http://www.alkacon.com -  http://www.opencms.org
> 
> axel.hollenberg at Bertelsmann.de schrieb:
>> Hi
>>
>> I want to include jQuery in our Project.
>>
>> In the offline Project it is loaded with DirectEdit.
>>
>> Online I tried to include jquery via the <cms:jquery/>  but nothing happens.
>>
>> Any ideas?
>>
>> Axel
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list