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

  • Home
  • SEARCH
  • 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 6799715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:52:53+00:00 2026-05-26T18:52:53+00:00

I am currently building a game in phonegap using jQuery Mobile frame work. What

  • 0

I am currently building a game in phonegap using jQuery Mobile frame work. What i have ended up with is lots of spaghetti code with one html and several js classes.

I was interested to know if there are any good guides to create a structured jQuery Mobile Application that follows MVC pattern.

I found a good guide for creating a MVC App with Sencha Touch. I was looking for something similar with jQuery Mobile.

  • 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-05-26T18:52:54+00:00Added an answer on May 26, 2026 at 6:52 pm

    I have a rather large application and this is how I have it structured

    css
        -- all css files
    images
        -- all image files
    js
        controller.js -- page events and element actions. Also contains PhoneGap specific methods
        core
            forms.js -- working with forms, saving info
            mobile.js -- basic definitions, AJAX communications
            encrypt.js -- encryption
            global.js   -- helper functions
            storage.js  -- database storage wrapper
        cw
            client.js -- a client object, > 400 lines of js code
            Objects.js -- all other needed objects with <50 lines of js code each
            question.js  -- a question object, > 500 lines of js code
            service.js    -- a service object, > 700 lines of js code
        jq
            jquery-ui.min.js
            jquery.min.js
            jquery.mobile.min.js
            phonegap-1.1.0.js
    
    add_client.html
    clients.html
    client_list.html
    index.html            -- the only file that is structured like a real full html file
    manager.html
    schedule.html
    service.html
    

    aside for my index.html file, all other .html files are stubs. They only contain the <div data-role='page'></div> and other needed html elements that define the page and its intended functionality.

    I develop the app on VS2010, using Chrome as my debugger. When I feel good with my progress, I copy everything over to my mac to a folder in an Eclipse project ( for Android devices ) which is also a linked reference in my xCode project ( for iOS devices ).

    I have been working on this project for about 3-4 months now and once I got past the learning curve of jQM and PhoneGap, have been making very good progress with this structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a tool for my game engine using WPF. The tool is
I'm currently building a game for the iPhone with cocos2d and have the following
I'm currently building a game with cocos2d and I have the following Problem: I
I am currently building a game, where u have controllers which you can move
With reference to this programming game I am currently building. I have a Class
I'm currently in the process of building a game using the MVC pattern. I
With reference to this programming game I am currently building. I am using WPF
I have a fairly simple board game i've been building in C++. Currently, players
I am currently building in Version 3.5 of the .Net framework and I have
I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1)

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.