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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:04:02+00:00 2026-05-24T02:04:02+00:00

i have a jquery moblie frontend to a website running with django. i have

  • 0

i have a jquery moblie frontend to a website running with django. i have a use case where something may take a long time to complete so i would like the user to see its progress as it happens; in my example it is a sequence of events and whether they are success/fail.

in the backend i have a generator object that spits out this information. it is wrapped around a HttpResponse object in order to fullfil the streaming aspect of the updates. a simple webpage (just html and body tags) demonstrates that it works as expected.

however, jquery mobile (at least by default) likes to load the entire page before displaying it.

i don’t mind showing this output as a dialog.

any ideas?

  • 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-24T02:04:03+00:00Added an answer on May 24, 2026 at 2:04 am

    just to update my experience of this.

    so in the end i spent most of my time scratching my head with jquery mobile. of course if i had rtfm’d beforehand i would have probably had a smaller headache out of it all! basically the ajax page updates were just plain annoying, so the important thing here would be to disable them using rel="external" or data-ajax="false" on my html form – and, because of the way #’s are used, you will also want to add these tags to any pages that load up this page also (otherwise the multipage won’t work properly).

    i then created a multipage jqm page and link to it via my submit button (in my case with data-rel="dialog"), with the second page with an empty iframe; i set the form target to this iframe and voila! it works! the streaming result from the form submission shows up as it should.

    so to sum it up:

    • django HttpResponse is returned, where its argument is a generator object. this enables the streaming nature of the output.
    • create the jqm page:

      <div id="main" data-role="page">
        <div data-role="content">
          <form id="myform" method="post" target="response-iframe" action="***django generator page***" data-ajax="false">
            ...
            <a id="submit-button" href="#secondary" data-rel="dialog" data-role="button" data-theme="e">Submit</a>
            <script>
            $('#submit-button').live( 'click', function(){
                $('#port-form').submit()
              })
            </script>
          </form>
        </div>
      </div>
      
      <div id="secondary" data-role="page">
        <div data-role="content">
          <iframe id="response-iframe"></iframe>
        </div>
      </div>
      

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

Sidebar

Related Questions

I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have trouble integrating jquery mobile for my django project. Especially the log-in functionality
I have a jQuery Mobile website I created for a friend/client of mine. It
I have a jquery-mobile application that is running inside a UIWebView in an iphone
I have an personal profile website at http://www.kaidul.web44.net/ and I have used jquery, flash
I have a jquery mobile website that has simple select. I have successfully tested
I have almost completed an ASP.NET webforms website using jQuery Mobile. I am stuck
I have a mobile site running with jQuery Mobile. I want to have standard
I have jQuery to select all font elements that are children of the element
I have jquery validation code which is working fine in ff but the same

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.