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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:06:58+00:00 2026-05-27T14:06:58+00:00

My test page is currently displaying : Test Page which is a good sign

  • 0

My test page is currently displaying :Test Page which is a good sign somethings displaying but its not displaying properly.
I have these jQuery Objects as so:

reviews: Array[3]
 0: Object
    excerpt: "Everything I have had here is insane. SO GOOD. I always get a tuna baguette. Normally, the bread on sandwiches is just what holds it together, but here it..."
    id: "yVT2R7JQ5WRgVXZ-LrnJhQ"
    rating: 5
    rating_image_large_url: "http://media1.ak.yelpcdn.com/static/20101216354709277/img/ico/stars/stars_large_5.png"
    rating_image_small_url: "http://media3.ak.yelpcdn.com/static/201012161949604803/img/ico/stars/stars_small_5.png"
    rating_image_url: "http://media3.ak.yelpcdn.com/static/201012162578611207/img/ico/stars/stars_5.png"
    time_created: 1323827891
    user: Object
    __proto__: Object
1: Object
2: Object

I want it to only show one "44 reviews from Yelp.com" Not 10… and I cant figure out how to properly get in to this object tree and target the right elements. Im using this script to display them with this script but i can’t figure out why it is not displaying properly?

This is the Script:

function showData(data) { 
 $.each(data.name, function(i,business){ 
 // extra loop 
 var bizContent = '<p><img src="' + data.rating_img_url + '" img=""/><br><a href="'+ data.url +'">'+ data.review_count + ' reviews from Yelp.com</a></p>'; 
 $(bizContent).appendTo('#yelpAVG'); 
       $.each(data.reviews, function(i,review){ 
         var content = '<div class="comments-block"><p>Posted by <a href="'+review.user_url+'">' +review.user_name + ' </a> on ' + review.date + 'via <a href="'+review.url+'">Yelp.com</a>'; 
         content += '<img src="' + review.user_photo_url + '" img=""/>'; 
         content += '<p><img src="' + review.rating_img_url + '" img=""/><br>'; 
         content += review.text_excerpt + '</p>'; 
         content += '<p><a href="'+review.url + '">Read the full review</a><br>'; 
         $(content).appendTo('#yelpReviews'); 
          }); 
    }); 
};

Any Help or Direction is APPRECIATED!!!!
Thanks For Reading

  • 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-27T14:06:59+00:00Added an answer on May 27, 2026 at 2:06 pm

    Try moving the bizContent append out of the loop:

    function showData(data) {
        var bizContent = '<p><img src="' + data.rating_img_url + '" img=""/><br><a href="' + data.url + '">' + data.review_count + ' reviews from Yelp.com</a></p>';
        $(bizContent).appendTo('#yelpAVG');
        $.each(data.name, function(i, business) {
             // extra loop 
            $.each(data.reviews, function(i, review) {
                var content = '<div class="comments-block"><p>Posted by <a href="' + review.user_url + '">' + review.user_name + ' </a> on ' + review.date + 'via <a href="' + review.url + '">Yelp.com</a>';
                content += '<img src="' + review.user_photo_url + '" img=""/>';
                content += '<p><img src="' + review.rating_img_url + '" img=""/><br>';
                content += review.text_excerpt + '</p>';
                content += '<p><a href="' + review.url + '">Read the full review</a><br>';
                $(content).appendTo('#yelpReviews');
            });
        });
    };
    

    I’m not sure if you really need the first loop.

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

Sidebar

Related Questions

Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
here is the test page http://www.studioteknik.com/html/test-portfolio.html I got no error, but no hover-slide effect...
I am setting up a simple test page in Python. I only have two
I'm trying to implement IP address validation on my page. I have a test
I currently have a model set up like so: I have a Test class
I am currently working on an asp.net web page with a GridView displaying a
I have an HTML page which contains an Object tag to host an embedded
Currently every page in my current location has a web-url as follows. /test/test In
my PHP page currently doesnot have a mail server, instead of throwing an error,
I currently have my 'WebSocketMain.swf' file sitting in the same directory as 'socket.io.min.js' but

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.