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 8913971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:36:03+00:00 2026-06-15T04:36:03+00:00

I have an MVC4 web app that needs 12 jQuery Mobile pages. Welcome Login

  • 0

I have an MVC4 web app that needs 12 jQuery Mobile pages.

  1. Welcome
  2. Login

and then many others.

I want to add one page at time if the user request it,

  1. What is the best approach to add pages dynamically to my project?

  2. Where is the appropriate site to include the page scripts (that pages added dynamically)?

  3. What exactly mean data-ajax=”false” if it was included in a Html.ActionLink()?

At this time I have almost 90% of my app, but i’m having serious problems referencing some pages, some times all pages included in a view don´t render or don´t run the scripts.

  • 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-15T04:36:05+00:00Added an answer on June 15, 2026 at 4:36 am

    I think you have the following options in organising JQuery Mobile pages:

    (a) one HTML file with all the pages (divs with class=”page”)

    This is the simplest approach and guaranteed to work however the file might become too large for a big project

    (b) one main HTML file linking to child HTML files

    From a UI standpoint, JQM by default uses “AJAX mode ” when loading a child page, which makes transition as fluid as option (a). The drawback of this is that child pages are not fully loaded, ie, none of its includes or scripts are executed. On load, JQM parses the child page for the first div with class=”page”, extracts the div and adds it to the current DOM. Note that a child page cannot have more than one “pages” since only the first one will be loaded.

    To do option (b) correctly, you could:

    1. include all CSS, JS and run all init scripts in the main page or

    2. Specify “data-ajax=false” or “rel=external” on your links. This forces JQM to fully reload the linked/child page, however with this approach you lose the fluid transition.

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

Sidebar

Related Questions

I have a custom ViewEngine that I am using with my MVC4 web app.
I have a ASP.NET MVC4 web api that uses fluent NHibernate, but when I
I have a MVC4 application that is calling Amazon Web Services. The amazon service
I'm using MVC4 forms auth. My mobile web app runs in full screen UIwebview
I have installed MVC4 and an MVC3 app that I have is now causing
I have a web site built using ASP.NET MVC4 that I can publish fine
I am running Win 7, IIS 7.0, VS2012 I have created asp.mvc4 web app
I have a custom Principal/Identity for my ASP.NET MVC4 web app. I have also
I have several Razor pages in an MVC4 project that follow a general layout
I have an MVC4 web application In setting it up on IIS7.5 I added

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.