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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:57:58+00:00 2026-06-15T13:57:58+00:00

I have a little jQuery mobile website where I want to visualize some data

  • 0

I have a little jQuery mobile website where I want to visualize some data (I did that with D3). The website has multiple pages (made with <div data-role="page" id="...">...</div>). As I have quite a lot of data to load (json from server), I only want to load what the user currently sees. I.e. if he clicks on page 2 (via Button), I only want to load the data necessary for the page 2 (and not all the data for the other 10 pages). I found a couple of jQuery events (pageshow, etc.) – but all of them are only catched when the mainpage is created the first time. I also thought about just loading it, when the use clicks a button (link), but what if he directly navigates to the page2?

Any suggestions would be really much appreciated. Thank you!

  • 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-15T13:58:00+00:00Added an answer on June 15, 2026 at 1:58 pm

    I found it out:

    $('#pageTag').bind('pageshow', function() {
       $.ajax({
      url: "getData.php"
       }).done(function( data ) {
      alert( "response from server: " + data);
       });
    }
    

    The problem here is, that it get’s called every time the page is loaded. So, if the user navigates back and fourth, it loads every time… I found some hints here, but not the solution for my second problem…

    Any hints will be appreciated very much. thanks.

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

Sidebar

Related Questions

I have modified jquery mobile a little so a collapsible with data-type=horizontal converts into
I have two pages, p1.html and p2.html with jQuery Mobile. There is some links
I have been trying to make this to be a little jQuery plugin that
I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,
I'm making an PhoneGap app using Jquery Mobile, but I have a little problem
I have made an app using jQuery mobile and phoneGap, and read its good
I have a little problem with jquery mobile. always my page is called this
I have a Jquery Mobile controlgroup with two buttons: <div data-role=controlgroup data-type=horizontal class=headerMenu iconposSwitcher>
I am newbie using jquery mobile with php. I have a little problem on
I have written this little jquery, which has a nice hover effect. However, on

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.