Spry DataSet with a href rel tag
Hi,
I am having a problem I have a link that uses the "rel" tag to display the link in a floating box over the page.
When I create the page in a php recordset all is good.
When I use a spry data set the link no longer opens the floating box.
php do {
[a rel="floatbox" href="linktofile.php"]Link[/a]
} while {blah blah} //Works fine
spry:repeat
[a rel="floatbox" href="linktofile.php"]Link[/a]
// No longer opens in floatbox, just links like a normal link
TIA
Hi Apple User,
I couldnt find a spry specific forum.
I only found
Dreamweaver General Discussion
Dynamic HTML General Discussion
Dreamweaver Application Development
Dreamweaver Extensions
Would you be kind and post a link?
Thank you
Yes I am using Lytebox. :)
Similar Messages
-
Hi,
I am having a problem I have a link that uses the "rel" tag
to display the link in a floating box over the page.
When I create the page in a php recordset all is good.
When I use a spry data set the link no longer opens the
floating box.
php do {
[a rel="floatbox" href="linktofile.php"]Link[/a]
} while {blah blah} //Works fine
spry:repeat
[a rel="floatbox" href="linktofile.php"]Link[/a]
// No longer opens in floatbox, just links like a normal link
TIAHeya Albert,
Seen your post in ADDT and provided a link to the Spry forum
for future reference.
I saw you were using lightbox. For lightbox in spry create a
lightbox_spry.js file and put the following code in the .js file
var timeoutID = null;
function XXXXX(id) {
if (typeof myLytebox != 'undefined') {
var a = document.createElement("a");
a.href = "
http://page.com/page.html";
a.rel = "lyteframe";
a.title = "XXXXX";
a.rev = "width: 100px; height: 100px; scrolling: yes;";
myLytebox.start( a, false, true);
} else {
if (timeoutID) { clearTimeout(timeoutID); }
timeoutID = setTimeout('loadLytebox()', 100);
Link .js file to your page and add additional functions if
more than one lightbox link in spry. Then in Spry add a link code
like this:
<a href="javascript:XXXXX()">Click Here</a>
Hope that helps! -
Using spry datasets with Googlemaps
I am using googlemaps with XML as the data source. I want to
have a spry data grid under my map that shows all of the map
points. I am already parsing the map point's XML into a javascript
array. Is it possible to use this array to populate a spry
datagrid? Most of the examples seem to be using xml or json as the
datasource but figured since google has parsed it for me that I
could just use their array as the datasource.Hi,
We have a couple ways of putting data into data sets.
Check out:
http://labs.adobe.com/technologies/spry/samples/data_region/DataSetSample.html
I think that might be what you are looking for...
Hope this helps,
Don -
After some time working with ASP and databases I've tryed to
experiment with
Spry as I though it would be more powerful and easy to work.
After some
tests I'm totally frustrated with it.
I've seen that I can create a Spry dataset but it only allows
to get
information from an XML or HTML table. This makes information
totally
static. I know that I can build an ASP page that query a
database and
creates the XML. But I've not found any way to pass diferent
parameters on
the Spry dataset wizard to call this ASP.
I though that I can use querys to create Spry datasets with
searches and
filter information. But now seems almost impossible to me.
I'm missing
something or is this Spry dataset useless?
Regards,
AngelThanks Massimo!
I've checked you example and I don't have much knowledge of
Could Fusion as
I'm used to ASP. But I see that it can be done. I will study
it further.
As I'm not a big coder I just want to create this using
Dreamweaver server
behaviours and Spry elements, but I''m stuck as it seems that
the Spry
dataset doesn't have an option to pass a parametter when
calling the ASP
page that querys the database.
Basically I need to create a Spry dataset but tell the
dataset to call a
"query.asp page" with a parametter "id=x" so the dataset will
call the ASP
and generate the XML with the choosen "x" parameter. As it
seems the dataset
object is simply created when the page is open I don't know
how to recall it
with different parameters to change his contents.
Regards,
Angel
>
> You are indeed missing something :-))
>
> You can send either a GET or POST request to the .asp
page that creates
> the XML or JSON used to feed the dataset. The search
parameters can be
> either inside the querystring for GET or inside the POST
request.
>
> I am sorry I don't have any ASP sample available, but
here you can find a
> small demo with insert/update/delete and search that
uses CF and Spry:
>
http://www.massimocorner.com/spry/dynamic_spry.zip
>
> Hope it could help.
>
>
> --
> ----------------------------
> Massimo Foti, web-programmer for hire
> Tools for ColdFusion, JavaScript and Dreamweaver:
>
http://www.massimocorner.com
> ----------------------------
>
>
>
>
>
> -
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. -
Html tags not parsing in spry dataset
Hello you all,
I have a liitle master detail page setup which works perfectly except that the data that is pulled from a database and parsed by a spry dataset is not parsing the html tags. I am seeing things like <p></p><br/> etc. on the page. Can any one help with this.
Message was edited by: jahflasherSet the columtype to HTML on the affecting row:
http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#setcolumntype -
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>
> -
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 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 -
Hi,
how can I set a GROUP BY in my Spry-Dataset? I got lots of <city> tags that sometimes contain the same city. And I dont want them all to be shown in the list only 1 time.
Thanks for help,
DenisDenisCGN wrote:
:-) this is where I always look at. But understand nothing :-)
It starts already here: function( ds, row, index ) where do I find ds? row? index? In the filter you showed me yesterday, it was written like that, too.
the ds, row, and index are arguements of the function. Its basically in the information that Spry sends to your filter function that you can use to filter rows in your database.
ds, is a reference to the current dataset that will have the filter applied,
row, is a reference to the current row of your dataset that the filter is checking.
index, is the current row number that is getting filtered.
You can use these values to compile your own custom filter, as i did in example posted above. It uses the row variable to check for data in the current filtered row, and decided based on the information of that row, if the filter function should return the row, or remove the row ( return nothing );
This is only one of the points. the other point is, that I dont know what to look for, when I need help. This filter thing from yesterday, is, nice, works only half, and brings me to the next frontier, like that GROUP BY thing, and that the dropdown fields are closed.
There are a few points to look for information, when i first started, i used allot code from the examples. And searched the Spry API for information. And bought a few books on JavaScript. ( Spry got me hooked on JavaScript ). The Spry Docs is basically the base source of information. It links to almost everything you need. For more about data sets I would really suggest reading the articles that are bundled with Spry.
These pages are bookmarked by me:
http://labs.adobe.com/technologies/spry/docs.html
http://labs.adobe.com/technologies/spry/articles/data_api/index.html
http://labs.adobe.com/technologies/spry/samples/
http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
http://labs.adobe.com/technologies/spry/articles/best_practices/index.html
http://labs.adobe.com/technologies/spry/widgets/widgets.html
When i got more used to Spry and JavaScript in I got most of my knowledge by analising all functions in side of Spry, all methods and functions properties, understanding how things work, and why things work. So i can provide better solutions for problems.
When I got one, I got 3 new problems. Thats not so in PHP.
An other thing is, that the german characters arent displayed right. and and and and...
:-) I got to have a coffee now...
Denis
set column types to HTML, make sure you have the correct iso set for your XML and page. If you page is "iso-8859-15" make sure your XML and data is that as well. The same counts for UTF-8 and other encodings. -
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 -
ERROR: Spry Dataset -vs- InContext Editing
I am having horrible luck importing ICE editable content into a Spry Dataset.
What I'm trying to achieve is something similar to the YUI Calendar Method performed by George & Pablo here: http://tv.adobe.com/#vi+f1500v1435
The easiest way is to take a web page I have set up in tables.. but you can only create Editable Regions for InContext Editing using <div>s...
No matter which method I try, I come up with an error. I need the end user to be able to edit his own "Calendar" and I need to be able to imort this information into a Spry Dataset. Any way I can accomplish this???I forgot to mention one other problem
The layout that I sketched up is the one I am going for. So a tip on how to get the text and the headings to flow around the image like shown in the picture would be greatly appreciated. Is it recommended to use tables inside div tags or spry for that matter?
Thanks a million. -
Spry:selected with hpanel.loadContent
Hi
I'm new to spry and very excited about it but still have some
issues.
I have a repeat region menu whose items link to different
display panels.
The featured projects item leads to one kind of display.
The staff, history, contact items lead to another kind of
display.
I want the selected item in the menu (the displayed one) to
appear with the selected class in the menu (in red).
I cannot use the "spry:when="
{ds_CurrentRowNumber} == {ds_RowNumber}" ...
spry:selected="selected">" because i have to change panel
according to the menu id :
<div spry:state="ready" spry:repeat="dsMenuAbout"
spry:choose="spry:choose" spry:hover="MenuHoverClass"
spry:select="MenuSelectClass" spry:selected="MenuSelectedClass">
<div spry:when="'
{dsMenuAbout::@id_nomdepage}' == '4'"
spry:setrow="dsMenuAbout"
spry:selected="MenuSelectedClass">
<a href="includeFeaturedMoophp.php"
onclick="hpanel.loadContent(this.href); return false;"
spry:selected="MenuSelectedClass">
{@nomang_nomdepage}</a></div>
<div spry:when="'{dsMenuAbout::@id_nomdepage}' == '6'"
spry:setrow="dsMenuAbout">
<a href="includeStaff11.php"
onclick="hpanel.loadContent(this.href); return false;"
spry:selected="MenuSelectedClass">
{@nomang_nomdepage}</a></div>
<div spry:when="'{dsMenuAbout::@id_nomdepage}' == '7'"
spry:setrow="dsMenuAbout">
<a href="includeGallery.php"
onclick="hpanel.loadContent(this.href); return false;"
spry:selected="MenuSelectedClass">
{@nomang_nomdepage}</a></div>
Etc.
See it
here
The hover and select classes will display in the menu but the
selected class won't with the onclick (or default) action wherever
I put it.
Despite all my tries, i cannot find a way.
Can somenone explain to me the role of the setrow, which in
this case is "setting the row" for the onclick thing but not for
the selected class thing.
And tell me where to put the
spry:selected="MenuSelectedClass" for it to work
Second issue : I have the same kind of question with the
state:ready — where to put it?
ThanksHi andream1977,
I don't really understand what you are trying to accomplish.
Even if the above code worked, you would end up with an
optgroup having a single option. An optgroup should generally have
more.
Please study
this
article first.
Please note that:
- spry:test can only be used in conjunction with
spry:repeat(children), for other anywhere insede a region you have
spry:if
- spry:repeatchildren put on an element makes EVERY children
of the element repeat (so in your case that is why optgroup repeats
itself)
- you don't have to use the spry:test again in the eng tag
Hope that helps, -
Need some help with cfoutput and a tag
hey there,
got meself into some issues with <a> and <cfoutput> tags.
Problem:
myResult = <a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>
<cfoutput>#myResult#</cfoutput> outputs "<a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>" (surprise isn't it?)
now is there any way to output it as html so it would display a link to "mysite"???
cheers,
Simonthanks!
I've missed the fact that it was xml data. Just added .xmlText at the end and that sorted my problems. However I'll write down cfsavecontent solution for the future reference.
cheers,
Simon -
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
Maybe you are looking for
-
Html Snippet Code from BandsInTown not working...
I have just installed a list of tour dates using BandsInTown App linked with my facebook page here https://www.facebook.com/pages/Anna-Corcoran-Music/173909359323639 And i have selected the box offering the code to embed the dates onto my website he
-
Conditional Display of Report Columns
I'm trying to hide a vertical list column, but it is either permanently off or permanently on. Any ideas! For example:- Display Department name if not null
-
Idoc Segment Filtering error.
Hi, I have a scenario of IDOC to IDOC Scenario, in which i have to filter some segments based on the field value. Ex: DESADV09 is my input and output IDOC Having segment as below: Segment - E1EDK08 Fields---- Field1 Fields---- Field2 Segment---- E1ED
-
Copy/Paste duplicates graphic styles
Scenario: Start with a named graphic style of say 2 pt black stroke/no fill called '2.0 pt'. Create an object using said style, copy and paste it, every time I do this I get '2.0 pt 1', '2.0 pt 2', '2.0 pt 3' etc. insanely populating my graphic style
-
How to disable my iphone phone number imessage on old account
So I was on the same apple id as my mother, who told me today that messages were poping up on her ipad. I now created a new apple id because i do not want her reading my messages. On the old apple id, she can click my phone number and recieve my me