2009/6/17 Zoran Surname <[email protected]>:
>
> Colin Law wrote:
>> 2009/6/17 Zoran Surname <[email protected]>:
>>>
>>> The link (with &amp; in img tag) works, but as I mentioned before only
>>> if the img tag is not in a partial called by
>>>
>>> <% content_for(:x) do %>
>>>  <%= render :partial => 'y' %>
>>> <% end %>
>>> --
>>
>> Well I just pasted
>> http://maps.google.com/staticmap?center=40.714728,-73.998672&amp;zoom=14&amp;size=512x512&amp;maptype=mobile&amp;markers=40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc&amp;key=MAPS_API_KEY
>> into FF and it didn't work. (404 not found)
>>
>> Colin
>
> Yes, in a browser. But try that in img tag and you will see it works.

True, I should have paid more attention to what you wrote.  So if I
understand correctly you are saying the the html

<img alt="Staticmap?center=40"
src="http://maps.google.com/staticmap?center=40.714728,-73.998672&amp;zoom=14&amp;size=512x512&amp;maptype=mobile&amp;markers=40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc&amp;key=MAPS_API_KEY";
/>

works sometimes but not if generated by a partial?  If so then I would
suggest it is something to do with the html around the img tag rather
than the tag itself.  Have you tried pasting the complete page source
into the html validator at http://validator.w3.org/#validate_by_input

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to