[opencms-dev] JQuery version

Christian Steinert christian_steinert at web.de
Tue Feb 24 23:00:09 CET 2009


Asnidren ha scritto:
> I still try to use jquery tag...
> * When I add in HEAD this: <cms:jquery />, nothing is added on my page.
> * When I add this: <cms:jquery js="jquery" />, the static jquery.js file is
> added 
What exactly is added to your page, if you add <cms:jquery js="jquery" />?

Best Regards
Christian
> but my jquery code doesn't seems to work (it worked when I added
> manually :
> <%	if (login.getRequestContext().currentProject().isOnlineProject()) {%>
> <script type="text/javascript" language="JavaScript"
> src="<cms:link>/system/workplace/resources/jquery/packed/jquery.js</cms:link>"></script>
> <%  }%>
> )
>
> I don't understand!!
>
>
>
>
>
> Christian Steinert wrote:
>   
>> Dear Sandrine 
>>
>> just for the record: the <cms:jquery /> tag will behave different in the
>> offline project than in the online project. In the online project, the
>> unpacked version of jquery is used but offline, the unpacked version is
>> used and this version is stored in a slightly different folder of opencms.
>> In other words: opencms comes with two copies (packed and unpacked) of
>> jquery and it sounds as if you only replaced one of them.
>>
>> Regards
>> Christian
>>
>>     
>>> As usual, I just found a solution : I copied this :
>>>
>>> <scripttype="text/javascript" src="http://ui.jquery.com/testing/
>>> jquery-1.3.1.js"></script>
>>>
>>> <scripttype="text/javascript" src="http://ui.jquery.com/testing/ui/ui.
>>> core.js"></script>
>>>
>>> <script type="text/javascript"src="http://ui.jquery.com/testing/ui/ui.
>>> draggable.js"></script>
>>>
>>> In the HEAD, and it works.
>>>
>>> De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces@
>>> opencms.org] De la part de Sandrine Prousteau
>>> Envoyé : vendredi 13 février 2009 11:39
>>> À :chan_fookmun at yahoo.com.sg; The OpenCms mailing list
>>> Objet : [opencms-dev] JQuery version
>>>
>>> Hi
>>>
>>> I found the version of Jquery inside /system/workplace/resources/
>>> jquery/packed/ for OpenCms 7.0.5. It seem’s to be a old version.
>>>
>>> I’d like to use the Jquery UI with draggable function. 
>>>
>>> How can I had it to my pages?
>>>
>>> I tried to upload the .js files I’ve download from the site, 
>>> and add it in <head />, but the line $("div.popin").draggable(); 
>>> doesn’t work. Any suggest?
>>> _______________________________________________ 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
>>>       
>> ____________________________________________________________________
>> Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
>> Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
>>
>>
>> _______________________________________________
>> 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
>>
>>
>>     
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090224/d4ab7c9b/attachment.htm>


More information about the opencms-dev mailing list