[opencms-dev] JQuery version

Sandrine Prousteau s.prousteau at eurelis.com
Wed Feb 25 10:25:20 CET 2009


With the file :

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> 

<html>

<head>

<cms:jquery js="jquery"/>

</head>

<body/>

</html>

 

 

I get :

In FF, from the workplace : 

<html>

<head>

<script type='text/javascript' src='/opencms/resources/jquery/unpacked/jquery.js' ></script>

</head>

<body/>

</html>

In IE7, not connected:

<html>

<head>

<script type='text/javascript' src='/opencms/resources/jquery/packed/jquery.js' ></script>

</head>

<body/>

</html>

 

With the file:

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> 

<html>

<head>

<cms:jquery/>

</head>

<body/>

</html>

 

I get:

In FF, from the workplace:

<html>

<head>

 

</head>

<body/>

</html>

In IE7, not connected:

<html>

<head>

 

</head>

<body/>

</html>

________________________________

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Christian Steinert
Envoyé : mardi 24 février 2009 23:00
À : The OpenCms mailing list
Objet : Re: [opencms-dev] JQuery version

 

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/ <http://ui.jquery.com/testing/jquery-1.3.1.js> 
		jquery-1.3.1.js" <http://ui.jquery.com/testing/jquery-1.3.1.js> ></script>
		 
		<scripttype="text/javascript" src="http://ui.jquery.com/testing/ui/ui. <http://ui.jquery.com/testing/ui/ui.core.js> 
		core.js" <http://ui.jquery.com/testing/ui/ui.core.js> ></script>
		 
		<script type="text/javascript"src="http://ui.jquery.com/testing/ui/ui. <http://ui.jquery.com/testing/ui/ui.draggable.js> 
		draggable.js" <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/20090225/a60aca0c/attachment.htm>


More information about the opencms-dev mailing list