Receiving Error When Implementing Date Scroller

30 views
Skip to first unread message

Ryan Prentiss

unread,
Mar 5, 2014, 1:38:16 AM3/5/14
to mobis...@googlegroups.com
I am currently receiving the following error in my attempt to implement:
Uncaught TypeError: Cannot call method 'match' of undefined -- mobiscroll.datetime.js:78

I am totally unsure if I am calling the correct scripts when implementing as I could not find details from within the Github docs. This is running off of the jQuery and jQuery Mobile libraries.

HTML Snippets:

        <link rel="stylesheet" type="text/css" href="css/mobiscroll.scroller.css" />
        <link rel="stylesheet" type="text/css" href="css/mobiscroll.scroller.android.css" />

<form>
<label for="reg_dob">Date of Birth</label>
<input name="reg_dob" type="text" id="reg_dob" />
</form>

        <script type="text/javascript" src="js/mobiscroll.core.js"></script>
        <script type="text/javascript" src="js/mobiscroll.datetime.js"></script>
        <script type="text/javascript" src="js/mobiscroll.scroller.js"></script>
        <script type="text/javascript" src="js/mobiscroll.scroller.android.js"></script>


JS Snippets:

$('#reg_dob').mobiscroll().date({
theme: 'android',
display: 'bottom',
mode: 'scroller'
});

Istvan Halmen

unread,
Mar 5, 2014, 3:25:08 AM3/5/14
to Mobiscroll Group
Hi Ryan,

You should include the mobiscroll.datetime.js after mobiscroll.scroller.js.
See the sample index file for more details on the order: https://github.com/acidb/mobiscroll/blob/master/index.html

Istvan


--
You received this message because you are subscribed to the Google Groups "Mobiscroll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobiscroll+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Prentiss

unread,
Mar 5, 2014, 3:29:02 AM3/5/14
to mobis...@googlegroups.com
Thank You!
Reply all
Reply to author
Forward
0 new messages