How to overcome javascript problems?
<p>I am using Javascript, most of the stuffs are working only by javascript.
Sometimes the javascript functions are not called properly.</p>

<p>Can someone give fair idea about how to use use javascript,where to use javascript,what situation we need to use javascript etc...</p>

<p>One Scenario:-</p>

<pre><code>$("#dialog").bgiframe({src:"about:blank"});
        CreateExternalLinks();
        if(jsonData._items.length&gt;0)
            FillData(jsonData);
        HideDIV();
        HandleRating();
        //FindDefaultSearch();    
        SetPageStyle();    
        //HandleDefaultVideo();    
        HideInvite();    
        DialogAction("close");    
        SetSearchBoxTitle();    
        LoadWaitingDialog();    
        SetStyleForNewVideos();    
        $("div.home-video-rating").live("mouseout",function(){
            SetRating($currentRate);
         });
        SetPaging();
        if($("#divTitle").html().length==0)
        FindDefaultVideo();
}
</code></pre>

<p>These are functions that should call once the page is loaded on the client side.</p>

<p>Sometimes LoadWaitingDialog() is not called. I don't know the reason?</p>
