mynamesleo Posted November 17, 2006 Share Posted November 17, 2006 An example would be this youtube videohttp://youtube.com/watch?v=CQO3K8BcyGMUnder comments it says "more stats..."When clicked it sort of opens up the table to show more infoIs that JS or something or can it be done in php?thanks Quote Link to comment Share on other sites More sharing options...
taith Posted November 17, 2006 Share Posted November 17, 2006 anything that is dynamic without reloading the page, is probably done in javascript Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 17, 2006 Share Posted November 17, 2006 Its done by using javascript taking a look at the source code:[code]<a href="#" onclick="toggleFullStats(); return false;"><span id="moreless">more</span> stats...</a>[/code]However when it calculates the states its most probably using AJAX to call a PHP script which then calculates the states and stuff. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted November 17, 2006 Share Posted November 17, 2006 youtube is doing that using javascript + DOM + some Ajax. If you look at their source code, they are running more javascript than anybody! They are running a huge amount of external javascript files, and a huge amount of inline javascript as well! That they can run so much javascript and not have nearly every browser choke on it is a major accomplishment. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.