469,922 Members | 2,149 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 developers. It's quick & easy.

Dynamically specifying img src?

Hi everyone,

How do I dynamically specify an image tag's source based on a property in my XML file?

Here's the relevant part of my xml file:

<property-set id="default">
<property name="REPORT_TITLE">My Title</property>
<property name="REPORT_LOGO">C:\myFolder\myLogo.jpg</property>

In the outputted HTML file, im trying to get:

<img src="file:///C:\myFolder\myLogo.jpg"</property>

Note the added "file:///" in the final HTML output!

Any ideas??

Thanks for your time,
Aug 24 '05 #1
1 4384
I know this post is a few years old but i wanted to add a comment in case anyone else comes looking. If you remove "c:\" from the value in your xml, the picture should show.
Jul 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Ron Garret | last post: by
2 posts views Thread by RobG | last post: by
3 posts views Thread by DaveF | last post: by
2 posts views Thread by Eric | last post: by
1 post views Thread by Bijoy Naick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.