Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture is not displayed

Status
Not open for further replies.
You've to change the span tag to img tag.
> <TD><SPAN DATAFLD="TITLE" STYLE="font-style:italic"></SPAN></TD>
[tt]<TD><img DATAFLD="TITLE" /></TD>[/tt]
And of course the TITLE tag contains the url to the image.
 
Hi Tsuji !
I could not understand you very well.
I tried a few things.
But it did not work.
Here is what I did
............
<BOOK>
<COVERIMAGE>untitled.JPG</COVERIMAGE>
<TD><SPAN DATAFLD="TITLE" STYLE="font-style:italic">untitled.JPG</SPAN></TD>
<TD><img DATAFLD="TITLE" />untitled.JPG</TD>
<AUTHOR>Copy of 01-911-5.jpg</AUTHOR>
<BINDING>Copy of 01-911-5.jpg</BINDING>
<PAGES>Copy of 01-911-5.jpg</PAGES>
<PRICE>Copy of 01-911-5.jpg</PRICE>
</BOOK>

............
Thanks
 
Hi
Also how come there is no problem in displaying the picture with this line
<COVERIMAGE>untitled.JPG</COVERIMAGE>
 
I meant this. Originally you have your xml. Keep it the same and do not change anything. In your html page, change the span tag to img tag like what I'd shown.
[tt]
<HTML>
<HEAD>
<TITLE>Book Inventory</TITLE>
</HEAD>
<BODY>
<XML ID="dsoInventory" SRC="zg18_test.xml"></XML>
<H2>Book Inventory</H2>
<TABLE DATASRC="#dsoInventory" BORDER="1" CELLPADDING="5">
<THEAD>
<TH>Cover</TH>
<TH>Title</TH>
<TH>Author</TH>
<TH>Binding</TH>
<TH>Pages</TH>
<TH>Price</TH>
</THEAD>
<TR ALIGN="center">
<TD><IMG DATAFLD="COVERIMAGE"></TD>
[red]<!-- your original page line(s) taken out
<TD><SPAN DATAFLD="TITLE"
STYLE="font-style:italic"></SPAN></TD>
-->[/red]
[blue]<!-- instead adding this line at its place -->
<TD><img DATAFLD="TITLE" /></TD>[/blue]
<TD><SPAN DATAFLD="AUTHOR"></SPAN></TD>
<TD><SPAN DATAFLD="BINDING"></SPAN></TD>
<TD><SPAN DATAFLD="PAGES"></SPAN></TD>
<TD><SPAN DATAFLD="PRICE"></SPAN></TD>
</TR>
</TABLE>
</BODY>
</HTML>
[/tt]
 
And you sure have understood that you've to use your source url instead of mine as the original html.
[tt] <XML ID="dsoInventory" SRC="Inventory Image.xml"></XML>[/tt]
 
Hi Tsuji !
Yes
I tried it already and it works.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top