Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-13-2003, 09:49 PM   PM User | #1
TheKid
New to the CF scene

 
Join Date: Jan 2003
Location: England
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
TheKid is an unknown quantity at this point
Unhappy using XML and Javascript

hey

I got a problem trying to display a picture...

i have an xml file which contains data about a shop:-

<?xml version="1.0" encoding="ISO8859-1" ?>
<shop>
<sid>1</sid>
<name>Old Style</name>
<picture>doors.jpg</picture>
<map>blah.jpg</map>
<description> A nice coffee shop bar. </description>
<type>coffee/bar</type>
</shop>

i'm trying to use the picture element as a pointer to the image filename, doors.jpg, which exists in the same directory as the javascript.

But i cant find any way of using the data apart from to directly display on the screen as text. Can XML be used in this way? iif so how? any snippets apreciated.

cheers
TheKid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:02 AM.


Advertisement
Log in to turn off these ads.