Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:40:44+00:00 2026-06-18T08:40:44+00:00

I have a working project with jquery, jquery mobile and requireJS (2.0). Now I

  • 0

I have a working project with jquery, jquery mobile and requireJS (2.0). Now I have a problem with integrating jquery.mobile.iscrollview into the requireJS world.

My requirejs configuration looks like this:

(function (require) {
    "use strict";
    require.config({
        paths:{
            'angular':'../external-libs/angular-1.0.3',
            'jquery':'../external-libs/jquery-1.7.2',
            'jquery.mobile':'../external-libs/jquery.mobile-1.2.0',
            'adapter': '../external-libs/jquery-mobile-angular-adapter-1.2.0',
            'moment': '../external-libs/moment-1.6.2.min',
            'iscroll': '../external-libs/iscroll',
            'iscrollview': '../external-libs/jquery.mobile.iscrollview'
        },
        shim:{
            'angular':{ deps:['jquery'], exports:'angular' },
            'iscroll':{ deps:['jquery'], exports:'iscroll' },
            'iscrollview':{ deps:['jquery.mobile', 'iscroll'], exports:'iscrollview' }
        }
    });

    require([
        "jquery",
        "jquery.mobile",
        "adapter",
        "moment",
        "iscroll",
        "iscrollview",
        "myApp"
    ], function () {
    //
    });
  }(require));

That is working very well, as long as the requireJS optimizer hasn’t run for production mode where only one big JS file should be served to clients. Even when setting the optimizer to don’t optimize anything (optimize: none) so its only concatinating all js files together, its not working.

The error message when loading the site is

Uncaught TypeError: Cannot read property ‘ignoreContentEnabled’ of
undefined

It happens in the file “jquery.mobile.iscrollview.js” and its obvious from the code that the $.mobile object is not yet available at the time of parsing the file, as that is created only after the jquery ready event (I think).

Any idea how to fix this?

Thanks!

Marco

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:40:45+00:00Added an answer on June 18, 2026 at 8:40 am

    Have solved it by myself now by converting jquery.mobile.iscrollview to a AMD module. Like so:

     define(function () {
    
    
        function iScrollView($) {
            //here comes the iscrollview code, but without event handler to pagecreate
        }
    
        jQuery(document).bind("pagecreate", function (e) {
            "use strict";
            iScrollView(jQuery); //this is doing the init stuff that normally happens
                                 //when script is loaded, lines after this are the 
                                 //original event handler
    
            var elements = jQuery(e.target).find(":jqmData(iscroll)");
            elements.iscrollview();
        });
    
        return iScrollView;
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m working on a project that is using knockout.js and jQuery Mobile. I have
I have a django project, but for some reason basic jquery isn't working. <html>
I'm working on a jQuery project right now that will essentially dump a bunch
I have been working on a CodeIgniter project and hav run into an issue
I am working on a project with django and jquery and i have to
I am working with http://plugins.jquery.com/project/pagination and want to have the pagination applied to both
I have a very simple .NET MVC3 project set up using jquery mobile for
I working on the project now which will have massive multilevel menu - to
I'm working on a project that uses both jQuery Mobile and an MVC3 backend.
I am working on Project where I have JQuery 1-Page Horizontal scrolling website using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.