Skip to content

Instantly share code, notes, and snippets.

View bnvk's full-sized avatar

Warm Ashes bnvk

  • Earth
View GitHub Profile
$('.vote_up').live('click', function(eve) {
eve.preventDefault();
var request = $(this).attr('id');
$.get('http://localhost:8888/oncurr.com/build/vote_up/'+request, function(html) {
if(parseFloat(html)) {
$('#vote_'+request).html('+'+html+'<img src=\"http://localhost:8888/oncurr.com/images/graphics/thumbs_up.png\" border\"0\" />');
}else{
$('#vote_'+request).html(html);
}
});
echo implode($geo_data);
67.160.143.219USUnited StatesOregonPortland45.5184-122.655-8-8-7
echo print_r($geo_data);
Array ( [ip] => 67.160.143.219 [country_code] =>
SimpleXMLElement Object ( [0] => US ) [country_name] =>
<div id="lightbox" style="display: none">
<div id="lightbox-header"><img src="../images/lightbox_header.jpg" border="0" /></div>
<div class="authorize">
<div class="facebook-column">
Share on Facebook
<%= fb_connect_javascript_tag %>
<%= init_fb_connect "XFBML"%>
<% js = update_page {|page| page.redirect_to fb_status_path}%>
<%= fb_login_button js%>
</div>