This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 6, 2011, 12:56 PM
9 Posts

Give me an example for using JQuery Datepicker widgets in xPages?

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: JQuery
  • Replies: 4
As using JQuery Datepicker widget, I cannot import JQuery JS file.
 
Could anyone give me an example for using JQuery Datepicker widgets in xPages?


Dec 6, 2011, 1:25 PM
9 Posts
Re: Give me an example for using JQuery Datepicker widgets in xPages?
I  have already downloaded but "How to use it?" 
Dec 6, 2011, 3:54 PM
23 Posts
Re: Give me an example for using JQuery Datepicker widgets in xPages?
 Here you go...
 

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp="http://www.ibm.com/xsp/core">


<xp:this.resources>

<xp:styleSheet href="/datePicker.css"></xp:styleSheet>

<xp:styleSheet href="/jquery-ui-1.8.6.custom.css"></xp:styleSheet>

</xp:this.resources>

<xp:br></xp:br>

<xp:inputText id="inputText1" styleClass="date-pick"></xp:inputText>

<xp:br></xp:br>

<xp:br></xp:br>



<xp:scriptBlock id="scriptBlock1">

<script type="text/javascript" src="jquery-1.4.2.min.js" />

<script type="text/javascript" src="jquery.datePicker.js" />

<script type="text/javascript" src="date.js" />

<script type="text/javascript"

src="jquery-ui-1.8.6.custom.min.js" />


<script type="text/javascript">

$(document).ready(function(){

Date.format='dd/mm/yyyy';

$('.date-pick').datePicker();

});


</script>

</xp:scriptBlock>

</xp:view> 
Dec 15, 2011, 4:06 AM
9 Posts
Re: Give me an example for using JQuery Datepicker widgets in xPages?
Russell,
 
I had already  paste your code but not work. Could you point out what's wrong in my coding?
 
And how can you manage JQuery JS File. Is it copy into database>resources>files ?
 
http://mail.wingchit.com.hk/jquery.nsf/calendar.xsp
 
WINGS LEUNG

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal