0

Hi,

I created an XML file that will hold the latest news and stories, and trying to display it now in my HTML file using Javscript (I scrapped XSLT, as it altered the CSS styling and alignments compared to the other pages and couldn't work my way around that).

So, my question, is it possible to store an image link in the XML file then use Javascript to bring it up in the HTML page?

I tried a few resources but none have worked.
If you have a few spare moments, please help! :)

Thanks in advance.

3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by ajcoder
0

I understand XML doesn't read binary. So if i convert the image with a Base64 encoder and place that in my XML file. Is there a way I can have javascript (or XML) decode it and display it using javascript (in a table).

But I basically just want to store the link of the image in the XML, and then have Javascript take that link from the XML file and display it on the HTML. Should be pretty straight forward, but have played with it a lot and nothing has worked!

Please help!

Edited by Naggelos: n/a

0

call me via icq 567877710

I don't use ICQ, do you have skype?

0

I need to know how to do this as well. I need to bring in an image using javascript form the xml file that has the url or location of the image. How do I do this?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.