Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry
Yes, it's a blank image already on the card. g -- photo site: http://gerryorkin.com On Saturday, 12 March 2011 at 8:59 AM, Bob Sneidar wrote: > Are you creating image 1 first before you do this? > > Bob > > > On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > > > Bob, it's working here :) >

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
Are you creating image 1 first before you do this? Bob On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > Bob, it's working here :) > > Gerry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry Orkin
Bob, it's working here :) Gerry -- http://gerryorkin.com On 12/03/2011, at 5:06 AM, Bob Sneidar wrote: > I have this in a button on a card with a field named "Place". > > on mouseUp pMouseBtnNo >breakpoint >put url ("http://maps.google.com/maps/api/staticmap?center="; & fld "place"

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
I have this in a button on a card with a field named "Place". on mouseUp pMouseBtnNo breakpoint put url ("http://maps.google.com/maps/api/staticmap?center="; & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage put someimage into image 1 end mouseUp so

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
I would imagine you have more than you think in the field. It probably contains a space, a tab or a carriage return, or some other invisible character. Try stepping through your code and looking at the contents of the variables. You will have to put the field contents into a variable to do this

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
When I do this, I am getting the HTML for the image, and not the image itself. Therefore the statement "put someImage into image 1" fails. Bob On Mar 11, 2011, at 2:55 AM, Gerry wrote: > This works: > > put url > "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Mike Bonner
Could also use merge for this Could have your default string stored in a property, load it into a global on startup then use merge. global gDefUrl put the defUrl of this stack into gDefUrl This would be in defUrl http://maps.google.com/maps/api/staticmap?center=[[fld "zoom"]]=8&size=512x512&maptype

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry
That's it! I actually jumped out of bed to try that, and found your message suggesting the same thing! Phew. Thanks for your response! Gerry -- photo site: http://gerryorkin.com On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: > Haven't tried, but I always use parentheses with URL, s

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Alex Tweedly
Haven't tried, but I always use parentheses with URL, so try put url ("http://maps.google.com/maps/api/staticmap?center="&; fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage -- Alex. On 11/03/2011 10:55, Gerry wrote: This works: put url "http://maps.google.

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Keith Clarke
...try replacing the "place" with quote place quote ? On 11 Mar 2011, at 10:55, Gerry wrote: > This works: > > put url > "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false"; > into someimage > put someimage into image 1 > > > > But w