Agon Bina
Posts: 0
Joined: Thu Oct 04, 2012 5:01 am

How to implement this calendar?(external js/css sources)

Since the datepicker component wont work for me, I want to use this calendar here:
http://dev.jtsage.com/jQM-DateBox/dem...

It says to implement it, I need to add some external javascript and css sources. I did that using the settings page of the project, but still it won't work as it should. I tried appending the code to the head of the page using jquery(ie

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to implement this calendar?(external js/css sources)

Hello! You should add the next external resourses:

http://dev.jtsage.com/cdn/datebox/lat...
http://dev.jtsage.com/cdn/datebox/lat...
http://dev.jtsage.com/cdn/datebox/lat...
http://dev.jtsage.com/cdn/datebox/i18...

Also add Panel component on screen, set it's type to HTML and enter code:

code<label for="mydate">Some Date<&#47;label>

<input name="mydate" id="mydate" type="date" data-role="datebox"
data-options='{"mode": "flipbox"}'>/code

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

How to implement this calendar?(external js/css sources)

just FYI
when he adds external resources and send this app to App Store, his app will be rejected for this reason... - you should have mentioned that

you could try to paste these JS/CSS as local functions

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to implement this calendar?(external js/css sources)

Thank you for the clarification. Please paste your code.

Agon Bina
Posts: 0
Joined: Thu Oct 04, 2012 5:01 am

How to implement this calendar?(external js/css sources)

Eric, is that really true? That is ridiculous if they think it''s a reason to reject an application to their app store.
@Marina, I did add all of those and added this code in html panel:
Some Date

The date appears only on Chrome and does not appear the same way as in their official website demo.

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

How to implement this calendar?(external js/css sources)

external JS code is potential security issue, this code could be changed after the apple review to anything...

Agon Bina
Posts: 0
Joined: Thu Oct 04, 2012 5:01 am

How to implement this calendar?(external js/css sources)

Makes sense, thanks.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to implement this calendar?(external js/css sources)

Hello!

The date appears only on Chrome and does not appear the same way as in their official website demo -- it could be related with JQM version. We'll update JQM version (in a few weeks)

Return to “Issues”