as per your article - http://support.appharbor.com/kb/getting-started/information-about-o...,
how would i capture the ip address in JS? currently using a call to yqlgeo as a fallback if HTML5 geolocation is not available:
yqlgeo.get('visitor', normalize_yql_response);
Cheers, Frank.
#1 Posted by friism Support staff on 28 Mar, 2011 05:56 AM
You can pass the IP obtained from
Request.ServerVariables["X-Forwarded-For"]to your view and in the view use that IP to do the YQL query. I don't think there's a good way to get the client IP from javascript.friism closed this discussion on 28 Mar, 2011 05:56 AM.