var url = document.location.href; var index = 0; var hashLocation = url.indexOf("#"); if (hashLocation > 0){//If # exists index = url.substring(hashLocation + 3);//Get url string after #i= url = url.substring(0, url.indexOf("#"));//Get url string before # } if (index > 0){//If index(string after #i=) has a valueindex = parseInt(index); if (isNaN(index) || index ) index = ; //Ajax call to method in controller to update image based on value after # in url $.ajax({type : 'POST', data : {'urlName': '','index': index-1}, url : '/media/photo', success : function(data,textStatus){jQuery('#photo-item').html(data);UpdateURL(index-1);}, error : function(XMLHttpRequest,textStatus,errorThrown){}}); } }//Function gets called when navigation arrows are clicked in PhotoGalleries//to set the hash-index value in URL.function UpdateURL(index){var url = document.location.href;if (url.indexOf("#") > 0){url = url.substring(0, url.indexOf("#"));}if (index Canadian fans are insane, its freezing outside and there is like 2 thousand people waiting outside. I'm lovin it. -Miguel Angel TorresI'm in Edmonton Canada at the moment, it's -25, but it doesn't feel any colder than england at the moment. -Michael Bisping I just bought myself a scarf. what a dork... -Mac Danzigslept like a rock but this 21 month old doesnt seem to get the concept of "we're all sleeping in tomorrow morning". Grrrrrr -Matt MitrioneI just posted the link to the official UFC pre fight press conference where I was looking especially handsome today -Sean McCorkle If a man fools me once, shame on him. If he fools me twice, shame on me. If he fools me 3 times WACK him -NY Proverbs -Phil Baroni You know what I love about being an adult? Buying my own mayo. I can use the tuna fork in it, and no one can say anything, cause I'm a man. -Amir SadollahMack’s Menacing Mojo I didn't think the merger was that big of a deal, but watching the featherweights do it in the UFC cage got my mojo going. BlkZombie -Mackens SemerzierYou know when I will belive David Blaine or chris angel are magic is when I meet them put them in my choke and they get out. Bwhahhahha -Cody McKenzie document.write(unescape("%3Cscript src='" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js' %3E%3C/script%3E")); COMSCORE.beacon({ c1:2, c2:6035763, c3:"", c4:"", c5:"", c6:"", c15:"" });
No comments:
Post a Comment