Spry XML question

can spry read in XML as a string? I have an xml page
generated by a coldfusion query (.cfm) The page parses correctly as
an XML file, but when spry reads it in, it does not read it as XML.
I can save the .cfm results (view source) as an XML file and it
views perfectly through spry. Wondering if there is a way to do
this with the original cfm file. NOTE: the example linked
here
does not work

I use CF to generate XML all the time.
You have to make sure you set the content-type to XML and
make sure to remove whitespace:
http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
But to answer your questions: yes, Spry can read XML strings:
http://labs.adobe.com/technologies/spry/samples/data_region/XMLStringSample.html
Hope this helps.
Don

Similar Messages

  • Spry XML Dataset Video Gallery Question

    Hi there,
    We are trying to create a video gallery using a Spry XML Dataset.
    It's currently working in FF and Safari, but not working in IE6-7 or Opera.
    Here is a link... http://www.rightsidedesign.com.au/test/tv.html
    IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
    The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
    Can anyone give us a hint as to what we might be doing wrong??
    We followed the tutorial at...   http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
    and replaced the image with an FLV player.
    Thanks for your help in advance!

    Hi there,
    We are trying to create a video gallery using a Spry XML Dataset.
    It's currently working in FF and Safari, but not working in IE6-7 or Opera.
    Here is a link... http://www.rightsidedesign.com.au/test/tv.html
    IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
    The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
    Can anyone give us a hint as to what we might be doing wrong??
    We followed the tutorial at...   http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
    and replaced the image with an FLV player.
    Thanks for your help in advance!

  • Spry xml data set, accessing specific rows

    Hello. I've been trying to build a website using Spry XML
    Data Sets, and while I've accomplished my goals for now, I don't
    think the solution I came up with is the best.
    The website consists of several areas that show projects.
    Each project has several fields that are to be filled with content
    retrieved from the xml files, but the projects are not all exactly
    alike and some have specific fields that others don't require.
    All the info is available in several languages, so for now
    I've created an xml file for each one. An xml file could be like
    Code Part1. (Why I can't add several code snippets along the post
    baffles me. I mean, I can't, right?)
    This dataset, for simplicity purposes, is not dependent on
    the language (Code Part2).
    And then there are the content areas (Code Part3).
    So as you see, each project has its own structure. This makes
    using spry:repeat a not very effective method for filling in all
    the content. Ideally I should be able to access each row in the
    dataset through some sort of value, like id, or one of its
    children's values. The ds_RowID depends on the row order, so unless
    there's another way to use it, it doesn't solve my problem.
    Here's what I've come up with (Code Part4).
    This works (in FF3 OSX, at least), although there are some
    other problems that might make it necessary to create a spry:region
    (or at least use spry:repeat) for each field. Anyway, it sounds
    silly and wasteful to go through every row of the dataset everytime
    for each of the fields that need to be filled.
    My hope is that I'm ignorant of some much better method of
    achieving my goals, something more direct and elegant.
    Can anyone help me out with this? Thank you very much in
    advance.

    Hi there
    You are indeed absolutely correct a spry region should have been shown, my appologise for that, the code is wrapped in a standard spry region.
    That being said i have used a work around in the SQL SELECT statement of the xmlExportObj, Recordset to find the information required without having to do any IF, ELSE on the page.
    Many thanks for your reply and for pointing out my mistake in how I had presented my question.
    My next question is to follow seperately
    Regards
    Ray

  • Looking for more samples of spry xml data in use

    I was curious if there's a resource out there that shows more
    samples of using the spry xml data widget. Almost like a template
    or sample gallery. Am I dreaming?

    Look
    Here

  • How to show an entry with specific ID from spry xml dataset?

    I have a spry xml dataset, can I show only one record
    specified by, say, unique ID?

    yeah, I first posted this one, then found out that my other
    message was replied:)

  • Spry xml dataset / IE / Phatfusion Multibox

    I try to use spry xml data set with phatfusion multibox.
    I use multibox script to open a PHP page with query string
    insides spry:region.
    It has problem on this application on IE either 6 and 7. But
    works fine in Firefox
    The requested php page just open in a new window.
    I tested to relocate the dummy scripts for multibox outsides
    spry:region, the script do works.
    How to solve the problem ! Help please

    Hi bsyyu,
    First, you might want to validate your markup because I see
    that you have several unclosed tags and a missing title tag.
    To solve the problem, you'll have to create your multibox
    object inside an observer for the region.
    Replace your code inside the region:
    <script
    type="text/javascript">
    var ben = {};
    window.addEvent('domready', function(){
    ben = new MultiBox('mb', {descClassName: 'multiBoxDesc'});
    </script>
    with this code, put in a script in the page head:
    var obs = new Object;
    obs.onPostUpdate = function(notifier, data){
    var ben = new MultiBox('mb', {descClassName:
    'multiBoxDesc'});
    Spry.Data.Region.addObserver('events', obs);
    --Florin TUDOR

  • Error specifying spry xml data source?

    I have been using Dreamweaver's Spry XML Data Sets without any trouble until I added the calendar YUI widget. After that I get an error message "no expected entity name for reference (65, 23)". Also nothing shows in the Bindings Panel. I have a Mac OS X, which I find very frustrating after being on a PC for 15 years. I can never find anything I am looking for in the help section.
    Here is what I have tried so far that has not worked.
    1. Removed the YUI extension
    2. Deleted the ******.dat file from the configuration folder in the library user folder
    3. Renamed the configuration folder in the library user folder
    4. Copied the configuration library folder from my functioning laptop
    5. Uninstalled and reinstalled Dreamweaver CS4
    I can code everything by hand, but that is very time consuming and makes this software a virtual paper weight.
    I would appreciate any advise that could be offered.

    The preferences files for Mac programs is in your user account folder/Library/Preferences.  The files that DW and other applications create end in .plist.  These files are creating by Mac OS for many different applications.  If you delete one, the OS will re-create another preferences file upon the next opening of the application.
    Also the other files that DW saves during a re-install are saved only if you go through the uninstall process and enable that option.  This is the same for the Windows version.  Sometimes if there are strange errors you can contact Adobe support for general information.
    If not and you need to do a re-install I would recommend de-activating first.  Then running the adobe CS# clean tool.  Just type that phrase into Google and you will find it as the top result for CS3 or CS4.
    Adobe - Adobe CS3Clean Script
    Adobe - Adobe CS4 Clean Script
    Those do more than just remove the program.  They will remove all components in the applications folder and shared in the user library and system library.  That is the only true way to do a re-install as far as I know.  But you will need to de-activate before doing this because it will erase every file and all serial numbers from all Adobe programs with this tool.

  • Including HTML tags in Spry XML data sets

    How does one add HTML tags to Spry XML data sets so that the displayed items include that markup?
    For example, I might want to bold-face words within XML data items. I have tried adding the markup, but instead of seeing, for example:
    This is bold face
    in the Spry table, I see:
    This is <b>bold</b> face
    I have tried using CDATA elements in the XML to no avail.

    Set the data type for the column as per
    var ds1 = new Spry.Data.XMLDataSet("myData.xml", "rows/row");
    ds1.setColumnType("myColumn", "html");
    Gramps

  • Spry xml datasets can't recognise images

    Been trying all day to load a spry xml dataset with image
    information into a table using the wizard. problem is, you can't
    tell the wizard that the data in one of the columns is the path to
    an image, so it sees it as a string and just sticks the path in the
    table. I tried putting it in as html rather than string but really
    I am firing into the dark here!
    What have I missed?

    thanks for the reply. I found the issue in the path string,
    along with having to edit the html tag directly, which I wasn't
    expecting, being used to DW doing it all for me! I found a lot of
    the answer here:
    http://www.csupomona.edu/~llsoe/42101/css/sprytables.htm
    At least it stopped me being scared of html!

  • SPRY XML Dataset Get Schema

    Currently when I try and add a SPRY XML Dataset and hit the Get Schema button I get "Unable to locate or parse the XML Source (-1,-1). I created the XML from the Export recordset to XML tool in the Developer Toolbox. I can't seem to figure out what I am missing. Anyone else having this problem as well. It use to work then I think my system did some update from Adobe and since has stopped working. Any assistance is greatly appreciated. Thanks.

    Hello,
    The error usually means that the XML source that you choose within Spry XML Data Set interface is not valid.
    So you should check the XML source to see if it returns a valid XML.
    Regards,
    Ionut

  • Designing a 'sample time feed' for Spry XML Data Set

    Hi!
    Often when I call a Spry XML Data Set I find I can't get the
    schema. If offers you the option to design a sample time feed but
    doesn't give you enough info to be able to even guess how to do
    this.
    Is the answer in modifying that php line somehow?
    Any guidance would be much appreciated!
    Mike

    The idea for Design Time XML is that you can use a static XML
    file instead of a dynamic source, in case you don't have access to
    the real data. You can use the Design Time XML to make the query
    and design the page.
    This gives you access to the data references for designing
    the page.
    If you are getting schema errors, the numbers that the dialog
    shows is the line number and character number (1,1)
    You should be able to see the XML directly in the browser. If
    you can, then DW should be able to consume it.

  • Where to ask XML-questions

    Hello,
    when I have a question about XML, where do I ask?
    XML DB issues related to XML DB
    XML  space for the following subspaces
    General XML  Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
    PL/SQL XML Programming  PL/SQL programming using XDK and related management issues inside Oracle database server. Any question for XML DB functionality, please post your question in Products -> Database-> XML DB.
    XQuery Discussion of Oracle XQuery Technology Preview, W3C XQuery specifications, and JSR 225: XQuery API for Java (XQJ) issues
    I think I now have an idea (not that I'm sure about it) where my question will fit best. Now, because there is an explanation of the scope of the space, I don't remember something like this in the old forum. Nevertheless it might be confusing for a new member or one that lacks a certain knowledge about the subtleties:
    One step forward everyone who understands the explanation for the PL/SQL XML Programming space!
    When I have a question about XQuery, how can I decide whether XQuery is correct or General XML?
    Which questions qualify for XML DB and not for any of the others.
    We all know that many users are not able to see that SQL questions don't belong into the SQL Developer space, how can we expect that they will find the "correct" forum for XML questions? In the end they will end up in the SQL and PL/SQL space anyhow :-)
    Regards
    Marcus

    My $0.02.
    As I recall, the explanation for each forum was at the entry level for each forum and not displayed within the forum itself.
    The PL/SQL XML Programming space refers to the Oracle XML Developer Kit.  It is maintained by a different team than the XMLDB so the need for a separate space for it makes sense.  That said, what it covers is also part General XML and XQuery if you dig into what you can do in the XDK.
    Some questions that would qualify for the XML DB space.
    Anything related to schema registration or downstream of schema registration.  Such as querying/performance/indexes/etc.
    Issues parsing XML via using XMLTable (or XQuery, such as the new XQuery update added in 11.2.0.3) (Yes that can conflict)
    Storage of data in XMLType columns
    I to have always been a bit unclear on the exact division between groups in this XML space.  I see the XQuery space as being a subset of the General XML space.  I watch all three forums, as they are normally low volume and you never know where a question will pop up.  As you have seen, questions often end up in the wrong forum and often General XML gets an influx of questions that should go into the Business Intelligence space as well.  There is no good way right now to start a generic post and let the system suggest forums that the post could go into, based on content or software involved.  That would be a nice touch for the future.

  • Spry, XML & MySQL

    I have off and on looked at DV CS3. This is my first real
    serious try. I want to setup “add a new user” from HTML
    page with backend data located in MySQL.
    The user data includes name, address, etc.
    I understand it can be done with SPRY, XML, Java/JavaScripts
    & MySQL. I am hoping that someone direct me to a tutorial so I
    can get started.
    Thanks.
    Sam

    I would post to the Spry Forum, it is usually very helpful:
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
    Here are some other links that may be helpful:
    http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WS4D63E055-8F82-4401-93F7-BBA17 BC0249D.html
    http://www.adobe.com/devnet/spry/
    http://labs.adobe.com/technologies/spry/samples/

  • Spry xml dataset driven page and search engines

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    I'm asking because i plan to rewrite our products' static
    pages using spry xml dataset, and i'd like to ensure crawlers see
    the products. I haven't looked much, yet, into this pry capability,
    but the products page will most probably be paginated (not sure if
    possible in this capability) since there are hundreds of products.
    currently, our static html pages generated good conversions
    into purchases from google and yahoo searches.
    It would be great if there is a real-life website that uses
    this spry capability and has their pages appear in those search
    engines.
    thanks.

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    search bot do not read / understand javascript. So they would
    not index it.
    Its a commen point of failure of the ajax techniques, Spry
    has a handy solution for it (spry:content) wich will allow u to
    overwrite 'content' if javascript is enabled so and bots will just
    see the static page.

  • Spry Repeat/XML question

    I am in desperate need of help.
    Here is the path to my html file.
    http://www.3hounddesign.com/WoodsWoods/gallery/index.html
    When you look at it, you see the navigation list on the left
    (Adobe, SF Symphony, Fiery, etc). This list corresponds to the
    images that you see. However some of the navigation items (Adobe,
    Apple, Levi Strauss) have more than one image associated with them.
    I want to be able to use the arrows at the bottom of the page to
    click through to the second image, but not have it show up on the
    navigation list. For example, I only want Adobe to show up once on
    the navigation list, even though I have 2 different adobe photos,
    and thus have created 2 different XML entries for Adobe.
    http://www.3hounddesign.com/WoodsWoods/gallery/galleries/woods/photos.xml
    The first entry has the Adobe title, while I left the second
    one blank. However this leaves a blank space on the navigation
    list.
    Unfortunately I know very little about javascript and am just
    learning about this spry stuff and am very confused, and therefore
    created this stuff by altering the adobe gallery demo
    I also have a version I created by altering the adobe
    products demo (
    http://www.3hounddesign.com/Paul_Woods/identity.html#)
    However that has problems of its own, so I would rather stick
    with my alteration of the gallery demo.
    So basically my question...Is there any way that I can have
    the navigation only show one entry for Adobe (and Apple and Levi)
    yet still have two images there?
    Sadly, I am desperate need of an answer ASAP, as a current
    job I am working on depends on it, and I don’t want to have
    to resort to iframes.
    Please please someone help me!

    Hi,
    I looked over you code and I noticed that you have the image
    src added on the left side.
    You have this <img
    src="galleries/{dsGalleries::@base}{dsGallery::thumbnail/@base}{@thumbpath}"
    alt="{@thumbpath}" name="tn{ds_RowID}" width="89" height="15"
    id="tn{ds_RowID}" style="left: -77px; right: 0px;" />
    You don't need to have the image added on the left side,
    because you want there only the title (Adobe, SF Symphony...)
    So you should replace the img with a div for example:
    <div style="width:89px; height:15px;left: -77px; right:
    0px;" id="tn{ds_RowID}" >{@thumbpath}</div>
    The reason why you have an empty space after Adobe item is
    that on you xml you have an empty alt attribute.
    To display only the thumbpaths that are not empty you can add
    an spry:if condition.
    So the above div becomes:
    <div style="width:89px; height:15px;left: -77px; right:
    0px;" id="tn{ds_RowID}" spry:if="{@thumbpath}" != ""
    >{@thumbpath}</div>
    This says if thumbpath is not empty display it.
    I aslo load you page in IE and I noticed that the left menu
    is not displayed.
    Diana

Maybe you are looking for

  • Converting the String

    HI all, I have one problem.. that is .. String str = ",check,the,values"; ( String length may change) String may be like this also str = "check,the,values"; str = "check,the,values,"; I want the string like: ".check.the.values" means just replacing t

  • HT1222 How to update i pad 2

    Hi Plz help me how to update i pad 2?

  • USB 3.0 - Enough juice to re-charge my 14-b173cl?

    Hello! I've been contemplating the purchase of a secondary power supply and then it occured to me that maybe I could purchase a USB 3.0 setup instead. My reasoning is that the Targus Docking stations only plug in the 3.0 (or so I guess...I don't have

  • Shake $499? How?????!!!!!!! and Why???!!!!!!!!

    Would anyone here know why Shake went down from $3000 to $499? It sounds craZY! Is this a good program for people using the HVX200 Panasonic, shooting at 720 24p HD, because I am buying it! Thanks!

  • I'm not able to sync my Iphone 4s with Itunes.

    After several steps (Initializing Sync..Preparing syng etc)an error message "impossible to sync your Iphone because session isn't correctly ended". I restored Iphone twice, changed usb but nothing's happened.. Someone knows how to make it work again?