Foros de discusión

Not working jquery calender .

Kiran Kumar Boyini, modificado hace 11 años.

Not working jquery calender .

Expert Mensajes: 287 Fecha de incorporación: 2/06/11 Mensajes recientes
Hi All,

i am using liferay 6 version.I want to include jquery calender for text box.But It is not showing properly on the form.
But it is not showing properly when i am accessing the page.Please find screet shot to understand clearly.



I am using the following code

In jsp :

<input type="text" name="startDate" id="startDateId" value="">
                                       <script type="text/javascript" src="/html/js/jquery/jquery.js"></script>			
					<script type="text/javascript" src="/html/js/jquery/ui.datepicker.js"></script>					
					<script type="text/javascript" src="/html/js/jquery/ui.core.js"></script>			
					<script type="text/javascript">					
					jQuery(function(){					
							jQuery("#startDateId").datepicker({dateFormat:'dd-mm-yy'});
								 }		
							);
</code></pre><br /><br />Please tell me  am I missing any thing ?<br />Regards,<br />Kiran.</script>
thumbnail
Juhi Kumari, modificado hace 11 años.

RE: Not working jquery calender .

Expert Mensajes: 347 Fecha de incorporación: 12/12/11 Mensajes recientes
Hi,

It should
jQuery(function() {

not
Query(function(){


Regards
Juhi
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Not working jquery calender .

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Where are you uploading jquery js files? Are you putting them in ROOT\html folder?
Kiran Kumar Boyini, modificado hace 11 años.

RE: Not working jquery calender .

Expert Mensajes: 287 Fecha de incorporación: 2/06/11 Mensajes recientes
Hitoshi Ozawa:
Where are you uploading jquery js files? Are you putting them in ROOT\html folder?


Hi ,


I am not uploading js files.Just I want to use js files given by liferay. In the following path.

portal\portal-web\docroot\html\js\jquery

Thanks,

KiranKumar boyini.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Not working jquery calender .

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Liferay now uses Alloy UI calendar.
jQuery calendar is included in the jQuery UI. You'll have to go to jQuery UI site and create a js bundle which includes the calendar. I'm using them in my portlets without any problems. I sometimes do use Alloy UI calendar but most often, it doesn't fulfill my users' requirements.
Kiran Kumar Boyini, modificado hace 11 años.

RE: Not working jquery calender .

Expert Mensajes: 287 Fecha de incorporación: 2/06/11 Mensajes recientes
Thanks for reply,

I found "jquerry calender is not working for aui:input tag".Can I able to use normal html elements inside the alloy Ui form,
normal java script functions inside alloy ui script .

Regards,

Kiran.
thumbnail
Vilmos Papp, modificado hace 11 años.

RE: Not working jquery calender .

Liferay Master Mensajes: 529 Fecha de incorporación: 21/10/10 Mensajes recientes
Hi Kiran,

I'm not completely sure, but I think that shouldn't be a problem, you can try it easily.

Regards,
Vilmos
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Not working jquery calender .

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
You'll need to use the aui namespace in the html elements. There's some differences in attributes too but shouldn't be too much of a problem.
thumbnail
Vilmos Papp, modificado hace 11 años.

RE: Not working jquery calender .

Liferay Master Mensajes: 529 Fecha de incorporación: 21/10/10 Mensajes recientes
You could use the input_date tag or the AUI datepicker in 6.x