Re: [nyphp-talk] Can Javascript call a PHP program and read the results?

2011-05-31 Thread Rob Marscher
> > On May 30, 2011, at 2:42 AM, David Roth wrote: > What I'm trying to do is get the county code of the user so that different > links can be presented to them that matches their country. Serving up > different links based on the country code would be handled by Javascript. > I'm not sure why the

Re: [nyphp-talk] Can Javascript call a PHP program and read the results?

2011-05-31 Thread John Campbell
I really doubt google's ip-> location database is broken that badly, but if you do want to do this, I recommend something like the following: javascript: $.getJSON('http://myserver.com/getlocation.php?callback=foobar

Re: [nyphp-talk] Can Javascript call a PHP program and read the results?

2011-05-31 Thread tedd
At 2:42 AM -0400 5/30/11, David Roth wrote: I'm using Tumblr.com for a blog platform for a new website. It has a lot of benefits as a blog, but it also has the restriction of not being able to embed PHP code in the HTML theme template. (Yes, I know, my feelings exactly! :-) ) But Tumblr does

Re: [nyphp-talk] Can Javascript call a PHP program and read the results?

2011-05-31 Thread David Roth
Yes, it's odd, here I am using Verizon FIOS (for the past 4 years) and most any place on the web I go to knows I'm in the US, but the Google JSAPI and examples by others using it I have tried say I'm in Canada. (For those that don't think this is a real issue - Canada is like a whole other