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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:21:00+00:00 2026-06-02T03:21:00+00:00

After spending one week testing, testing and testing again codes, I must admit a

  • 0

After spending one week testing, testing and testing again codes, I must admit a have reached my limits…

I am trying to convert a web site (sql-php) to a mobile one, using the jquery framework. My main problem is that I have limited knowledge with javascript… but studied a lot those last 168 hours…

Below is the part of the javascript code which is suppose to populate the ul (id = list-area) section of my html code.

This code is working… only if put the alert(list); line! Should I remove this part, the “list” is not added to the menu.

I can’t understand why this alert is needed… There must be something wrong about the way I try to refresh the page. Your help would be really appreciated.

Thanks

$(function() {
    list = "";
    $.getJSON("http://www.sogival.com/jquery-fetch.php", // le fichier qui recevera la requête
    {
        "page": "area",
        "page_id": 0,
        "lang": "fr"
    }, // les paramètres


    function(data) { // la fonction qui traitera l'objet reçu
        for (var i = 0; i < data.items.length; i++) {
            // alert(data.items[i].name);
            list += '<li><a href="m-area.html">';
            list += data.items[i].name;
            list += '<span class="ui-li-count">';
            list += data.items[i].total;
            list += '</span></a></li>';
        }
    });
    alert(list);
    $("ul#list-area").append(list).listview("refresh");
});​
  • 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-02T03:21:02+00:00Added an answer on June 2, 2026 at 3:21 am

    Put this code:

    $("ul#list-area").append(list).listview("refresh");
    

    right after your for loop.

    EDIT:

    Also. var list = ''

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

Sidebar

Related Questions

OK, So I have recently moved into the world of Web development after spending
I've been having problems and, after spending a week trying out all kinds of
After spending a good 3 to 4 hours on google trying to find any
This is my first time using IB, but after spending a one or two
After spending about 6-8 hours trying to digest the Manacher's algorithm, I am ready
After spending three weeks learning Objective-C and Cocoa programming for my work, I've been
After spending a miserable month with MySQL/.NET/EntityFramework, my findings: Support for Entity Framework is
After spending some time wireframing my ideas, I want to start building my rails
How to migrate to *nix platform after spending more than 10 years on windows?
I am trying to receive a json object back from php after sending data

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.