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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:19:17+00:00 2026-06-01T20:19:17+00:00

right now i have this code using phonegap and jquerymobile $( ‘#user_detail’ ).live( ‘pageinit’,function(event)

  • 0

right now i have this code using phonegap and jquerymobile

$( '#user_detail' ).live( 'pageinit',function(event) {
    $.ajax({ 
        url: 'http://localhost/get_user.php',
        success: function(txt) {
            $("#details").append(txt);
        }
    });
}

However, when data is updated server side, the changes isn’t reflected. Anyone can point me what is wrong? Is it because of caching as i have tried to set cache as false on ajax.

If the android application is closed and open, data is populated

Edited,

Right now, once phonegap application is loaded, it gets all the data onto #details however when there is changes to on get_user.php the data is not reflected and i have to close the application and reopen back in android for the changes to be updated.

What should i do in order for it to automatically populated as in if I move to other page and forth back and the data should be there.

Thanks.

  • 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-01T20:19:17+00:00Added an answer on June 1, 2026 at 8:19 pm

    Your question is quite confusing, I can’t able to know whether you data is not reflected or your code changes in get_user.php is not reflected.

    But I guess problem is a event you have used. use pageshow event instead of pageinit, I think it will resolve your issue.

    $( '#user_detail' ).live( 'pageshow',function(event) {
        $.ajax({ 
            url: 'http://localhost/get_user.php',
            success: function(txt) {
                $("#details").append(txt);
            }
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

right now, I have this code: var source = $('p').filter(function(){ return $(this).text().length > 300;})
I have this code right now to get the row value from jquery grid..
Right now, I have this code where $obj_arr maybe contain array and an object.
Hi i have this code right now on my website... <script src=http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js type=text/javascript charset=utf-8></script>
So right now I have this code that generates random letters in set increments
As of right now I'm using this code below to download files to get
i have this code : $('body').live('mousemove mouseover', function () { $(#parent_task).multiselect({ selectedList: 4, click:
right now i m using this code for playing youtube videos <?php // Replace
Right now I have this Groovy code to run a series of tasks: CountDownLatch
Right now I have this SQL query which is valid but always times out:

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.