?
Solved

xml spry data set

Posted on 2010-01-03
8
Medium Priority
?
187 Views
Last Modified: 2012-05-08
I am trying out this spry data set thing and i cannot get the images to show it just shows the actual url..am i not writing the xml correctly

here is a snippet of the xml...
<office_inventory>
        <thumb>http://www.thebarnettecompanies/images/officefurnture/sm_rd_woodtable-thumb.png</thumb>
        <quantity>500</quantity>
        <type>Workstations</type>
        <model>Haworth</model>
        <size>N/A</size>
        <image>http://www.thebarnettecompanies/images/officefurnture/sm_rd_woodtable.png</image>
        <description>this is where the description of the unit or model will go. need more details about his item.</description>
    </office_inventory>

Open in new window

0
Comment
Question by:chefkeifer
  • 4
  • 4
8 Comments
 
LVL 11

Expert Comment

by:asafadis
ID: 26165892
I'ts not supposed to show the actual image.  XMLs are just data, it's up to you and your script to interpret it.

You could also try adding the actual IMG tag in the "thumb" and "image" nodes.  Keep in mind that they will have to be HTML encoded though.

HTML Encoder: http://www.opinionatedgeek.com/dotnet/tools/htmlencode/Encode.aspx
<office_inventory>
    <thumb>&lt;img src=&quot;http://www.thebarnettecompanies/images/officefurnture/sm_rd_woodtable-thumb.png&quot; /&gt;</thumb>
    <quantity>500</quantity>
    <TYPE>Workstations</TYPE>
    <model>Haworth</model>
    <size>N/A</size>
    <image>&lt;img src=&quot;http://www.thebarnettecompanies/images/officefurnture/sm_rd_woodtable.png&quot; /&gt;</image>
    <description>this IS WHERE the description of the unit OR model will go. need more details about his item.</description>
</office_inventory>

Open in new window

0
 

Author Comment

by:chefkeifer
ID: 26165952
where in the dataset are you supposed to interpret the xml data...

<div class="MasterDetail">
      <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{thumb}</div>
      </div>
      <div spry:detailregion="ds1" class="DetailContainer">
        <div class="DetailColumn">{quantity}</div>
        <div class="DetailColumn">{TYPE}</div>
        <div class="DetailColumn">{model}</div>
        <div class="DetailColumn">{size}</div>
        <div class="DetailColumn">{image}</div>
        <div class="DetailColumn">{description}</div>
        <div class="DetailColumn">{type}</div>
      </div>
      <br style="clear:both" />
    </div>
0
 
LVL 11

Expert Comment

by:asafadis
ID: 26165997
Assuming you did not follow my second suggestion (which is good because it's one or the other), try this:
<div class="MasterDetail">
    <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><img src="{thumb}" /></div>
    </div>
    <div spry:detailregion="ds1" class="DetailContainer">
        <div class="DetailColumn">{quantity}</div>
        <div class="DetailColumn">{TYPE}</div>
        <div class="DetailColumn">{model}</div>
        <div class="DetailColumn">{size}</div>
        <div class="DetailColumn"><img src="{image}" /></div>
        <div class="DetailColumn">{description}</div>
        <div class="DetailColumn">{type}</div>
    </div>
    <br style="clear:both" />
</div>

Open in new window

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Author Comment

by:chefkeifer
ID: 26166029
i did the first suggestion...but to no avail...

not sure why it does not work
when you do the wizard i made sure that the thumbs and image column were html...but now instead of showing the actual url it now shows nothing when testing...

0
 
LVL 11

Expert Comment

by:asafadis
ID: 26166101
It might be working... you just can't see it because the URLs are wrong (or at least they look wrong).

Is this right?
http://www.thebarnettecompanies/
0
 
LVL 11

Accepted Solution

by:
asafadis earned 2000 total points
ID: 26166215
0
 

Author Comment

by:chefkeifer
ID: 26166329
dude..how stupid am I..maybe the tailgating beers before football today screwed me up...cheers and the url thing is the issue..thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question