Spry Dataset loading question
I have a general question to any of the experts using the
Spry dataset. I created a test page that works beautifully, and
want to use it as a portfolio presentation on my website. It
automatically created two pages – the dataset, and it’s
data counterpart. The “data” page is a long scrolling
tabled page with a link/content/description column – the
“content” column cells each contain a fairly large
image that displays on the main dataset page in a
“window” as each item is selected.
My question is this – when the dataset calls/displays a
cell from the data page, is it only loading the image that’s
being called, or does it need to load all of the images on the data
page (even though they aren’t displayed until selected)? I
originally assumed they were being called individually, but when I
set up a similar page to display my flv and swf animations in, the
dataset worked - but when the first animation was displayed I could
hear the audio of all of the other animations that were on the
original data page at the same time. This leads me to believe that
there is a definite download/time issue on a page that has several
fairly weighty images/animations...
This could be a HUGE shot in the foot if a viewer is browsing
on a slower connection. My current site uses flash with externally
linked images and works perfectly:
http://www.jgigandet.com/.
Each image loads only when they are called (but it’s a hassle
to make updates to the portfolio)… is there a way to only
load each image as it’s called using the spry menu?
Thanks to anyone who has any insight or advice,
Jesse
I'm not feelin the love - is there another place we can ask
Adobe experts questions about their software? -
I just want to know how the spry dataset works, and if it's a
good choice for what I'm trying to do. I'm not looking to critique
or demean the technology - for the most part it works awesome. I
just need some clear paramerters of how it works, and if loading a
long list of large images will crash and burn on a slow
connection...? Does anyone have any other ways of contacting Adobe
support directly with questions such as these?
Thanks - this is my last post of this question to bubble it
back to the top... promise...
Similar Messages
-
Dw cs5.5 + Phonegap + spry dataset xml and images links broken
Hi all,
I'm building an app using DW CS5.5 and Phonegap.
This is what I've done:
created pages using the starter template (local)
I created a php page that run a query on a mysql database and output an xml file
I created a spry dataset using the php (see 2) file as data file
It works locally and on-line on my website.
But if I package an app using the android sdk from dw CS5.5 I have problems: all images are all broken. It seems that the link to image is not correct.
In fact, all images are not using absolute path (http://www.mysite.com/images/...) but are set this way: /images/....
So, my question is: have I to specify all images sources using absolute paths to make it work when packaged?
TIA for any reply
tonyHi Gramps,
I just solved the problem with image paths (I made all src paths absolute).
There is only one problem left: I opened another discussion: http://goo.gl/ysNDH
But here the link you (correctly) need to trobleshoot the problem): http://www.camar.it/newsxml
It should work on desktop browsers but it fails when I pack the app for android and install it on an android smartphone: I get "error loading page" when clicking on any details link (the button label is: DETTAGLI) on the news page.
Tony -
How can i hide a portion of the text inside a spry dataset "stackedcolumn"?
Hi all
I have a spry dataset set up reading a .xml file for the price/name/description/etc. I want to only show some of the text (a certain number of characters) at the start then give the visitor the option of clicking a toggle button to see more of the description and help with size of the pages. How do i do that exactly?
I know I have to probably implement jquery toggle but how does it work with a spry?
here is the code as it stands.
<div spry:region="catalog" class="SpotlightAndStacked">
<div spry:repeat="catalog" class="SpotlightAndStackedRow">
<div class="SpotlightContainer">
<div class="SpotlightColumn"><a href="_images/catalog/Art/{Picture_File}" title="{Headline}"><img src="_images/catalog/thumbs/Art/{Picture_File}"></a></div>
</div>
<div class="StackedContainer">
<div class="StackedColumn"> {Item_Last_Name}, {Item_First_Name}</div>
<div class="StackedColumn"> {Item_Code_Number}</div>
<div class="StackedColumn"> {Headline}</div>
<div class="StackedColumn"> {Complete_Description}</div>
<div class="StackedColumn"> {Item_Code_Number}</div>
<div class="StackedColumn"> <strong>Retail price: {Retail_Price}</strong></div>
</div>
<br style="clear:both; line-height: 0px" />
</div>
</div>
Thanks in AdvanceThere are many options for editing objects/layers in the time line. You can split tracks, slip videp, trim, delete, cut, copy and paste etc. Without more specifics about what you want to do I would suggest you review the users guide. Select help to open the manual and then go to Timeline>Edit objects in the timeline. I am sure you will find the answer to your question.
-
Spry dataset is not working properly in IE8, Help me plz...
I am a new user of dreamweaver CS5. I have designed some pages which are using Spry Dataset. It is working perfect in Firefox and IE 7 but it was not working at all in IE 8. Ben asked me to paste the following into the <HEAD> section
<meta http-equiv="X-UA-Compatible" content="IE=7" />
and after doing that it was working properly. But today I tested my site again and I came to know that it is only showing the Master Table, when we click on any master Picture of Spry Dataset it is not showing the details.
Here is the link of my site
http://dsdforu.com/WomensKNewArrivalCollection.htmlhttp://www.dsdforu.com/WomensKSDWCollection.html
I was trying to solve it by myself but I can't. Can any one tell me what am I doing wrong? or what would be the solution.
Thanks for your time.
SuboohiHi Suboohi,
I think the problem may be the pictures themselves. They do not seem to be loading quickly which gives the impression that they are not showing, especially when you have a slow connection.
You might look at optomising the pictures and preloading the images to allow your site to work properly.
I hope this helps.
Ben -
Slimbox not working with Spry Dataset
Hi there,
I'm trying to populate a page with Spry Dataset and use Slimbox2 to show a set of 4 images when a thumbnail is clicked.
The original webpage WITHOUT Spry Dataset is here:
http://shadowmuseum.com/portfolio/p-web.html
Currently it works with just slimbox, but as soon as I add a Spry Dataset, the large images won't load anymore. When a thumbnail is clicked on, it opens the 1st large image of the set in a new page, completely removing the lightbox effect.
I've scouted the internet for solutions; it's been suggested that slimbox doesn't work because spry doesn't have time to load the content first. But I'm not savvy with javascript at all, so have no idea how to work around it....
Any help would be greatly appreciated.
Thanks a lot.
P.S. Below is the HTML code for the page with both spry & slimbox:
<!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"><!-- InstanceBegin template="/Templates/bone.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="keywords" content="Shadow Museum, design, photography, london, web, web design, ana, ana lorraine lui, benjamin, backhouse, E1, E8, N16, graphic design, st martins, creative, agency, bespoke, multi-disciplinary" /><meta name="description" content="London based bespoke multi-disciplinary creative agency. Services include web design, photography, print design, and filmmaking." />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Shadow Museum || London-based bespoke multi-disciplinary creative agency</title>
<script type="text/javascript" src="../zzAssets/scripts/Lightbox/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="../zzAssets/scripts/Lightbox/js/slimbox2.js"></script>
<script src="../zzAssets/scripts/SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../zzAssets/scripts/SpryAssets/SpryData.js" type="text/javascript"></script>
<link rel="stylesheet" href="../zzAssets/scripts/Lightbox/css/slimbox2.css" type="text/css" media="screen" />
<!-- InstanceEndEditable -->
<link href="../zzAssets/scripts/main.css" rel="stylesheet" type="text/css" />
<script src="../zzAssets/scripts/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../zzAssets/scripts/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../zzAssets/scripts/clock/clockp.js"></script>
<script type="text/javascript" src="../zzAssets/scripts/clock/clockh.js"></script>
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">
<!--
var dsWeb = new Spry.Data.XMLDataSet("p-web.xml", "portfolio/project");
dsWeb.setColumnType("info", "html");
//-->
</script>
<!-- InstanceEndEditable --><!-- InstanceParam name="footer" type="boolean" value="true" --><!-- InstanceParam name="clock" type="boolean" value="true" -->
</head>
<body>
<div id="clock_a"></div>
<div id="menu">
<ul id="mainMenu" class="MenuBarHorizontal">
<li><a href="../index.html">Home</a> </li>
<li><a href="../news/news.html">News</a></li>
<li><a class="MenuBarItemSubmenu" href="#">About</a>
<ul>
<li><a href="../about/our_story.html">Our Story</a></li>
<li><a href="../about/our_values.html">Our Values</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Services</a>
<ul>
<li><a href="../services/web_design.html">Web Design</a></li>
<li><a href="../services/print_design.html">Print Design</a></li>
<li><a href="../services/photography.html">Photography</a></li>
<li><a href="../services/filmmaking.html">Filmmaking</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Portfolio</a>
<ul>
<li><a href="p-web.html">Web Design</a></li>
<li><a href="p-print.html">Print Design</a></li>
<li><a href="p-photography.html">Photography</a></li>
<li><a href="p-filmmaking.html">Filmmaking</a></li>
</ul>
</li>
<li><a href="../contact/contact.html">Contact</a></li>
</ul>
</div>
<!-- InstanceBeginEditable name="content area" -->
<div id="content">
<div id="p-web">
<h2>Web Portfolio</h2>
<div class="SpryHiddenRegion" spry:region="dsWeb">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr spry:repeat="dsWeb">
<td align="center" valign="top">
<a href="../zzAssets/images/p-web/{pic1}" rel="{label}" title="{title}"><img src="../zzAssets/images/p-web/{thm}" width="180" height="130" /></a>
<a href="../zzAssets/images/p-web/{pic2}" rel="{label}" title="{title}"></a>
<a href="../zzAssets/images/p-web/{pic3}" rel="{label}" title="{title}"></a>
<a href="../zzAssets/images/p-web/{pic4}" rel="{label}" title="{title}"></a>
</td>
<td align="left" valign="top">
<h3>{title}</h3>
{info}
<p><a href="http://{url}" target="_blank">{url-label}</a></p>
</td>
</tr>
</table>
</div>
<p> </p>
</div>
</div>
<!-- InstanceEndEditable -->
<div id="footer">
<div id="watermarkRight">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">©2009 Shadow Museum | Company Number 6576238
| <a href="../terms.html" class="colourless">Terms & Conditions</a></td>
<td align="right" valign="top">contact us: <a href="mailto:[email protected]">[email protected]</a></td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("mainMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
<!-- InstanceEnd --></html>You are not re-initializing the lightbox library code after Spry have generated the markup.
You can use the Spry region observer onPostUpdate to get notified of region re-generation and recall the initialization code of the lightbox. -
Results (totals) row in spry datasets
Hi everybody.
I spent a lot of time on the problem how to get row with
result of the spry dataset.
And I found it:
Javascript code:
// This is our dataset
var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
{path:"rows"});
// This is dataset for results
var dsSums = new Spry.Data.JSONDataSet();
// Loading empty array to results
dsSums.loadDataIntoDataSet("[]");
var myObserver = new Object;
// Calculate function will run each time when data will
change
myObserver.onDataChanged = function(dataSet, data) {
calcTotals(); }
dsSpecials.addObserver(myObserver);
var calcTotals = function() {
var tsums = [];
var rows = dsSpecials.data;
// ... here you calculate what you need...
dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
And now, the final part - HTML code:
<div spry:region="dsSpecials dsSums"
class="SpryHiddenRegion">
<table>
<tr spry:repeat="dsSpecials">
</tr>
<tr spry:repeat="dsSums">
</tr>
</table>
</div>Loveanie wrote:
> There seems to have a bug in the final release of DW CS4
that wasn't there in
> the Beta version: when we create an html Spry dataset
and we check the
> "Advanced data selection" option, DW automatically adds
a row with column0,
> column1, and so on. This row doesn't do anything good
It identifies the column. In Step 2, you can select each
column and
change its name in the Column Name field at the top of the
wizard.
Without a column name, the Spry data set has no way of
identifying the
data you want to display.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Using Multiple Spry datasets? - regarding Regions: DetailContainer/DetailRegion
Hi Spry experts:
I've been battling a good battle: Spry datasets and mobile app development. I'm making headway, but as is true in life, there are problems. I've professor googled for several days related to the current issue without success. I'm throwing in the towel and asking for help.
I have a jquery mobile project I am developing in dreamweaver cs 5.5. I created a Spry HTML dataset to populate 3 lists on separate pages. Each list page is populated by a single html file that contains 3 tables with different ids.
Each table has 3 rows (name, image, desc). Each list is populated using the "name" field from each table. The lists part is all working just fine.
However, when a list item is selected (clicked), it is supposed to take the user to another page (details). There are three details pages--one for each list. These pages are for the item details. Each details page uses the same basic code. Only one page works. If I switch the location of the detail pages in DW, the page that is closest to the list pages is the one that works. I know that I am doing something that is pretty plain to someone who knows Spry, but I'm lost as to what to do next. I've tried multiple fixes and read many Spry documents. A HUGE thanks in advance to anyone who knows the answer. If you need more information, please let me know.
The expected behavior is that whatever list item is clicked the item should jump to the details page and load the data.
Here is the code for the details pages:
<!--*****************************************************************************-->
<!--Description page for items from list 1-->
<!--*****************************************************************************-->
<div data-role="page" id="details_list1"
data-add-back-btn="true" data-theme="c">
<div data-role="header">
<h1>Details List 1</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList1">{dsList1::name}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer">{dsList1::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList1" class="DetailContainer">
{dsList1::desc}</span></span></p>
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 2-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list2" data-add-back-btn="true" data-theme="e">
<div data-role="header">
<h1>List 2 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList2">
{dsList2::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList2" class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 3-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list3" data-add-back-btn="true" data-theme="e">
<div data-role="header">
<h1>List 3 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList3">
{dsList3::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList3" class="DetailContainer"><br />
</span></span><br>
<br>
</div>I've been battling a good battle: Spry datasets and mobile app development.
Is this an offline app?
If not, then please post a link to your site.
Gramps -
Using an .aspx file for a spry dataset
I need to pull title data and associated links from this page (
http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx) on to a separate site where the info is displayed as latest news.
Whilst locally I can get this to work in I.E. no data shows in Firefox, Chrome, Safari.
If I upload the file and supports to the site I get nothing in any browser.
Question. Can I use an .aspx file as a source for my Spry dataset?
If so can some one show me an example?
here's my code:
<script type="text/javascript">
var ds2 = new Spry.Data.XMLDataSet("http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx", "rdf:RDF/item");
ds2.setColumnType("dc:date", "date");
</script>
<body>
<div spry:region="ds2">
<ul spry:repeatchildren="ds2">
<li><a href="{ds2::link}">{title}</a></li>
</ul>
</div>
</bodyThe problem lies with the fact that XML data cannot normally be transferred from one domain to another, that is unless you are using YQL, see here http://developer.yahoo.com/yql/
Our friend Arnaut Kazemier (V1) has written a nifty script that combines the features of Spry with that of YQL and can be found here https://github.com/3rd-Eden/Spry-YQL-DataSet. Using the YQLDataSet I have written a test page which can be found here http://pleysier.com.au/rss_example/
However, I tried to connect to http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx without the result
Another interesting possibility can be found here http://www.linecraft.com/dreamweaver-get-external-feed/extension.php. I have not tried it yet.
Gramps -
Append data rows to spry dataset
Hello,
Is thre anyway to append data to already loaded spry dataset?
so that the rows displayed in spry area will automatically updated.
ie, my plan is to load and xml to a dataset and again append
some more data to the dataset on request .
please help...
thanks,
devloshHi Devlosh,
Here's a possbile way to accomplish this. You'll need to
write a few lines of code but the steps are as follows.
Intro:
There are currently two datasets types that can be used with
spry:regions. One is the basic DataSet (uses data that a developer
is feeding it) and the other is the XMLDataSet (takes its data from
an XML file, using XPath to filter the rows).
Steps:
1. You'll have to use a basic DataSet for displaying the
records. Instantiate one on the page (don't feed any data to it)
and then build your markup (spry:region / spry:repeat that uses
this DataSet). A basic sample on how a simple DataSet is used is
presented here:
http://labs.adobe.com/technologies/spry/samples/DataSetSample.html
2. Use a second XMLDataSet that points to the server files
that brings chunks of data (5 records at a time):
"getData.cfm?start=1".
3. Register a function as an observer for the XMLDataSet for
the "onPostLoad" event (here's a sample of using observers:
http://labs.adobe.com/technologies/spry/samples/DataSetObserver.html).
This function should get the data from the XMLDataSet and attach it
to the data in the first DataSet. Like this:
//ds1 is the DataSet, ds2 is the XMLDataSet
var start = ds1.data.length;
// get data from XMLDataSet and feed it to the DataSet used
to display in spry:regions
for (var idx = 0; idx < ds2.data.length; idx++)
var row = ds2.data[idx];
row['ds_RowID'] = (start + idx);
ds1.dataHash[row['ds_RowID']] = row;
ds1.data.push(row);
// call loadData on ds1 to trigger the display of data
ds1.loadData();
4. Right after the instantiation of this XMLDataSet, call
ds2.loadData(); in order to trigger the downloading of the first
chunk of data
5. Build a "Get Next Data" button and call a function that
does:
ds2.setURL('getData.cfm?start=[NEXT_START]');
ds2.loadData();
Hope this helps you,
Best regards,
Dragos -
JSON Spry Dataset Cross Domain
Hello all,
I'm trying to use Spry to load a JSON dataset. I can successfully load and display the dataset if copy the content of the JSON using a reader, such as: http://jsonformatter.curiousconcept.com/ and placing it in a file on my server.
However, if I try to pull directly from the source, it fails. I'm assuming this is because the JSON isn't located my server. Is there a way around this? I've been searching for a while now, and haven't found a solution. Thanks!I'll paste the code here to show you what I'm attempting.
<!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" xmlns:spry="http://ns.adobe.com/spry">
<head>
<title>JSON Dataset Example</title>
<script language="Javascript" type="text/javascript" src="includes/SpryData.js"></script>
<script language="Javascript" type="text/javascript" src="includes/SpryJSONDataSet.js"></script>
<script type="text/javascript">
var ds1 = new Spry.Data.JSONDataSet("includes/testing.js", {path:"Posts"});
</script>
</head>
<body>
<div spry:region="ds1">
<div spry:state="loading">Loading Data...</div>
<div spry:state="error">Error Loading JSON Data</div>
<div spry:state="ready" spry:repeat="ds1">
<p>
{title} <a href="{link}">Link</a><br/>
</p>
</div>
</div>
</body>
</html>
Above is the working version with the JSON data copied to a file on my server.
This is the actual link to the JSON that I'm wanting to use:
http://mcelroy.acquiretm.com/services/CareerCenterJSON.aspx?get=GetActiveJobs
But of course using this path causes it to fail.
Thanks again for the help! -
Thickbox/jquery kills my spry dataset
I've been working with a spry dataset on a project that I've
recently added Thickbox to. Once I've added the 2 required js
script files to the header, the dataset stopped displaying any
data.I found a detailed thread about this very problem in the
forums, but all the combinations of adding an observer to my spry
dataset haven't helped at all. Here is the code of the latest
attempt - anyone see where I went wrong?The main reason can be that Thickbox is triggered before the
dataset is
fully loaded:
You can try this:
1.- Open thickbox.js, Copy the content include in the
function attached to
"$(document).ready" (lines 14 to 16):
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass
where to apply
thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
2.- Comment the whole function, because we'll trigger it
using Spry
3.- Now, go to the main document where you defined the
observer:
This is your current code:
<script>
function myRegionCallback(notificationState, notifier, data)
if (notificationType == "onPreUpdate")
alert(regionID + " is starting an update!");
else if (notificationType == "onPostUpdate")
alert(regionID + " is done updating!");
</script>
<link href="css/thickbox.css" rel="stylesheet"
type="text/css" />
<script type="text/javascript">
<!--
var dsCalendar = new
Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
$epoch
?>",
"root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
dInterval:1500});
//-->
Spry.Data.Region.addObserver("ddetail", MyRegionCallback);
</script>
4.- We can simplify things a bit; Since we are only
interested in the moment
when the region is finished, we'll replace the callback
function with an
region observer object:
<link href="css/thickbox.css" rel="stylesheet"
type="text/css" />
<script type="text/javascript">
<!--
var dsCalendar = new
Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
$epoch
?>",
"root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
dInterval:1500});
//create the observer
TB_Observer= new Object()
TB_Observer.onPostUpdate = function()
//we can launch the thickbox
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass
where to apply
thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
Spry.Data.Region.addObserver("ddetail", TB_Observer);
//-->
</script>
HTH
Andres Cayon
Spain Adobe Dreamweaver User Group
http://www.dwug.es
"rlcigars" <[email protected]> escribió
en el mensaje de noticias
news:[email protected]...
> I've been working with a spry dataset on a project that
I've recently
> added
> Thickbox to. Once I've added the 2 required js script
files to the header,
> the
> dataset stopped displaying any data.I found a detailed
thread about this
> very
> problem in the forums, but all the combinations of
adding an observer to
> my
> spry dataset haven't helped at all. Here is the code of
the latest
> attempt -
> anyone see where I went wrong?
>
> <!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"
> xmlns:spry="
http://ns.adobe.com/spry">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> <script src="SpryAssets/xpath.js"
type="text/javascript"></script>
> <script src="SpryAssets/SpryData.js"
type="text/javascript"></script>
> <script src="scripts/jquery.js"
type="text/javascript"></script>
> <script src="scripts/thickbox.js"
type="text/javascript"></script>
> <script>
> ...
> function myRegionCallback(notificationState, notifier,
data)
> {
> if (notificationType == "onPreUpdate")
> alert(regionID + " is starting an update!");
> else if (notificationType == "onPostUpdate")
> alert(regionID + " is done updating!");
> }
>
> </script>
>
>
> <link href="css/thickbox.css" rel="stylesheet"
type="text/css" />
> <script type="text/javascript">
> <!--
> var dsCalendar = new
Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
> $epoch
> ?>",
>
"root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
> dInterval:1500});
> //-->
> Spry.Data.Region.addObserver("ddetail",
MyRegionCallback);
>
> </script>
>
>
> </head>
>
> <body>
> <div id="ddetail" spry:region="dsCalendar">
> <table width="982">
> <tr>
> <th width="169"><div
align="left">Company</div></th>
> <th width="140"><div
align="left">Appointment Date</div></th>
> <th width="127"><div
align="left">Appointment Time</div></th>
> <th width="153"><div
align="left">Number</div></th>
> <th width="70"><div align="left">Caller
ID</div></th>
> <th width="108"><div align="left">Last
Called</div></th>
> <th>edit</th>
> </tr>
> <tr spry:repeat="dsCalendar">
> <td>{company}</td>
> <td>{app_date}</td>
> <td>{app_time}</td>
> <td>{number}</td>
> <td>{clid}</td>
> <td>{last_called}</td>
> <td><a
href="DNUsingledetail.php?id={id}">edit</a></td>
> </tr>
> </table>
> </div>
> -
Spry dataset not working in Template - please help
Hi all,
I have a situation where when I pull a spry dataset from an
xml file and display the contents in a table which works fine in a
regular html page but not a template formed page for repeatable
region.
The error I get is FAILED TO RETRIEVE DATA SET FOR SPRY
REPEAT. Prior to that it tells me GetParentDataSet is null or not
an object. I tried setting up a repeat region around the repeated
rows but that didn't work either. So I pulled everything else out
that might be causing the problem but nothing. I checked the
pathing as well for the spry assets and it checks out okay.
Anyway, here's the template.
<!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"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<link href="../styles/style.css" rel="stylesheet"
type="text/css">
<link href="../styles/linkB.css" rel="stylesheet"
type="text/css">
<link href="../styles/linkA.css" rel="stylesheet"
type="text/css">
<!-- TemplateEndEditable -->
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script type=”text/javascript”>
// Setup nested data sets:
var dsReagCons = new
Spry.Data.XMLDataSet("../xml/consumables.xml",
"electrodes_and_accessories/item[@catno='il_acl100_7000_coag_systems']");
</script>
</head>
<body>
<!-- Main body contents -->
<!-- TemplateBeginEditable name="EditRegion3" -->This
is a test
<!-- TemplateEndEditable -->
<div spry:region="dsReagCons">
<table align='center' width='680' border='1'
cellpadding='3' cellspacing='0' class='form'>
<tr>
<td colspan='5' class='prodHead' >Electrodes and
Accessories</td>
</tr>
<tr class='prodHead2'>
<td spry:sort="ddi_cat_no" width='80'>Diamond<br
/>
Cat. No.</td>
<td spry:sort="oem_cat_no" width='80'>OEM<br />
Cat. No.</td>
<td width='300'>Description</td>
<td spry:sort="models" width='100'>Models</td>
<td width='45'>UOM</td>
</tr>
<tr spry:repeat="dsReagCons">
<td>{dsReagCons::ddi_cat_no}</td>
<td>{dsReagCons::oem_cat_no}</td>
<td>{dsReagCons::desc}</td>
<td>{dsReagCons::models}</td>
<td>{dsReagCons::uom}</td>
</tr>
</table>
</div>
</body>
</html>
What am I missing here? Like I said I even tried putting a
repeat region around the table itself.
Thanks,
-- JimHey,
Good to have a comm expert on this. Actually I solved the
problem. It was combination of what I was doing within the template
and the way the xml file was formed. Also, I had to use a template
parameter to feed a spry:test filter.
Thanks for getting back to me anyway.
-- Jim -
Can I link to specific items in a Spry dataset?
I have a website for a community festival. I'm using a spry dataset for the festival events http://www.horizonfest.co.uk/programme/events.html . Visitors click on an event in the left hand column and it appears on the right.
The festival programme is on this page: http://www.horizonfest.co.uk/programme/sitemap.html . If you scroll down to for example the evening event on 16 July, it will take you to the events page (first link above). My clients would like it to open the event for 16 July on the events page (and similarly for any event). At the moment visitors have to scroll down and open the event themselves.
I have tried putting an anchor in the 16 July data item. I am not surprised it doesn't work because the anchor is effectively on a different page.
So, is there any way of doing this? I'll be pleased if the answer is definitively 'no'. I'll be delighted if there is a way of doing this. If there isn't it may be something to look at in the future.
I subscribe to creative cloud.
Thank you
Chris SissonsI'm sorry I don't have an answer for you other than to say it's a grim future for Spry. Adobe abandoned the framework late last year with no plans for future development with it.
Nancy O. -
Spry:state="loading" for Spry.Utils.updateContent
It would be very handy to be able to use something like
spry:state="loading" for Spry.Utils.updateContent. Right now it
seems you can only use the :state="loading" for regions. Makes
sense but being able to activate the loading div while update
content is running would also be very handy. To that matter for
waiting for tabs to load, etc.Cool. Thanks for the reference, Andrew!
-
With Acces you create the dataset and then just pull the dataentry into the link box and you're done.
I know hot to make the link open in a new page but how to put the data into the link box using a spry dataset??
Tried pulling it to the link box but id soent work... any ideas??edited my first post and I hope for a reply
Maybe you are looking for
-
ALV grid control, Adding the push Button in the Toolbar
Hello All, I am facing a problem when trying to do calculation based on the button added at the toolbar of interactive ALV list. When I click on the toolbar button Compute, the ALV should calculate the multiplication of the Qty (manually entered by a
-
Help me out with the Faces timeline of operation here - having an issue...
I just upgraded to iLife '09. It's awesome! I recently just started using iPhoto 08, and now i've upgraded to 09. Just for a fresh start, I deleted my iPhoto Library and re-imported all of my photos (there were in separate folders outside of the iPho
-
I did a scan on my computer to get rid of my duplicates. In my music folder, there is a file that says 'itunes duplicates'. Will it hurt to delete this folder?
-
SQL*Loader - loading delimited files before 8i
I writing an ETL tool that gererates control file for SQL*Loader. Does anyone know how selected fields can be loaded from a delimited file (e.g. CSV), in SQL*Loader prior to version 8i. The 8i version now has the "FILLER" keyword to define fields in
-
PR against PO with amount n Quantity
hiii... pls tell me report t.code by this we can get PR Number,Pr amount,Pr number ,PO number against that PR wIth amount n quantity. regards Rekha