Page 1 of 1

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

Posted: Mon Nov 12, 2012 8:17 am
by Agon Bina

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


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

Posted: Mon Nov 12, 2012 9:37 am
by Maryna Brodina

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


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

Posted: Mon Nov 12, 2012 2:31 pm
by Eric5020946

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


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

Posted: Mon Nov 12, 2012 2:38 pm
by Maryna Brodina

Thank you for the clarification. Please paste your code.


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

Posted: Mon Nov 12, 2012 4:54 pm
by Agon Bina

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.


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

Posted: Mon Nov 12, 2012 4:57 pm
by Eric5020946

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


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

Posted: Mon Nov 12, 2012 7:26 pm
by Agon Bina

Makes sense, thanks.


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

Posted: Wed Nov 14, 2012 1:24 pm
by Maryna Brodina

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)