javascript - Create effect similar to Twitter's retweet? -
i'm sorry didn't provide specifics - i'm writing twitter application our school project, , i'm kinda stuck - how create pop on twitter's retweet function? here's initial thoughts far:
1.the retweet div , blackout separate html page
2.the retweet content directly copied tweet retweet clicked (but how? should fetched php? or directly "copied" tweet jquery? if so, pointers please?)
3.and have no idea how page appears on top of page. i'm thinking of like
$("#retweet").on('click', function() { // loads page on top of page? });
1.how "load" page on top without reloading page?
2.is ajax involved? (sorry, i'm not familiar.)
3.how pass variables between page , popup page? (this referring in question 2 - if retweeted box reconstruction based on tweet, how fetched?)
i'd appreciate if can point me in right direction.
thanks!
why not use http://bootboxjs.com library? try out, seems similar tweeter retweet. take time read doc find out how install , use it, should pretty straightforward.
here example:
$("#retweet").on('click', function() { bootbox.confirm("retweet this?" + $("#idoftexttoretweet").text(), function(result) { if(result) { //perform retweet } }); });
i hope helps !
Comments
Post a Comment