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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:54:30+00:00 2026-06-10T06:54:30+00:00

I am using: $(‘#mypage’).live(pageinit, function(){ $(‘#mypage’).bind(‘pageshow’, function() { //json gets data here }…etc My

  • 0

I am using:

$('#mypage').live("pageinit", function(){ 

$('#mypage').bind('pageshow', function() {

//json gets data here

}...etc

My problem is that the code is not getting a fresh page, just adding the same content every time I go to the page.

so:

Page load … I go to #mypage and I get:

eg:

A. some content here

then if I load the page again I get 2 instances of the same:

A. some content here
A. some content here

and so on.

I need to it updates everytime but no merge the data.

Update:

Pageshow Code here:

 $('#mypage').bind('pageshow', function() {


    $.getJSON("http://mysite/api/get_data", function(data){
    var output = '';

    $.each(data.mydata, function(index, value){

    output += '<li><a href="#"><img src="'+value.thumbnail_url+'" /><h3>'+value.title+'</h3>'+value.body+'</a></li>';

    });
    $('#my_listview').append(output).listview('refresh');
    }).error(function(args) {
console.log(args);

});

});//end of pageshow

How can I fix this?

  • 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-10T06:54:31+00:00Added an answer on June 10, 2026 at 6:54 am

    The problem is that you always append data to the my_listview element.

    Replace the $('#my_listview').append(output) with $('#my_listview').html(output) and the problem will be fixed.

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

Sidebar

Related Questions

Using Android TelephonyManager an application can obtain the state of data activity over the
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
Using Core Data, I have a fetch request to fetch the minimum of a
I'm creating a web service to transfer json to an iPhone app. I'm using
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
Using the activerecord reload command in my app seems to be using cached data
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using the feof() function, on my output file i have the last value printed
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain

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.