Format URL for Spry XML Data Set
I've searched and searched the forums to no avail, but please
link me to the solution if already posted.
I want to create a Spry data set where one of the fields is
simply an URL such as:
<name><a href="
http://www.aim-us.org/">African
Inland Mission</a></name>
I want the name to appear in the list as a hyperlink. I'd
sincerely appreciate anyone straightening me out on the correct XML
format to accomplish this. Thanks!
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.
Similar Messages
-
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!
MikeThe 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. -
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 -
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 data set and dynamic post variables
Hi,
I am trying to create an XML data set that has dynamic post
variables.
Everytime something is pressed on the page a variable changes
and I then want to reload the XML data set using the new variable.
I know I can just pull in an XML with all possible variables
and filter client side but this would make it way too large.
Does anyone know what I may need to do.
I tried this:
var myVar = 0;
var dss = new Spry.Data.XMLDataSet (
'../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
"true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
"descending", useCache: false, loadInterval: 10000 } );
onclick="myVar=1";
But the script doesn't understand the post variables sent (it
does when I remove the . myVar part and put in a static value). I
think it isn't sending that dynamic variable with the post
variables.
Any ideas anyone?
ThanksWell I had it working when I stripped back everything and
just had the dss data set and a single onclick function, but now
that I put it back together it hash foobared again.
Here are the relevant bits of code that I've changed.
The function to change server id:
//function to run when changing the server id
function changeServer ( sid ) {
//set the url to use the current server id
dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
'POST' , postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
//force a reload of the server data
dss.loadData();
The inital load of the data set
var dss = new Spry.Data.XMLDataSet (
'../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
"true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
"descending", useCache: false, loadInterval: 10000 } );
And the part that changes the server id
<td align="left" style="cursor:default; width:174px;"
onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
I checked that the function is receiving the correct server
id and I even tried hard coding the cid variable to 2 in the change
function but it still wasn't changing on the server side.
Any ideas?
Thanks -
I have made a basic XML file that gets written to from the
inputs of a form. All the information is written in the XML file
correctly, but when the data is inserted, the new data doesnt
display in the Spry table (evan with DW closed). I have a page for
the form and a page to display All the data. The only way i can get
the table to show the updated data is to close the browser and
reopen. After i insert the data to the file i get the "File has
been modified outside of Dreamweaver, Reload it" prompt. Is there a
setting i should change? My XML file is in the root folder of my
site on the local machine, i am using Vista Ultimate and
ASP.Well I had it working when I stripped back everything and
just had the dss data set and a single onclick function, but now
that I put it back together it hash foobared again.
Here are the relevant bits of code that I've changed.
The function to change server id:
//function to run when changing the server id
function changeServer ( sid ) {
//set the url to use the current server id
dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
'POST' , postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
//force a reload of the server data
dss.loadData();
The inital load of the data set
var dss = new Spry.Data.XMLDataSet (
'../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
"true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
"descending", useCache: false, loadInterval: 10000 } );
And the part that changes the server id
<td align="left" style="cursor:default; width:174px;"
onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
I checked that the function is receiving the correct server
id and I even tried hard coding the cid variable to 2 in the change
function but it still wasn't changing on the server side.
Any ideas?
Thanks -
Hello all, gotta question that I've been wresteling with for the better part of 2 days now. I'm running several filters on a very large data set. Each row in the data set is a product that has 8 or so properties. There are about 900 rows and each row has a SKU out of the 900 rows there are only about 50 unique SKUs. Right now every row is being displayed but what I want to do is only display each SKU once. I tried selecting 'remove repeating nodes" from the UI but this doesn't work because the entire nodes aren't repeating just the SKUs.
Is this something that is easily doable?
You can view the working application here (note: runs best in FF3, I need to trim down the DS to get it to work well in IE)
www.bradygodwin.com/test/rnaToolNewData.html
and the XML here
http://www.bradygodwin.com/test/rnaindev.xml
Thanks in advance for the help!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 -
Spry XML Data Sets can't set from internet ?
for example.
i build a rss feed on my computer ,
when i use:
var ds_topic = new Spry.Data.XMLDataSet("/blog/rss.php",
"rss/channel/item");
then the page will working,
but:
var ds_topic = new Spry.Data.XMLDataSet("
http://124.10.118.236/blog/rss.php",
"rss/channel/item");
then the page will show me this msg
"Exception caught while loading
http://124.10.118.236/blog/rss.php:
[object Error]"
and the page show nothing .
i can see the XML schema in dreamweaver in both way.
anybody know what's wrong? thanks!Sr.No
Book Name
Book Description
1)
Book1(image)
Accordion1
AccordionPAnelTAb(for eg:- John)
AccordionPAnelContent(for eg:- Marsh)
AccordionPAnelTAb(for eg:- Silver)
AccordionPAnelContent(for eg:- Austin)
2)
Book2(img)
Accordion2
AccordionPAnelTAb(for eg:- John1)
AccordionPAnelContent(for eg:- Marsh1)
AccordionPAnelTAb(for eg:- Silver1)
AccordionPAnelContent(for eg:- Austin1)
using xml
<employees>
<employee>
<firstname>John</firstname>
<lastname>Marsh</lastname>
</employee>
<employee>
<firstname>Silver</firstname>
<lastname>Austin</lastname>
</employee>
<employee>
<firstname>John1</firstname>
<lastname>Marsh1</lastname>
</employee>
<employee>
<firstname>Silver1</firstname>
<lastname>Austin1</lastname>
</employee>
</employees> -
Spry HTML Data Set Gives Empty Table (no data), Spry XML Data Set is Fine
I am working in Dreamweaver CS5 and in lesson 14 of the "Dreamweaver CS5 Classroom in a Book" and the lesson implements Spry HTML Datasets and XML Datasets. The XML is fine but the HTML dataset produces an empty table. This happens in live view or even when previewing the HTML file in any of the browsers Firefox, Google or IE. I should add that the lesson (as in all the lessons) has a "finished copy file" prepared by the authors to show what things will look like in the end (so it is a file NOT produced by me but included on the CD with the book), and that file also produces the problem. I have uninstalled and reinstalled Dreamweaver, the lessons CD and spent all day trying to figure out why and no clues at all yet. All my browser settings look fine as for allowing content.
ANY CLUES would be appreciated. Thanks.Hello,
First, thank you very much for your quick response and help.
I am not sure what you mean by upload the site to a server so you can look. I am working locally in Dreamweaver on the book's exercise. So I figured you may mean CS Live. What a clumsy operation that is. In any case, they said the links below will work for ANYBODY that clicks them! What is especially baffling here is that it seems so straighforward. The file "events_finished.html" (the 1st link below) is everything but the data, produced by the author of "Adobe Dreamweaver CS5 Classroom In A Book" in lesson 14. All paths should be correct. The file referenced by "Spry.Data.HTMLDataSet", "html-data_finished.html" (the data and the 2nd link below) is in the same directory as the first file, all JavaScript files referenced exist and are in their denoted "SpryAssets" folder. As seen in the "screenShot", the HTML dataset table is empty with placeholders; the XMLDataSet is fine and all data nicely represented.
I hope this helps and thanks for all help and any clues you can provide.
events_finished.html: https://acrobat.com/#d=J2Aez*f-uXeEICwt2ctjDg
html-data_finished.html: https://acrobat.com/#d=NugqeOzL6sBtjZw81PNNAg
screenShot of viewed page in browser: https://acrobat.com/#d=nS5FBcWC-AvXXEGHiWAo6A -
FireFox Select List not working with Spry XML Data set.
I am having a problem with FireFox. I have a set of related select lists that allows a user to pick a state and then a market. The work in all browsers except FireFox. I'm totally stumped. Here is the link. Any assistance greatly appreciated!
http://myxpertise.pointinspace.com/create.php
Thanks,
Joe<span spry:region="dsCities dsStates dsStates" id="citySelector">
<select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
</select>
that should be a spry:detailregion, and you have a double dsStates
And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
{ds_RowNumber} => {dsStates::ds_RowNumber} -
I have an issue with Spry XML Data sets that is driving me nuts.
The setup is quite straightforward. I have a PHP script which submits a SOAP request, the result of which is pure XML. I echo this XML out as the result of the script.
I have another page on which is one or more Spry XML Data Sets. These data sets use the previous script as the source. I know this works OK because when i 'Get Schema' in the XML dataset dialog in Dreamweaver, the schema is properly displayed. This page also has a Spry Table on it, which uses the dataset as the source. There is nothing else on the page at all.
Now, when I preview this page in Firefox, Chrome, Opera or Safari, it displays fine. However, when I preview it in IE, the table briefly flashes up then disappears. A quick look at the source of the page shows the HTML all laid out very licely, but the Spry fields still show with their placeholders (e.g. {Balance}) instead of the actual value. Im left with a totally blank page in IE.
I have tried running in compatibility mode with no effect. I found a posting on Experts Exchange (yuk!) where someone else was having the problem but this turned out to bedue to badly formed XML. I have run my XML though XMLSpy and several online validators and it checks out every time.
Any ideas? I am slowly losing the will to live....
SiHi,
I'm trying to debug the same problem...I think.The pages work in firefox on PC & MAC but stop with the {data_name} in IE on both PC & MAC.
I'm using Dreamweaver CS3 with ADDT. I've read the posts about adding the content-type to my file that ADDT created for me just before the XMLExport, so I've added that to the get_menu_1_info.php file (see lines 42-46). I've peeked into the XMLExport.class.php file to see that the Execute function is supposedly already sending the header info (see line 223). But I'm not getting the data into IE.
Any help would be appreciated!
here's where you can see the page:
https://hbblearning.org/Takv3uMYsX7cVK5eRo/newcomer_info.html
here's where I generate the xml file to be consumed:
https://www.hbblearning.org/get/get_menu_1_info.php
I've attached the files for you to see. -
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. -
Formatting tags in xml data set used for spry region
I am trying to put <p>,,,</p> tags in my xml data set but they cause the field to not load. For example I would like to create an xml file as follows:
<blog>
<blogentry>
<blogdate>Jan 2009</blogdate>
<blogtitle>January Blog</blogtitle>
<blogtext><p> this is a paragraph</p>
<p>and so is this</p>
</blogtext>
</blogentry>
</blog>
When I do this I don't get anything in the spry region. If I remove the <p>,</p> tabs it works.
Is there anyway to do this (not just with <p> but with any tags ... ie. tables, etc.).
Thanks/HalI have an online example:
http://www.pearlmanpr.com/perspective_test.html
The spBlog.xml file contains test junk. If I put the <[[CDATA....]]> inside the BlogEntry/BlogText tag it doesn't work at all.
http://www.pearlmanpr.com/perspective_test_2.html
If I use it without the <[[CDATA..]] it doesnt work either.
http://www.pearlmanpr.com/perspective_test_3.html
If I use it without any <> within the tag it sort of works (still needs to be aligned). -
Spry Tables and Xml Data Sets viewed in IE7
Has anyone ever run into a problem with Spry Tables and Xml
Data Sets viewed in IE7? Work fine in IE6 and Firefox, but get the
error "exception caught while loading feed.xml: [object Error]" in
IE 7. Any ideas?
Attached is the xml I'm using.
ThanksI came looking for the answer to this question. I could not
find an answer. Eventually I found it the answer that worked for
me, a graphic designer with not much experience in xml.
The following url provided an errata file in PDF format:
www.peachpit.com/dwcs3cib
which includes the following addendum to the incomplete
instructions in the book i was using to learn about spry:
"If Internet Explorer 7 is your primary browser, you'll nee
to take some extra steps to view spry dynamic content locally.
First, your site must be within the local server webroot; be sure
your Lessons folder is stored within the Inetpub>wwwroot folder.
Next, double-click the site name in the files panel to open the
Site Definition dialogue. Click the Testing Server category; from
the Access List choose Local/Network. Click Okay to close the Site
Definition dialogue. Now, when you preview your page with Internet
Explorer, your local Web server (localhost) serves the page as
designed."
Horray for me! Now i can move on from here and actually get
some work done! -
XML Data Set with Spry Slides - Please Help
Hi, I'm trying to combine XML Data Set with sliding tabs.
I've created two keys responsible for sliding the tabs:
<a id="previous" href="#"
onclick="sp1.showPreviousPanel();">Previous</a>
<a id="next" href="#"
onclick="sp1.showNextPanel();">Next</a>
Then XML Data Set is used to populate the tabs, but only a
single tab remains visible, and a "Next/Previous" buttons are used
to move to the next tab. And this is where the problem arises.
The problem is that, every time I refreash the gallery or
load it for the first time, I have to press TWICE the "Next" button
to move to the next image. After that, its all fine, and slides
well. It's only the FIRST time when loaded.
Please help.
Here's the full code:
<div id="images_gal" >
///////////////////////////////////////// The menu - the
culprit///////////////////////////////////////////
<div id="menu_next">
<a id="previous" href="#"
onclick="sp1.showPreviousPanel();">Previous</a>
<a id="next" href="#"
onclick="sp1.showNextPanel();">Next</a>
</div>
//////////////////////////////////////// The Sliding Panels
Gallery ////////////////////////////////////////////////////
<div id="example2" class="SlidingPanels" tabindex="0" >
<div class="SlidingPanelsContentGroup"
spry:region="dsSpecials">
<div spry:repeat="dsSpecials" id="{first}"
class="SlidingPanelsContent{second}"><div class="top_gal"
></div><div class="main_gal"><img
src="images/Galery/{third}" alt="Digital_Signage" width="600"
height="304" />
<p class="screen_gal"><a href="#"
onclick="MM_openBrWindow('film1.html','Coloris','width=340,height=260,
top=250, left=250')">CLICK TO VIEW</a></p>
</div><div
class="bottom_gal"></div></div>
</div>
</div>Anyone has any idea why I need a DOUBLE Click to start moving
the sliding panels?
I've just completed two tutorials by Don Booth.
1/Building a Spry Sliding Panels widget
2/Building a photo album with the Spry framework
But what I try to COMBINE them - display the photos in
sliding panels, I also need to DOUBLE click the "next" buton before
it starts scrolling.
Why is that Double Click needed? Help Please.
Here's my code for the combined version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
a {
position:relative;
left:23px;
top:127px;
z-index:10000;
color: #FF0000;
</style>
<script type="text/javascript"
src="photo_album_samples/includes/xpath.js"></script>
<script type="text/javascript"
src="photo_album_samples/includes/sprydata.js"></script>
<script type="text/javascript"
src="Spry/SprySlidingPanels.js"></script>
<link type="text/css" rel="stylesheet"
href="Spry/SprySlidingPanels.css">
</head>
<body>
<div >
<a href="#" onclick="sp1.showPreviousPanel();">Previous
Panel</a>
<a href="#" onclick="sp1.showNextPanel();" >Next
Panel</a>
</div>
<div id="panelwidget" class="SlidingPanels" >
<div class="SlidingPanelsContentGroup"
spry:region="dsGallery" >
<div spry:repeat="dsGallery" class="SlidingPanelsContent"
id="p1"><img
src="photo_album_samples/thumbnails/{@thumbpath}"/></div>
</div>
</div>
<script type="text/javascript">
var dsGallery = new
Spry.Data.XMLDataSet("photo_album_samples/photos.xml",
"gallery/photos/photo");
</script>
<script type="text/javascript">
var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
</script>
</body>
</html>
Maybe you are looking for
-
Trying to transfer photos from mini sd card via adapter to iPad but get there are no photos message
Can anyone help, I am trying to transfer photos from a mini sd card via a apple adapter but get a message telling me there are no photos to transfer. Any ideas on a fix? Graham1955
-
Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.
-
Your Client Does not Support Opening this list with Windows Explorer on Windows Server 2012 R2
I am trying to open a document library in Internet Explorer 11 on a Windows 2012 R2 server and I am receiving Your Client Does not Support Opening this list with Windows Explorer
-
Nokia Lumia 925 Display Problems
I was playing on pc when i saw that the screen on my lumia 925 just broke kind of i will put some pictures and i try to restore it but it didnt work is the same .... i never drop it in any place or put it near water or st dangerous it was in case all
-
CREATE OR REPLACE PROCEDURE return data like SELECT statement
"SELECT * FROM SEARCH_KEYWORD" is successfully done and return the data of the tables. Now, I want to run that on server side using PROCEDURE. I successfully executed the below scripts. Please teach me how to call the sp_test procedure. OR if you hav