[Building Sakai] Replacing DatePicker in Signup tool

Laxman Deepak laxmandeepak.vidyayug at gmail.com
Tue Sep 9 07:02:44 PDT 2014


I did same code changes as in forum tool.I am able to get the text box but
besides text box unable to get the Jquery calendar icon and unable to
trigger calendar event.

Hope your helping hands useful for me.

I am also getting the  following errors in  browser console.

               $ datepicker is not defined *or* JQuery is not defined.

I am using the following script files

        <script type="text/javascript"
src="/library/js/jquery/jquery-1.9.1.min.js"></script>
     <script type="text/javascript"
src="/library/js/jquery/ui/1.10.3/jquery-ui.1.10.3.full.min.js"></script>
     <script type="text/javascript"
src="/sakai-signup-tool/js/signupScript.js"></script>
        <script type="text/javascript"
src="/sakai-signup-tool/js/newMeetingStep1.js"></script>
        <script type="text/javascript"
src="/library/js/lang-datepicker/lang-datepicker.js"></script>
        <link
href="/library/js/jquery/ui/1.10.3/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"
rel="stylesheet" type="text/css" />

On Mon, Sep 8, 2014 at 6:21 PM, Matthew Jones <matthew at longsight.com> wrote:

> And I *believe* that since Signup is JSF, it would be more similar to the
> work in Forums (https://jira.sakaiproject.org/browse/SAK-25516) rather
> than Announcements? I don't know if there was a jsf component or anything
> that existed or converted over as part of that.
>
> For RSF in the latest release, Matthew Bucket contributed a new component
> that makes the RSF tools a lot easier to convert, but I'm not familiar with
> the pattern in other frameworks.
>
> For this particular error, you'd need to make sure jquery is loaded before
> loading the date picker. Not all pages in Sakai load jquery.
>
> Probably just
>     <script type="text/javascript"
> src="/library/js/jquery/jquery-1.9.1.min.js"></script>
>
> And possibly (if an older jquery was used)
>     <script type="text/javascript"
> src="/library/js/jquery/jquery-migrate-1.2.1.min.js"
> rsf:id="scr=contribute-script"></script
>
>
>
> On Mon, Sep 8, 2014 at 8:44 AM, JOSE MARIANO LUJáN GONZáLEZ <
> jmariano at um.es> wrote:
>
>>  Hi Laxman,
>>
>> You might be aware of this jira, but just in case:
>> https://jira.sakaiproject.org/browse/SIGNUP-263
>>
>> As far as I know, no one has done anything related to it but it would be
>> great if you add your updates to that jira so that people are aware of it.
>> Thanks!
>>
>> Cheers,
>> Mariano
>>
>> El 08/09/2014 13:48, Laxman Deepak escribió:
>>
>> Hi All,
>>
>>      I am trying to replace the existing date picker with the jquery ui
>> datepicker in signup tool by taking the reference of announcement tool.I
>> setup all the required files as part of <script> tag.And i took same files
>> which had been used for announcement tool But when i click the  date picker
>> icon trigger is not firing,In the console it is showing
>>
>>  *ReferenceError: jQuery is not defined lang-datepicker.js:1385*
>> *TypeError: localDatePicker is not a function*
>>
>>  Please help me how to make it work.
>>
>>
>> _______________________________________________
>> sakai-dev mailing listsakai-dev at collab.sakaiproject.orghttp://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>
>>
>> --
>> ******************************************
>> José Mariano Luján González - Aula Virtual
>> Area de Tecnologías de la Información
>> y las Comunicaciones Aplicadas (ATICA)
>> UNIVERSIDAD DE MURCIA - http://www.um.es
>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140909/716ef2dd/attachment.html 


More information about the sakai-dev mailing list