ecommerce1986 / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

When used with JQuery Mobile loaded, causes "Object doesn't support this property or method" error. #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add JQuery Mobile js to the demo page
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>

What is the expected output? What do you see instead?
Demo page should render and function without errors. Instead got javascript 
error "Object doesn't support this property or method" when the code trys to 
initialize the scroller:

$('#date1').scrooler();

What version of the product are you using? On what operating system?
The latest (1.0b). JQuery 1.5 and JQuery Mobile 1.0a3.

Please provide any additional information below.
Trying to build a mobile web application using jquery mobile. So I need a 
datepicker suitable for mobile app. The scroller works great with just jquery. 
But I also need the functionalities of the jquery mobile. Please make them work 
together. thx.

Original issue reported on code.google.com by GAMa...@gmail.com on 1 Mar 2011 at 4:06

GoogleCodeExporter commented 8 years ago
Actually it's working just fine with jquery 1.5 and jquery mobile 1.0a3. See 
the demo page now: http://theacidmedia.net/demo.html

Maybe it's just a typo, you wrote 
$('#date1').scrooler(); 
instead of
$('#date1').scroller(); 

Original comment by diosla...@gmail.com on 1 Mar 2011 at 10:10

GoogleCodeExporter commented 8 years ago
Thx for the fast response. But your demo page is still using jquery 1.4.2 and 
no jquery mobile. And yes, it was a typo as it should be 
$('#date1').scroller();.

Original comment by GAMa...@gmail.com on 1 Mar 2011 at 4:36

GoogleCodeExporter commented 8 years ago
Nevermind. With a fresh new morning set of eyes found the problem. I used the 
css file as the src of the script tag. Duh! Thx.

Original comment by GAMa...@gmail.com on 1 Mar 2011 at 4:53

GoogleCodeExporter commented 8 years ago
The demo IS using jquery 1.5 and jq mobile. Try clearing the cache and 
reloading the page.

Original comment by diosla...@gmail.com on 2 Mar 2011 at 12:04