We are working on a dynamic dashboard which is very similar to twitter's settings panel under our twitter account.As the dashboard has many controls,there is lot of content populated dynamically.So currently this is how we do it.
This is one the menu in my left panel:
<a href="javascript:void(0);" onclick="fnGetFiles();">Files</a>
This is the function called which gets the HTML:
function fnGetFiles(){
$('#mainDashboard').html('<div class="rightContainer"><div class="tabLoader"></div></div><div class="clear"></div>');
$.get(USER_DASHBOARD+'file_share/files.php',function(data){
$('#mainDashboard').html(data);
});
So we basically attach(append) directly the HTML.But I just went through the twitter dashboard
First is the URL handling they do for navigating between the different menus on left(Added image for reference).It just changes on the fly and content is loaded.On inspecting the code I noticed they send html as JSON strings.
I am not exactly sure but does this enhance the performance in any way?Mine is a bit poor on the production and would like to know exactly what frameworks I can utilize to achieve something similar to this(Also,I face AJAX conflicting issues between scripts).I am using PHP,jquery for my application.
I tried to get info from dev.twitter.com,and blog but couldn't find any specific info on this.
Please if possible try to guide me and throw some light on it.
Thank you for your time.