How do I know this function is return empty..and how do I show it??

Posted by mathew on Stack Overflow See other posts from Stack Overflow or by mathew
Published on 2010-05-30T14:38:48Z Indexed on 2010/06/01 5:33 UTC
Read the original article Hit count: 194

Filed under:
|

Hi I am not familiar with javascripts...so cant understand how do I check which variable return empty?? if tweet is there then it fill with tweets but if not then it wont show up. but I want know which varible is fills the container and if I want show "there is no tweets for you" then where will I add that??

$(document).ready(function() {
    $.twtter.start({
        searchType:"searchWord", 
        searchObject:"google", 
        lang:"en", 
        live:"live-180", 
        placeHolder:"twitterdiv", 
        loadMSG: "Loading messages...", 
        imgName: "loader.gif", 
        total: 6, 
        readMore: "Read it on Twitter", 
        nameUser:"image", 
        openExternalLinks:"newWindow", 

    });
    $("#twitSearch").submit(function(){

        $.twtter.start({

            searchType:"searchWord",

            searchObject:$(".twitSearch").val(),
            live:"live-180", 

        });
                return false;

    });


})

the result is displayed in

<div id="twitterdiv"></div>

THanks

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript