3.2.0

adding a personal image into a grid!

I know that it's possible to add an image to html page via XML and with JAVASCRIPT, but I don't know how to do that ! I set my XML like this :

<?xml version="1.0" encoding="iso-8859-1"?>
<employees xmlns="http://www.foo.com/employees">
<employee id="123456">
<lastname>Bingo</lastname>
<firstname>Edward</firstname>
<phone>(415) 333-0235 </phone>
<username>esmith</username>
<img>{img}src="image.jpg"</img>
</employee>

and the JAVASCRIPT file like this :

<SCRIPT LANGUAGE="JavaScript">


img= new Image()

</SCRIPT>
and I added those two lines to the head of my html file :

<script type="text/javascript" src="img.js"></script>

var dsEmployees = new Spry.Data.XMLDataSet("employees-01.xml", "employees/employee");
</script>

</employees>
Can any body help on that ?
January 29,

This topic is archived.

See also:


Back to support forum