Yelp Reviews Coding, trouble getting it to work
Im trying to implement yelp reviews of a hair salon. This is the code i have managed to scrounge up. Its not working, I implement it this way in and external .js page:

    function showData(data) {
    $.each(data.businesses, function(i,business){
    // extra loop
    var bizContent = ‘<p><img src=”’ + business.rating_img_url + ‘” img=””/><br><a
    href=”’+ business.url +’”>’+ business.review_count + ‘ reviews from Yelp.com</
    a></p>’;
    $(bizContent).appendTo(‘#yelpAVG’);
    $.each(business.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 += ‘<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 += ‘<img src=”http://media3.px.yelpcdn.com/
    static/200911302846157596/i/developers/yelp_logo_50x25.png”></div>’;
    $(content).insertAfter(‘#yelpReviews’);
    });
    });
    }

    $(document).ready(function(){
    // note the use of the "callback" parameter
    writeScriptTag( "http://api.yelp.com/phone_search?”+
    “&phone=”+(408)234-0437+
	“&ywsid=foffGrPrJNm1Vcs0Yv0rOQ”+
	“&limit=3”+
	“&callback=showData”); 
    });

    function writeScriptTag(path) {
    var yelpScript=document.createElement(‘script’);
    yelpScript.type=’text/javascript’;
    yelpScript.src=path;
    $(“body”).append(yelpScript);
    }
i get no error, could some one help me debug this or tell me what Im missing?

Yelp Reviews Coding, trouble getting it to work
===

Im trying to implement yelp reviews of a hair salon. This is the code i have managed to scrounge up. Its not working, I implement it this way in and external .js page:

    function showData(data) {
    $.each(data.businesses, function(i,business){
    // extra loop
    var bizContent = ‘<p><img src=”’ + business.rating_img_url + ‘” img=””/><br><a
    href=”’+ business.url +’”>’+ business.review_count + ‘ reviews from Yelp.com</
    a></p>’;
    $(bizContent).appendTo(‘#yelpAVG’);
    $.each(business.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 += ‘<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 += ‘<img src=”http://media3.px.yelpcdn.com/
    static/200911302846157596/i/developers/yelp_logo_50x25.png”></div>’;
    $(content).insertAfter(‘#yelpReviews’);
    });
    });
    }

    $(document).ready(function(){
    // note the use of the "callback" parameter
    writeScriptTag( "http://api.yelp.com/phone_search?”+
    “&phone=”+(408)234-0437+
	“&ywsid=foffGrPrJNm1Vcs0Yv0rOQ”+
	“&limit=3”+
	“&callback=showData”); 
    });

    function writeScriptTag(path) {
    var yelpScript=document.createElement(‘script’);
    yelpScript.type=’text/javascript’;
    yelpScript.src=path;
    $(“body”).append(yelpScript);
    }
i get no error, could some one help me debug this or tell me what Im missing?
