[oXygen-user] Putting an image URL in an image reference

Jeremy H. Griffith
Fri Jan 29 15:46:27 CST 2010


On Fri, 29 Jan 2010 10:59:38 -0800, Steve Matlock <> wrote:

>I'm using Oxygen 10.x
>
>I have image urls that our users use that look like this:
>"
>https://www.mysite.com/image/button?color=orange&OwnerId=JoeSmith&size=large&amp;background=white
>"
>
>When these URLs are opened, they pull in the right button based upon the
>owner, color, size, and background.
>
>If I try to use this image URL as-is in the image tag, I get an error
>because the "&" means the following word is treated as an HTML entity name
>such as &copy or &trade.
>
>So I changed the "&" in the URL to "&amp;"
>
>Now I don't get an error, but I also don't get an image.
>
>Is there a way to modify this URL so it retrieves the right image using the
>syntax I'm using? I can't point to an image without using these parameters.

Try URL escaping instead of an entity.  The ampersand is %26 in that
scheme, the question mark is %3F, and the equals %3D.  It's the hex
value of the character, which you can always get from the Windows
char utility.

HTH!

-- Jeremy H. Griffith, at Omni Systems Inc.
  <>  http://www.omsys.com/



More information about the oXygen-user mailing list