Var ds = new Spry.Data.XMLDataSet ...
how many ( var ds = new Spry.Data.XMLDataSet ... ) can be
used simultaneously in the same page? It has some
recommendation?
We have some pages that have 8-10 data sets. It seems to
handle it quite well.
Much depends on the amount of data coming into the data sets
and the complexity of the page. You will have to test and see if it
works for you. There is no set limit to the number of data sets.
If your data sets have identical URLS, it will only make a
single call for the data and then it will create the data sets from
that one request.
Does this help?
Thanks,
Don
Similar Messages
-
I have a website that uses Spry Data XML DataSet to list common pests for the current month. http://www.shspestcontrol.com/
Each month's list of pests is in a separate xml file (e.g. pests-august.xml)
Rather than manually updating the file name each month, can it be setup to automatically change the name
For instance on January 1st, file name changes to pests-january.xml, Feb 1st changes to pests-february.xml. etc.
<script type="text/javascript">
<!--
var dsPests1 = new Spry.Data.XMLDataSet("xml_files/pests-august.xml", "gallery/pests/pest");
//-->
</script>
Any advice if this can be done and if so how to go about doing it would be much appreciated
Thanks, Toni<script>
var dsPests1 = new Spry.Data.XMLDataSet("pests-september.xml", "gallery/pests/pest");
function setPestsFile(){
var months = new Array(13);
months[0] = "january";
months[1] = "february";
months[2] = "march";
months[3] = "april";
months[4] = "may";
months[5] = "june";
months[6] = "july";
months[7] = "august";
months[8] = "september";
months[9] = "october";
months[10] = "november";
months[11] = "december";
var now = new Date();
var monthnumber = now.getMonth();
var monthname = months[monthnumber];
dsPests1.setURL("pests-"+monthname+".xml");
dsPests1.loadData();
window.onload = setPestsFile();
</script> -
Spry.Data.XMLDataSet
Does anyone have resources that will allow
Spry.Data.XMLDataSet to use a variable which has been formatted
into XML.
The getSites returns an XML Packet which is generated by
cfquery.
<cfset getSites =
#Application.Component.HomeworkHotline.getSites()#>
<script type="text/javascript">
var myData = new Spry.Data.XMLDataSet(#Variables.GetSites#,
"Sites/Site");
</script>
Everyytime I view the page I am getting spry:region or
spry:detailregion attribute has no data set.
Suggestions:Yes and I have looked at this example to try and duplicate
it.. At the present time I have the following code:
<cfset getSites =
#Application.Component.HomeworkHotline.GetSites()#>
<script type="text/javascript">
var dsSites = new Spry.Data.XMLDataSet(null, "Sites/Site");
var xmlDocument =
Spry.Utils.stringToXMLDoc("#variables.getSites#");
dsSites.SetDataFromDoc(xmlDocument);
</script>
The getSites produces output like:
<?xml version="1.0"
encoding="UTF-8"?><Sites><Site><ID>9570</ID><NAME>Northern
Indiana Educational Services
Center</NAME></Site></Sites>
Now when I view the page I am getting an error message which
states spry:region or spry:detailregion attribute has no data set.
and then in my table I am getting {ID}{Name} instead of the value
from the datasource. -
Hi (sorry for my english in advance!!!)
I´m trying to get some XML from a servlet but I get this
error message:
"Spry.Data.XMLDataSet.setDataFromDoc() failed to create
dataSet ''for 'transacciones/tx' -
http://170.14.46.119:8080/struts-ajax/xml.do"
Here´s my code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>Prueba Spry</title>
<script type="text/javascript"
src="include/xpath.js"></script>
<script type="text/javascript"
src="include/SpryData.js"></script>
<!-- Crear el dataset -->
<script type="text/javascript">
var dsTx = new Spry.Data.XMLDataSet("
http://170.14.46.119:8080/struts-ajax/xml.do",
"/transacciones/tx");
dsTx.setColumnType("ingreso", "number");
dsTx.setColumnType("egreso", "number");
</script>
</head>
<body>
<div id="Transacciones" spry:region="dsTx">
<table id="tabla_tx" class="main">
<tr>
<th>Fecha</th>
<th>Referencia</th>
<th onclick="dsTx.sort('parade');">Para/De</th>
<th
onclick="dsTx.sort('categoria');">Categoría</th>
<th onclick="dsTx.sort('ingreso');">Ingreso</th>
<th onclick="dsTx.sort('egreso');">Egreso</th>
</tr>
<tr spry:repeat="dsTx">
<td>{fecha}</td>
<td>{referencia}</td>
<td>{parade}</td>
<td>{categoria}</td>
<td>{ingreso}</td>
<td>{egreso}</td>
</tr>
</table>
</div>
</body>
</html>
And here´s the XML generated by the servlet:
<?xml version="1.0" encoding="UTF-8"?>
<transacciones>
<tx id="1">
<fecha>10/06/06</fecha>
<referencia>A1-0023871</referencia>
<parade>CTI S.A.</parade>
<categoria>Telefonía celular</categoria>
<ingreso></ingreso>
<egreso>$350,50</egreso>
</tx>
<tx id="2">
<fecha>10/06/06</fecha>
<referencia>A1-0653782</referencia>
<parade>Garbarino S.A.</parade>
<categoria>Equipamiento</categoria>
<ingreso></ingreso>
<egreso>$1049,00</egreso>
</tx>
<tx id="3">
<fecha>11/06/06</fecha>
<referencia>CI0002</referencia>
<parade>Gomez y Gomez S.A.</parade>
<categoria>Ingresos por ventas</categoria>
<ingreso>$1955,00</ingreso>
<egreso></egreso>
</tx>
</transacciones>
Thanks for your help!!!!!
PabloHi Pablo,
I can't load your url:
http://170.14.46.119:8080/struts-ajax/xml.do
But perhaps it was only meant behind your firewall. In any
case, there are a couple of things to look for:
1. Is your XML valid? You can find out if the browser is
throwing an error because there was something in your XML that it
didn't like. The firefox browser will print an error message in the
JavaScript console if this is the case.
2. Is your server returning the XML as content-type
application/xml or text/xml? If not, then some browsers won't parse
the XML.
--== Kin ==-- -
Error Spry.Data.XMLDataSet is null or not an object
Hi
I try to use a dataset and a repeat list on a site
But it wont show the list in top. There are two javascript
errors. One of them says Spry.Data.XMLDataSet is null or not an
object
Whats wrongThis one was solved. I copied the files in SpryAsset from a
new one, into the folder on this site. Then the problem was
solved -
Anyoe else seen this? Data displays fine in Firefox and
Safari (of course) but gives three errors when opening in IE Mac or
PC.
Errors thrown are:
Microsoft JScript compilation error: Line 190, Char 89,
Expected ')'
Referring to JS file?
Microsoft JScript runtime error: Line 15,
'Spry.Data.XMLDataSet' is not an object
Code -
var ds2007email = new Spry.Data.XMLDataSet("2007_email.xml",
"emails/email",{sortOnLoad:"bDate",sortOrderOnLoad:"ascending",useCache:false});
Microsoft JScript runtime error: Line 77, Char 2, Object
doesn't support this property or method
Code -
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Acc1");
//-->
</script>
Setting this up in Dreamweaver CS3. Also got htis when
hand-coding Spry 1.4 prior to DWCS3. Any resolve to this problem is
appreciatedAnyone? Please?
-
How to link within a spry data set?
Hi everybody,
I am working with DW CS4 and want to know how to insert a link to another html site within the Spry data set. All I am archieving at the moment is to write the hyperlink-addy as plain text on my website.
I have this kind of structure in my data set:
<example>
<screenshot>Pics/examples/SRB.jpg</screenshot>
<name>Sounddesign Radio SRB</name>
<sort>Music production</sort>
<link> ??? </link>
</example>
Thanks a lot for your help!
Cheers,
El TeasoHi,
thanks for taking the time to haul through the Code I produced!
Although the website isn't launched yet, you can have a look at the site on this online "test-site": http://www.media-powerplant.de/media-powerplant-referenzen.html (on the left side you'll find the Spry-master region and on the left-hand side there is the Detail-region which should include the hyperlink)
Here is the HTML-Code for the site: (the green text is the part with the embedded Spry data set that works and the red line is the part which is not working)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.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" />
<meta name="description" content="Ihr Partner für Musik- und Videoproduktionen, Webdesign, Internet, Flash, Podcasts und Grafikdesign" />
<meta name="keywords" content="gemafreie musik,lizenzfrei,lizenzfreie musik, royalty free, filmmusik,hintergrundmusik, werbespot,trailer, jingles, loops, Werbemusik, Mastering, Scoremusik, Filmproduktion,Videoproduktion,Computeranimation,Postproduktion,Filmagentur,3D Visualisierung,3D Animation,Filme,Video,Film Produktion,Grafik Design,Imagefilm,Werbefilm,Werbefilme,Werbefilmproduktion, Webdesign, Webspace ,Webhosting, Web-Design , Web, Domainregistrierung, Internetdesign, Internet, Provider, HTML, Web-Space, Design, Webdesign München, Grafikdesign, kreative, innovative, Homepage, Suchmaschinenoptimierung, Michael Peh, Michi Peh, Matthias Damoser, media powerplant, media-powerplant, München"/>
<title>media powerplant *** Musikproduktion / Videoproduktion / Webdesign ***</title>
<meta name="author" content="[email protected]">
<meta name="copyright" content="Webdesign: Matthias Damoser / media powerplant">
<meta name="Content-Language" content="de">
<meta name="robots" content="INDEX,FOLLOW">
<meta name="revisit-after" content="7 days">
<link rel="SHORTCUT ICON" href="http://www.media-powerplant.de/favicon.ico">
<link href="mppLayout.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">@import url(ie.css);</style>
<![endif]-->
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var dsreferenzen = new Spry.Data.XMLDataSet("referenzen.xml", "referenz/beispiel");
dsreferenzen.setColumnType("name", "html");
dsreferenzen.setColumnType("a", "html");
dsreferenzen.setColumnType("a/@href", "html");
dsreferenzen.setColumnType("a/@target", "html");
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
var dslinks = new Spry.Data.XMLDataSet("referenzenlinks.xml", "referenz/link");
dslinks.setColumnType("a", "html");
//-->
</script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="hauptfenster">
<div id="content">
<div id="mitte">
<div id="header">
<h1>media powerplant</h1>
</div>
<div id="mainnavi">
<div class="menuHome" onclick=MM_goToURL('parent','media-powerplant-home.html');return document.MM_returnValue document.MM_returnValue></div>
<div class="menuMusik" onclick=MM_goToURL('parent','media-powerplant-musikproduktion.html');return document.MM_returnValue></div>
<div class="menuVideo" onclick="MM_goToURL('parent','media-powerplant-videoproduktion.html');return document.MM_returnValue"></div>
<div class="menuWeb" onclick=MM_goToURL('parent','media-powerplant-webdesign.html') document.MM_returnValue></div>
<div class="menuReferenzen" onclick="MM_goToURL('parent','media-powerplant-referenzen.html');return document.MM_returnValue"></div>
<div class="menuAbout" onclick=MM_goToURL('parent','media-powerplant-about.html') document.MM_returnValue></div>
<div class="menuKontakt" onclick="MM_goToURL('parent','media-powerplant-kontakt.html');return document.MM_returnValue"></div>
<div class="menuImpressum" onclick="MM_goToURL('parent','media-powerplant-impressum.html');return document.MM_returnValue"></div>
</div>
<div id="inhalt">
<h2><span class="mpp">media powerplant</span> <span class="bereich">Referenzen</span></h2>
<h2 class="unterüberschrift">Hier finden Sie einen Überblick und einige interessante Details über unsere letzten Projekte</h2>
<p> </p>
<div id="musikproduktion">
<div id="musikprojekte">
<div id="projektescroll">
<div spry:region="dsreferenzen">
<table id="referenzTable">
<tr spry:repeat="dsreferenzen" spry:hover="rowHoverRef" spry:select="rowSelectRef" spry:setrow="dsreferenzen">
<td><img src="{screenshot}" alt="{name}" width="140" height="93" class="screenshot"></td>
<td><span class="kategorie">{kategorie}</span><br>
<span class="name">{name}</span></td>
</tr>
</table>
</div>
</div>
</div>
<div spry:detailregion="dsreferenzen">
<div id="musikmainRef">
<h2> </h2>
<p> </p>
<div id="projektbeschreibung">
<p class="beschreibung">{beschreibung}</p>
<p class="aufgabenfeld">{dsreferenzen::aufgabenfeld}</p>
<p class="aufgabenbilder">
<img src="{bild1}" width="90" height="77" class="bild"><img src="{bild2}" width="90" height="77" class="bild"><img src="{bild3}" width="90" height="77" class="bild"><img src="{bild4}" width="90" height="77" class="bild"> </p>
<p class="reflink">{dsreferenzen::a/@href}</p>
</div>
</div>
</div>
</div>
<div class="copyrightref">Copyright © 2009 media powerplant | Alle Rechte vorbehalten | <a href="media-powerplant-impressum.html">Impressum</a> | <a href="media-powerplant-kontakt.html">Kontakt</a> | </div>
</div>
</div>
</div>
</div>
</body>
</html>
Okay, and here is the XML code: (the red line shows the the code, that should be shown as a link, but isn't working)
<?xml version="1.0" encoding="UTF-8"?>
<referenz>
<beispiel>
<screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
<name>Sounddesign Radio SRB</name>
<kategorie>Musikproduktion</kategorie>
<beschreibung>Media powerplant produzierte das gesamte Sounddesign für den regionalen Radiosender SRB. Dabei wurden hauptsächlich Musikbetten und Radiojingles produziert.</beschreibung>
<aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/waves.jpg</bild1>
<bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
<bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
<bild4>Bilder/Projektbilder/mics.jpg</bild4>
<a target="_blank" href="http://www.google.de">www.weblink.de</a>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
<name>EarthTV Musik</name>
<kategorie>Musikproduktion</kategorie>
<beschreibung>Komposition und Produktion des Stückes "Steil" im Auftrag von EarthTV für deren Sendeformat bei Sevenload.</beschreibung>
<aufgabenfeld>Aufgabenbereich:* Musikkompostion * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
<bild2>Bilder/Projektbilder/headphones.jpg</bild2>
<bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
<bild4>Bilder/Projektbilder/mic.jpg</bild4>
<a target="_blank" href="http://www.gmx.de">www.weblink2.de</a>
</beispiel>
</referenz>
(this shows only the first two entries)
Then, I also attached some screenshots of the Spry-Wizard. You can see, that it splits the line with the link in three seperate items. -
Hi, I Currently have a glossary using the Spry Tabbed Panels with Spry Data Sets embedded in each tab. I had it working great in pre IE8.
Once we upgraded to IE8 it just wont load or display the data sets in the tabs. Below is the page code. (I used the JS straight from the Spry Framework no alterations, except in the CSS files). Any help would be great =).
<!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="../../../../composition/Templates/profile_spone.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Glossary</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
<script src="/composition/SpryAssets/xpath.js" type="text/javascript"></script>
<script src="/composition/composition002/profile_processes/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="/composition/SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="/composition/composition002/profile_processes/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<link href="/composition/SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defnum", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds2 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defa", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds3 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defb", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds4 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defc", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds5 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defd", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds6 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defe", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds7 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/deff", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds8 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defg", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds9 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defh", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds10 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defi", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds11 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defj", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds12 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defk", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds13 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defl", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds14 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defm", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds15 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defn", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds16 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defo", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds17 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defp", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds18 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defq", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds19 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defr", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds20 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defs", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds21 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/deft", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds22 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defu", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds23 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defv", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds24 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defw", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds25 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defx", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds26 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defy", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
var ds27 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defz", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
</script>
<!-- InstanceEndEditable -->
<link href="../../../../composition/css/profile_sp1.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../../../../composition/css/print1.css" rel="stylesheet" type="text/css" media="print" />
</head>
<body>
<div id="top1">
<table width="100%" height="75px" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#000000">
<th width="6%" height="36" align="left" valign="middle" scope="col"><img src="/composition/composition002/Profile_Processes/graphics/globe2.gif" alt="globe" width="70" height="68" border="0" /></th>
<th width="94%" align="left" valign="top"><span class="whitebanner">Composition Learning Center</span><br />
<span class="whitebanner2"><strong>Learn. Grow. Succeed.</strong></span></th>
</tr>
</table>
</div>
<div id="Layer4"><!-- InstanceBeginEditable name="Content" -->
<h1 align="center">Glossary</h1>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" style="display:none" tabindex="0"></li>
<li class="TabbedPanelsTab" tabindex="0">A</li>
<li class="TabbedPanelsTab" tabindex="0">B</li>
<li class="TabbedPanelsTab" tabindex="0">C</li>
<li class="TabbedPanelsTab" tabindex="0">D</li>
<li class="TabbedPanelsTab" tabindex="0">E</li>
<li class="TabbedPanelsTab" tabindex="0">F</li>
<li class="TabbedPanelsTab" tabindex="0">G</li>
<li class="TabbedPanelsTab" tabindex="0">H</li>
<li class="TabbedPanelsTab" tabindex="0">I</li>
<li class="TabbedPanelsTab" tabindex="0">J</li>
<li class="TabbedPanelsTab" tabindex="0">K</li>
<li class="TabbedPanelsTab" tabindex="0">L</li>
<li class="TabbedPanelsTab" tabindex="0">M</li>
<li class="TabbedPanelsTab" tabindex="0">N</li>
<li class="TabbedPanelsTab" tabindex="0">O</li>
<li class="TabbedPanelsTab" tabindex="0">P</li>
<li class="TabbedPanelsTab" tabindex="0">Q</li>
<li class="TabbedPanelsTab" tabindex="0">R</li>
<li class="TabbedPanelsTab" tabindex="0">S</li>
<li class="TabbedPanelsTab" tabindex="0">T</li>
<li class="TabbedPanelsTab" tabindex="0">U</li>
<li class="TabbedPanelsTab" tabindex="0">V</li>
<li class="TabbedPanelsTab" tabindex="0">W</li>
<li class="TabbedPanelsTab" tabindex="0">X</li>
<li class="TabbedPanelsTab" tabindex="0">Y</li>
<li class="TabbedPanelsTab" tabindex="0">Z</li>
<li class="TabbedPanelsTab" tabindex="0">0 to 9</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds2" class="StackedContainers">
<div spry:repeat="ds2" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds3" class="StackedContainers">
<div spry:repeat="ds3" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds4" class="StackedContainers">
<div spry:repeat="ds4" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds5" class="StackedContainers">
<div spry:repeat="ds5" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds6" class="StackedContainers">
<div spry:repeat="ds6" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds7" class="StackedContainers">
<div spry:repeat="ds7" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds8" class="StackedContainers">
<div spry:repeat="ds8" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds9" class="StackedContainers">
<div spry:repeat="ds9" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds10" class="StackedContainers">
<div spry:repeat="ds10" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds11" class="StackedContainers">
<div spry:repeat="ds11" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds12" class="StackedContainers">
<div spry:repeat="ds12" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds13" class="StackedContainers">
<div spry:repeat="ds13" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds14" class="StackedContainers">
<div spry:repeat="ds14" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds15" class="StackedContainers">
<div spry:repeat="ds15" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds16" class="StackedContainers">
<div spry:repeat="ds16" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds17" class="StackedContainers">
<div spry:repeat="ds17" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds18" class="StackedContainers">
<div spry:repeat="ds18" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds19" class="StackedContainers">
<div spry:repeat="ds19" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds20" class="StackedContainers">
<div spry:repeat="ds20" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds21" class="StackedContainers">
<div spry:repeat="ds21" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds22" class="StackedContainers">
<div spry:repeat="ds22" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds23" class="StackedContainers">
<div spry:repeat="ds23" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds24" class="StackedContainers">
<div spry:repeat="ds24" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds25" class="StackedContainers">
<div spry:repeat="ds25" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds26" class="StackedContainers">
<div spry:repeat="ds26" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds27" class="StackedContainers">
<div spry:repeat="ds27" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
<div class="TabbedPanelsContent">
<div spry:region="ds1" class="StackedContainers">
<div spry:repeat="ds1" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
<span class="RowColumn">{definition}</span>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:0});
</script><!-- InstanceEndEditable -->
</div>
</body>
<!-- InstanceEnd --></html>Thanks Gramps.
I totally forgot about the Xpath filtering.
Trusty Hammer
altruistic gramps <[email protected]>
01/11/2011 05:06 PM
Please respond to
[email protected]
To
patrick dennis <[email protected]>
cc
Subject
Spry Data Sets and IE8
A quick fix: add the following to your document
A better fix: reduce the number of datasets to just one and use Xpath
filtering triggered by an onclick event, as in clicking the relevant tab.
Gramps
For a more specific answer, please supply a link to your site. -
IE doesn't display part of spry data set!?!?
Hi there,
I hope somebody can help me out with a problem I got with the spry dataset I use on my website. -> http://media-powerplant.de/media-powerplant-referenzen.html
The thing is that the IE doesn't display text in the "master" region. There are no problems with the Details region, and pictures are also diplayed in the master, but strangely enough no text! :-(
When i visit the site with firefox or any other browser the text gets displayed. I have no idea what the problem is, but this is really bothering me.
I hope that somebody is kind enough to help me out here. Big thanks in advance! :-)
Here is the HTML-code of the site: (the red highlighted lines are those which doesn't get diplayed)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.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" />
<meta name="description" content="Ihr Partner für Musik- und
Videoproduktionen, Webdesign, Internet, Flash, Podcasts und
Grafikdesign" />
<meta name="keywords" content="gemafreie musik,lizenzfrei,lizenzfreie
musik, royalty free, filmmusik,hintergrundmusik, werbespot,trailer,
jingles, loops, Werbemusik, Mastering, Scoremusik,
Filmproduktion
,Videoproduktion,Computeranimation,Postproduktion,Filmagentur,3D
Visualisierung,3D Animation,Filme,Video,Film Produktion,Grafik
Design,Imagefilm,Werbefilm,Werbefilme,Werbefilmproduktion, Webdesign,
Webspace ,Webhosting, Web-Design , Web, Domainregistrierung,
Internetdesign, Internet, Provider, HTML, Web-Space, Design, Webdesign
München, Grafikdesign, kreative, innovative, Homepage,
Suchmaschinenoptimierung, Michael Peh, Michi Peh, Matthias Damoser,
media powerplant, media-powerplant, München"/>
<title>media powerplant *** Musikproduktion / Videoproduktion /
Webdesign ***</title>
<meta name="author" content="[email protected]">
<meta name="copyright" content="Webdesign: Matthias Damoser / media
powerplant">
<meta name="Content-Language" content="de">
<meta name="robots" content="INDEX,FOLLOW">
<meta name="revisit-after" content="7 days">
<link rel="SHORTCUT ICON" href="http://www.media-powerplant.de/favicon.ico
">
<link href="mppLayout.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">@import url(ie.css);</style>
<![endif]-->
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var dsreferenzen = new Spry.Data.XMLDataSet("referenzen.xml",
"referenz/beispiel");
dsreferenzen.setColumnType("name", "html");
dsreferenzen.setColumnType("MP3", "html");
dsreferenzen.setColumnType("theURL", "html");
dsreferenzen.setColumnType("theURL2", "html");
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
+].src=a[i];}}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i
+1]+"'");
var dslinks = new Spry.Data.XMLDataSet("referenzenlinks.xml",
"referenz/link");
dslinks.setColumnType("a", "html");
//-->
</script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet"
type="text/css">
</head>
<body>
<div id="hauptfenster">
<div id="content">
<div id="mitte">
<div id="header">
<h1>media powerplant</h1>
</div>
<div id="mainnavi">
<div class="menuHome" onclick=MM_goToURL('parent','media-
powerplant-home.html');return document.MM_returnValue
document.MM_returnValue></div>
<div class="menuMusik" onclick=MM_goToURL('parent','media-
powerplant-musikproduktion.html');return document.MM_returnValue></div>
<div class="menuVideo" onclick="MM_goToURL('parent','media-
powerplant-videoproduktion.html');return document.MM_returnValue"></div>
<div class="menuWeb" onclick=MM_goToURL('parent','media-
powerplant-webdesign.html') document.MM_returnValue></div>
<div class="menuReferenzen" onclick="MM_goToURL('parent','media-
powerplant-referenzen.html');return document.MM_returnValue"></div>
<div class="menuAbout" onclick=MM_goToURL('parent','media-
powerplant-about.html') document.MM_returnValue></div>
<div class="menuKontakt" onclick="MM_goToURL('parent','media-
powerplant-kontakt.html');return document.MM_returnValue"></div>
<div class="menuImpressum" onclick="MM_goToURL('parent','media-
powerplant-impressum.html');return document.MM_returnValue"></div>
</div>
<div id="inhalt">
<h2><span class="mpp">media powerplant</span> <span
class="bereich">Referenzen</span></h2>
<h2 class="unterüberschrift">Hier finden Sie einen Überblick
und einige interessante Details über unsere letzten Projekte</h2>
<p> </p>
<div id="musikproduktion">
<div id="musikprojekte">
<div id="projektescroll">
<div spry:region="dsreferenzen">
<table id="referenzTable">
<tr spry:repeat="dsreferenzen"
spry:hover="rowHoverRef" spry:select="rowSelectRef"
spry:setrow="dsreferenzen">
<td><img src="{screenshot}" alt="{name}"
width="140" height="93" class="screenshot"></td>
<td><span class="kategorie">{kategorie}</span><br>
<span class="name">{name}</span></td>
</tr>
</table>
</div>
</div>
</div>
<div spry:detailregion="dsreferenzen">
<div id="musikmainRef">
<h2> </h2>
<p> </p>
<div id="projektbeschreibung">
<p class="beschreibung">{beschreibung}</p>
<p class="aufgabenfeld">{dsreferenzen::aufgabenfeld}</p>
<p class="aufgabenbilder">
<img src="{bild1}" width="90" height="77"
class="bild"><img src="{bild2}" width="90" height="77"
class="bild"><img src="{bild3}" width="90" height="77"
class="bild"><img src="{bild4}" width="90" height="77" class="bild"> </
p>
<p class="linkMP3">{MP3}</p>
<p class="reflink">{theURL}</p>
<p class="reflink">{theURL2}</p>
</div>
</div>
</div>
</div>
<div class="copyrightref">Copyright © 2009 media powerplant |
Alle Rechte vorbehalten | <a href="media-powerplant-
impressum.html">Impressum</a> | <a href="media-powerplant-
kontakt.html">Kontakt</a> | </div>
</div>
</div>
</div>
</div>
</body>
</html>
the XML looks like this: (again highlighting the problematic regions)
<?xml version="1.0" encoding="UTF-8"?>
<referenz>
<beispiel>
<screenshot>Bilder/Projektbilder/impulstv.jpg</screenshot>
<name>Sounddesign ImpulsTV</name>
<kategorie>Musikproduktion</kategorie>
<beschreibung>Produktion des Musikstückes "Today" für Imagefilm
der Firma ImpulsTV</beschreibung>
<aufgabenfeld>Aufgabenbereich: * Musikkomposition *
Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/mics.jpg</bild1>
<bild2>Bilder/Projektbilder/misch2.jpg</bild2>
<bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
<bild4>Bilder/Projektbilder/headphones.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Today.mp3" autostart="false"
loop="false" width="300" height="18" controller="true" id="rock.mp3"
name="bg song" pluginspage= "http://www.apple.com/quicktime/
download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/gm.jpg</screenshot>
<name>Webdesign gin-mum.com</name>
<kategorie>Webdesign</kategorie>
<beschreibung>Design, Programmierung und Webspace-Hosting der
Internetpräsenz für die Münchner Band gin mum.</beschreibung>
<aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain *
Programmierung</aufgabenfeld>
<bild1>Bilder/Projektbilder/gm_1.jpg</bild1>
<bild2>Bilder/Projektbilder/gm_2.jpg</bild2>
<bild3>Bilder/Projektbilder/gm_3.jpg</bild3>
<bild4>Bilder/Projektbilder/gm_4.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/hz.jpg</screenshot>
<name>Imagefilm für Johanna Schäfer</name>
<kategorie>Videoprodution</kategorie>
<beschreibung>Videoediting für Johanna Schäfer</beschreibung>
<aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
<bild1>Bilder/Projektbilder/hz_1.jpg</bild1>
<bild2>Bilder/Projektbilder/hz_2.jpg</bild2>
<bild3>Bilder/Projektbilder/hz_3.jpg</bild3>
<bild4>Bilder/Projektbilder/hz_4.jpg</bild4>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
<name>Sounddesign Radio SRB</name>
<kategorie>Musikproduktion</kategorie>
<beschreibung>Media powerplant produzierte das gesamte
Sounddesign für den regionalen Radiosender SRB. Dabei wurden
hauptsächlich Musikbetten und Radiojingles produziert.</beschreibung>
<aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition *
Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/waves.jpg</bild1>
<bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
<bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
<bild4>Bilder/Projektbilder/mics.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Electro/Hintergrund_3.mp3" autostart="false"
loop="false" width="300" height="18" controller="true" id="rock.mp3"
name="bg song" pluginspage= "http://www.apple.com/quicktime/
download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
<name>EarthTV Musik</name>
<kategorie>Musikproduktion</kategorie>
<beschreibung>Komposition und Produktion des Stückes "Steil" im
Auftrag von EarthTV für deren Sendeformat bei Sevenload.</beschreibung>
<aufgabenfeld>Aufgabenbereich:* Musikkompostion *
Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
<bild2>Bilder/Projektbilder/headphones.jpg</bild2>
<bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
<bild4>Bilder/Projektbilder/mic.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://de.sevenload.com/sendungen/
earthTV">EarthTV bei www.Sevenload.de</a>
</p>
]]>
</theURL>
<MP3>
<![CDATA[
<embed src="Songs/Electro/Steil.mp3" autostart="false" loop="false"
width="300" height="18" controller="true" id="rock.mp3" name="bg song"
pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
</referenz>
Are you still with me? :-)
Attached you'll find what it looks like with Firefox and with InternetExplorer.Hmm, stil not working. But thanks for your support!
Here is the modified XML-code: (the not shown elements are highlighted)
<?xml version="1.0" encoding="UTF-8"?>
<referenz>
<beispiel>
<screenshot>Bilder/Projektbilder/impulstv.jpg</screenshot>
<name><![CDATA[Sounddesign ImpulsTV]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Produktion des Musikstückes "Today" für Imagefilm der Firma ImpulsTV]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Musikkomposition * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/mics.jpg</bild1>
<bild2>Bilder/Projektbilder/misch2.jpg</bild2>
<bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
<bild4>Bilder/Projektbilder/headphones.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Today.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/gm.jpg</screenshot>
<name><![CDATA[Webdesign gin-mum.com]]></name>
<kategorie><![CDATA[Webdesign]]></kategorie>
<beschreibung><![CDATA[Design, Programmierung und Webspace-Hosting der Internetpräsenz für die Münchner Band gin mum.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain * Programmierung</aufgabenfeld>
<bild1>Bilder/Projektbilder/gm_1.jpg</bild1>
<bild2>Bilder/Projektbilder/gm_2.jpg</bild2>
<bild3>Bilder/Projektbilder/gm_3.jpg</bild3>
<bild4>Bilder/Projektbilder/gm_4.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/hz.jpg</screenshot>
<name><![CDATA[Imagefilm für Johanna Schäfer]]></name>
<kategorie><![CDATA[Videoprodution]]></kategorie>
<beschreibung><![CDATA[Videoediting für Mediengestalterin und Fotografin Johanna Schäfer.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
<bild1>Bilder/Projektbilder/hz_1.jpg</bild1>
<bild2>Bilder/Projektbilder/hz_2.jpg</bild2>
<bild3>Bilder/Projektbilder/hz_3.jpg</bild3>
<bild4>Bilder/Projektbilder/hz_4.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://hanna-schaefer.de/">Website von Johanna Schäfer</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
<name><![CDATA[Sounddesign Radio SRB]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Media powerplant produzierte das gesamte Sounddesign für den regionalen Radiosender SRB. Dabei wurden hauptsächlich Musikbetten und Radiojingles produziert.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/waves.jpg</bild1>
<bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
<bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
<bild4>Bilder/Projektbilder/mics.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Electro/Hintergrund_3.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
<name><![CDATA[EarthTV Musik]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Komposition und Produktion des Stückes "Steil" im Auftrag von EarthTV für deren Sendeformat bei Sevenload.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich:* Musikkompostion * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
<bild2>Bilder/Projektbilder/headphones.jpg</bild2>
<bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
<bild4>Bilder/Projektbilder/mic.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://de.sevenload.com/sendungen/earthTV">EarthTV bei www.Sevenload.de</a>
</p>
]]>
</theURL>
<MP3>
<![CDATA[
<embed src="Songs/Electro/Steil.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Ortner_video.jpg</screenshot>
<name><![CDATA[Webdesign christian-ortner.de]]></name>
<kategorie><![CDATA[Webdesign]]></kategorie>
<beschreibung><![CDATA[Design, Programmierung und Webspace-Hosting der Internetpräsenz für den Berufsmusiker Christian Ortner.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain * Programmierung</aufgabenfeld>
<bild1>Bilder/Projektbilder/Ortner_projekte.jpg</bild1>
<bild2>Bilder/Projektbilder/Ortner_video.jpg</bild2>
<bild3>Bilder/Projektbilder/Ortner_MP3.jpg</bild3>
<bild4>Bilder/Projektbilder/Ortner_kontakt.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.christian-ortner.de">www.christian-ornter.de</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/henriette_1.jpg</screenshot>
<name><![CDATA[Sounddesign für Filmprojekt]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Sounddesign und Titeltrack des Abschlussfilms der beiden Filmhochschule Ilmenau - Absolventen Suzanna Gorolova und Laura Süßenguth.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition</aufgabenfeld>
<bild1>Bilder/Projektbilder/henriette_1.jpg</bild1>
<bild2>Bilder/Projektbilder/henriette_2.jpg</bild2>
<bild3>Bilder/Projektbilder/henriette_3.jpg</bild3>
<bild4>Bilder/Projektbilder/henriette_4.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Henriette.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
<theURL>
<![CDATA[
<p>
Hier kann man das Video sehen:
<a target="_blank" href="http://www.youtube.com/watch?v=LdBnFKNVhTY">Henriette auf Youtube</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/she_1.jpg</screenshot>
<name><![CDATA[Musikvideo "She said" für die Band gin mum]]></name>
<kategorie><![CDATA[Videoprodution]]></kategorie>
<beschreibung><![CDATA[Musikvideo für das Lied "She said" der lokalen Rock-Pop Band gin mum.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
<bild1>Bilder/Projektbilder/she_1.jpg</bild1>
<bild2>Bilder/Projektbilder/she_2.jpg</bild2>
<bild3>Bilder/Projektbilder/she_3.jpg</bild3>
<bild4>Bilder/Projektbilder/she_4.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Sim_thumb.jpg</screenshot>
<name><![CDATA[Imagefilm für die Firma "Sim-Events"]]></name>
<kategorie><![CDATA[Videoproduktion]]></kategorie>
<beschreibung><![CDATA[Produkttrailer und Imagefilm für die Simbacher Eventmanagement Firma Sim-events.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * 3D Grafik-Animation * Musikkomposition * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/Sim_1.jpg</bild1>
<bild2>Bilder/Projektbilder/Sim_2.jpg</bild2>
<bild3>Bilder/Projektbilder/Sim_3.jpg</bild3>
<bild4>Bilder/Projektbilder/Sim_4.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Sim.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
<name><![CDATA[EarthTV Musik]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Komposition und Produktion des Stückes "Horizon" im Auftrag von EarthTV für deren Webstreaming-Formate.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Musikkompostion * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/mischklein.jpg</bild1>
<bild2>Bilder/Projektbilder/headphones.jpg</bild2>
<bild3>Bilder/Projektbilder/misch2.jpg</bild3>
<bild4>Bilder/Projektbilder/mic.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.wetter.com/webcams_galerien/earthtv/">EarthTV bei www.wetter.com</a>
</p>
]]>
</theURL>
<theURL2>
<![CDATA[
<p>
<a target="_blank" href="http://www.hamburg-tourism.de/sehenswertes/webcam-earthtv/">EarthTV auf www.Hamburg-tourism.de</a>
</p>
]]>
</theURL2>
<MP3>
<![CDATA[
<embed src="Songs/Chill/Elf.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/like_2.jpg</screenshot>
<name><![CDATA[Musikvideo "like a fool" für die Band gin mum]]></name>
<kategorie><![CDATA[Videoproduktio]]>n</kategorie>
<beschreibung><![CDATA[Editing des Musikvideos "Like a Fool" für die Münchner Band "gin mum".]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
<bild1>Bilder/Projektbilder/like_1.jpg</bild1>
<bild2>Bilder/Projektbilder/like_2.jpg</bild2>
<bild3>Bilder/Projektbilder/like_3.jpg</bild3>
<bild4>Bilder/Projektbilder/like_4.jpg</bild4>
<theURL>
<![CDATA[
<p>
<a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
</p>
]]>
</theURL>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/eromat.jpg</screenshot>
<name><![CDATA[Eromat Musikproduktion]]></name>
<kategorie><![CDATA[Musikproduktion]]></kategorie>
<beschreibung><![CDATA[Titeltrack für Hörbuch des Eromat Verlages und Corporate Sounddesign in Form eines Jingles für den Verlag]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Musikkompostion * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/mischklein.jpg</bild1>
<bild2>Bilder/Projektbilder/headphones.jpg</bild2>
<bild3>Bilder/Projektbilder/misch2.jpg</bild3>
<bild4>Bilder/Projektbilder/mic.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Eromat.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
<beispiel>
<screenshot>Bilder/Projektbilder/Wildcats-Cover.jpg</screenshot>
<name><![CDATA[Highlight Video Kirchdorf Wildcats]]></name>
<kategorie><![CDATA[Videoproduktion]]></kategorie>
<beschreibung><![CDATA[Jahresrückblicksvideo der Kirchdorf Wildcats, American Football Mannschaft der 2.Bundesliga.]]></beschreibung>
<aufgabenfeld>Aufgabenbereich: * Videoediting * DVD-Authoring * Cover Design * Musikkompostion * Musikproduktion</aufgabenfeld>
<bild1>Bilder/Projektbilder/Wildcats-Cover.jpg</bild1>
<bild2>Bilder/Projektbilder/Wildcats_davor.jpg</bild2>
<bild3>Bilder/Projektbilder/Wildcats_Spiel.jpg</bild3>
<bild4>Bilder/Projektbilder/Wildcats_touchdown.jpg</bild4>
<MP3>
<![CDATA[
<embed src="Songs/Referenzen/Wildcats.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
]]>
</MP3>
</beispiel>
</referenz>
Anyhing wrong with that or is the syntax correct so far?
Then you said that I have to change the columne type..... Right now I have those two columnes ("name" and "kategorie") set to "string" as you can see in the attached screenshot. Is that correct? If it is, the mistake must be something else I'm afraid.
Again, thanks for your support! :-)
And by the way, merry Christmas everybody! :-) -
How to create a category/sucategory list with spry data
I am trying to create a a menu list that looks like this using spry:
Category Name
subcategory1
subcategory2
subcategory3
my mysql query is:
SELECT myp_category_cat.idmnu_cat, myp_category_cat.category_cat, myp_subcat_sct.subcat_sct, myp_subcat_sct.id_sct FROM (myp_category_cat LEFT JOIN myp_subcat_sct ON myp_subcat_sct.idcat_sct=myp_category_cat.id_cat) WHERE myp_category_cat.idmnu_cat=1
i have ben trying to use xpath filtering but i am getting an error. My datasets look like this:
var dsCategories = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/category", {sortOnLoad: "category", sortOrderOnLoad: "ascending", distinctOnLoad: true});
var dsList = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/subcat");
now i try to combine like this but getting error:
<div spry:region="dsCategories" class="SpotlightAndStacked">
<div spry:repeat="dsCategories dsList" class="SpotlightAndStackedRow">
<div class="SpotlightContainer">
<div class="SpotlightColumn"> {category} {subcat} </div>
</div>
<br style="clear:both; line-height: 0px" />
</div>
</div>
i am now getting a failed to retrieve dataset. Both dataset work perfectly when not combined.You have to declare all your SPRY Datasets in the region:
div spry:region="dsCategories dsList" class="SpotlightAndStacked">
Kevin -
Color Changes in Spry Data Fields
Hi All,
I'm new to Javascript & PHP programming. Currently I have coded neccesary apperances for the Web Page and also Spry Data Set to read an external XML date source file.
What I need to do is one of the fields, needs to have color based status changes based on certain data or criterias received.
For example,
I have a Spry Table displayed on my browser,
Name
Current Status
Lane
Jane
6 Mins
1
Peter
Boarding
2
Sally
Arriving
3
Alex
Delayed
4
With the above, what I need is when the current status show in minutes, the text color will be white (This has been coded with CSS Style)
For the Current Status color changes, when I received anything apart from minutes, the display will be as of below :-
Minutes = Black
Boarding = Red
Arriving = Green
Delayed = Yellow
My question is can this be coded with just Javascript, HTML and normal CSS
OR
This needs to be coded in PHP, ASP ?
I'm not familiar with ASP and only have very little knowledge of PHP. If anyone here have some experience with this, can offer some advice on how I can apply this theory into my existing. And if possible some code example would be great.
Thanks.I have tried many times on Ben's method and it didn't work.
I have also tried the method from Adobe's documentation site.
Method 1
<ul spry:region="dsStates" spry:if="{ds_RowCount} != 0" spry:repeat="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
<li spry:when="'{name}'.match(/^n/i);" style="color: red;">{name}</li>
<li spry:when="'{name}'.match(/^m/i);" style="color: blue;">{name}</li>
<li spry:when="'{name}'.match(/^a/i);" style="color: green;">{name}</li>
</ul>
Method 2
<div spry:region="dsStates" spry:if="{ds_RowCount} != 0">
<table border="1" spry:repeatchildren="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
<tr spry:when="'{name}'.match(/^n/i);" style="background-color: red;"><td>{name}</td></tr>
<tr spry:when="'{name}'.match(/^m/i);" style="background-color: blue;"><td>{name}</td></tr>
<tr spry:when="'{name}'.match(/^a/i);" style="background-color: green;"><td>{name}</td></tr>
</table>
</div>
Can anyone make it plain and simple of how the data source should look like ?
I'm posting my source code here to make things easy.
<!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 type="text/javascript">
var KomtarETA = new Spry.Data.XMLDataSet("KomtarETA.xml", "komtareta/bus", {useCache: false, loadInterval: 100});
</script>
</head>
<body>
<div spry:region="KomtarETA">
<table>
<tr>
<th>Route</th>
<th>Current</th>
<th>Destination</th>
<th>Next</th>
<th>Lane</th>
</tr>
<tr spry:repeat="KomtarETA">
<td>{route}</td>
<td>{current}</td>
<td>{destination}</td>
<td>{next}</td>
<td>{lane}</td>
</tr>
</table>
</div>
</body>
</html>
The above is the HTML file I start working with.
The {Current} field needs to have it's data periodically changing color & addition of flashing effect based on it's input from the XML data.
So my question is how do I work about ? I don't quite get the explanation above.
Thanks. -
Spry data sets and column width
Hello,
might sound simple ... I have a dynamic spry data table. The
data show fine ... But I don't seem to be able to set the width of
my columns through CSS (I give each column a separate style class,
and all other properties work fine, except the width of the column)
Anybody a view ?
Thanks a million for your help.
Peter<script type="text/javascript">
<!--
var Flags = new Spry.Data.XMLDataSet("../XML/flags.xml.php",
"ValidatorList/Validator_item");
//-->
</script>
<div class="Tbl" spry:region="Flags">
<table>
<tr>
<th class="ID" spry:sort="@id">Id</th>
<th class="TblC" spry:sort="Delete">Delete</th>
<th class="TblL"
spry:sort="URL_Display">Link</th>
<th class="TblL">Status</th>
<th spry:sort="Visible">Visible</th>
<th spry:sort="HTML">Html</th>
<th spry:sort="Content">Content</th>
<th spry:sort="Hits">Hits</th>
<th spry:sort="Pct">%</th>
<th spry:sort="Time">Time</th>
</tr>
<tr class="TblSummary">
<td class="ID" >IDS</td>
<td class="TblC"> </a></td>
<td class="TblL"> </a></td>
<td class="TblL"> </span></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr spry:repeat="Flags" spry:odd="Odd" spry:even="Even"
spry:hover="Hover" spry:select="Select">
<td class="ID" >{@id}</td>
<td class="TblC"><a href="#"
onclick="{Delete}"><img src="../Images/icons/cancel.png"
/></a></td>
<td class="TblL"><a
href="{URL_Link}">{URL_Display}</a></td>
<td class="TblL"><span
class="{Status_Style}">{Status}</span></td>
<td><a href="{Visible_Pre}"><img
src="../Images/icons/{Visible}.png" /></a></td>
<td><img src="../Images/icons/{HTML}.png"
/></td>
<td><a href="{Content_Pre}"><img
src="../Images/icons/{Content}.png" /></a></td>
<td>{Hits}</td>
<td>{Pct}</td>
<td>{Time}</td>
</tr>
</table>
</div>
and the css style sheet says ....TblL
text-align: left;
padding-left: 0px;
width: 150px; -
Spry Data Sets and CFCs?
So, I've got the Spry Data Set working reading an XML file:
http://brad.melendy.com/projects/ajax/spry/test1.cfm
Which seems to work, the ID column sorts on click, all is
well. The actual
file it is reading is located here:
http://brad.melendy.com/projects/webservice/employee.xml
Then, I have it set to read the same data from my CFC in this
version here:
http://brad.melendy.com/projects/ajax/spry/test2.cfm
This isn't working? But I can see the data when I open the
CFC directly in
my browser like this:
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
So finally, here is my code on test2.cfm that isn't working?
<!--- START CODE --->
<script src="../../../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../../../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
var ds1 = new
Spry.Data.XMLDataSet("
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
"response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
//-->
</script>
</head>
<body>
<div spry:region="ds1">
<table>
<tr>
<th spry:sort="id">Id</th>
<th>FirstName</th>
<th>LastName</th>
<th>OfficePhone</th>
</tr>
<tr spry:repeat="ds1" spry:setrow="ds1">
<td>{id}</td>
<td>{firstName}</td>
<td>{lastName}</td>
<td>{officePhone}</td>
</tr>
</table>
<!--- END CODE --->
The two files test1.cfm and test2.cfm are the same except for
the source of
the XMLDataSet which is the static XML document in test1.cfm
and the full
URL to the CFC in test2.cfm.
Thanks for any tips, this is exactly how it is suppose to
work according to
the livedocs but it isn't.
...BradI figured this out, my problem was that although IE was
displaying identical
XML documents from my CFC and employee.xml, the output
produced by the CFC
was not a true xml document. I'm not sure exactly what was
making it fail
to be seen as an xml document, but after updating the code to
use <cfxml>
the document was created properly and then Spry could see the
data and
display it.
"Brad Melendy" <[email protected]> wrote in
message
news:[email protected]...
> So, I've got the Spry Data Set working reading an XML
file:
>
>
http://brad.melendy.com/projects/ajax/spry/test1.cfm
>
> Which seems to work, the ID column sorts on click, all
is well. The
> actual file it is reading is located here:
>
>
http://brad.melendy.com/projects/webservice/employee.xml
>
> Then, I have it set to read the same data from my CFC in
this version
> here:
>
>
http://brad.melendy.com/projects/ajax/spry/test2.cfm
>
> This isn't working? But I can see the data when I open
the CFC directly
> in my browser like this:
>
>
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
>
> So finally, here is my code on test2.cfm that isn't
working?
>
> <!--- START CODE --->
> <script src="../../../SpryAssets/xpath.js"
> type="text/javascript"></script>
> <script src="../../../SpryAssets/SpryData.js"
> type="text/javascript"></script>
> <script type="text/javascript">
> <!--
> var ds1 = new
> Spry.Data.XMLDataSet("
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
>
"response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
> //-->
> </script>
> </head>
>
> <body>
> <div spry:region="ds1">
> <table>
> <tr>
> <th spry:sort="id">Id</th>
> <th>FirstName</th>
> <th>LastName</th>
> <th>OfficePhone</th>
> </tr>
> <tr spry:repeat="ds1" spry:setrow="ds1">
> <td>{id}</td>
> <td>{firstName}</td>
> <td>{lastName}</td>
> <td>{officePhone}</td>
> </tr>
> </table>
> <!--- END CODE --->
>
> The two files test1.cfm and test2.cfm are the same
except for the source
> of the XMLDataSet which is the static XML document in
test1.cfm and the
> full URL to the CFC in test2.cfm.
>
> Thanks for any tips, this is exactly how it is suppose
to work according
> to the livedocs but it isn't.
>
> ...Brad
>
> -
Spry Data Table - XML file refresh
I just started using dynamic spry data tables in Dreamweaver
CS3 on an .htm page. The table data is calling an xml file that
resides in the same folder as the .htm file on the web server. I
cannot get the data in the table to automatically update/refresh
when the xml file has been updated on the server. I added the
following code:
useCache:false,loadInterval:5000
Here is the code I have on the .htm page:
<!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
type="text/javascript">
<!--
var dstest = new
Spry.Data.XMLDataSet("hydroplants.xml",
"dataroot/HYDROPLANTS/HYDROPLANT",{sortOnLoad:"HYDROPLANTID",sortOrde rOnLoad:"ascending",useCache:false,loadInterval:5000});
//-->
</script>
</head>
<body>
<div spry:region="dstest">
<table>
<tr>
<th
spry:sort="HYDROPLANTID">HYDROPLANTID</th>
<th>Headwater</th>
<th>RESOURCE2</th>
<th>RESOURCE3</th>
<th>RESOURCE4</th>
</tr>
<tr spry:repeat="dstest"
spry:setrow="dstest">
<td>{HYDROPLANTID}</td>
<td>{Headwater}</td>
<td>{RESOURCE2}</td>
<td>{RESOURCE3}</td>
<td>{RESOURCE4}</td>
</tr>
</table>
</div>
</body>
</html>
Any help would be appreciated.
Thanks,
ChrisYou've closed the context, before evening calling getXML
13 DBMS_XMLGEN.closeContext(Ctx);
14 xml := DBMS_XMLGEN.getXML(Ctx); -
Pre-selecting from Spry Data Select Box
Hi
I am new here so sorry if this is in the wrong section/format
I am using Two Spry XML Datasets to populate 2 dropdown boxes with vehicle makes and the connected model names (there are other fields but for the sake of clarity I will only show these 2). The XML is dynamically generated by PHP/MySQL and works great for initially creating records. The problem I have is when I want to edit my record and so pre-select the data in the dropdown select box. The first box is easy and works fine but the second box only updates when the first is updated using the 'onchange' and I cannot get it to update on load. I can get it to update 'onclick' or other events but I need it to update the second box when the page loads. Any ideas? I am sure there is a simple solution staring me in the face, but I just can't see it
My code is listed below. I have cut out all the unnecessary code to make it more clear (hopefully)
<script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
var dsmakes = new Spry.Data.XMLDataSet("xmlgenmake.php", "vehicle/makes");
var dsmodel = new Spry.Data.XMLDataSet("xmlgenmodel.php?xmlmake={dsmakes::make}", "makes/models/model");
</script>
</head>
<body>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<span spry:region="dsmakes" id="makeSelector">
<select spry:repeatchildren="dsmakes" id="makeSelect" name="make" onchange="document.forms[0].modelSelect.disabled = true; dsmakes.setCurrentRowNumber(this.selectedIndex);">
<option spry:if="'{dsmakes::make}' == '<?php echo $row_Recordset1['make']; ?>'" value="{dsmakes::make}" selected="selected">{dsmakes::make}</option>
<option spry:if="'{dsmakes::make}' != '<?php echo $row_Recordset1['make']; ?>'" value="{dsmakes::make}">{dsmakes::make}</option>
</select>
</span><span spry:region="dsmodel" id="modelSelector">
<select spry:repeatchildren="dsmodel" id="modelSelect" name="model">
<option spry:if="'{dsmodel::model}' == '<?php echo $row_Recordset1['model']; ?>'" value="{dsmodel::model}" selected="selected">{dsmodel::model}</option>
<option spry:if="'{dsmodel::model}' != '<?php echo $row_Recordset1['model']; ?>'" value="{dsmodel::model}">{dsmodel::model}</option>
</select>
</span>
</body>
</html>Sorry for not being clear -
The first Spry Select box populates with the Vehicle Makes and selects the stored make from the DB. The second box is supposed to populate with the corresponding Vehicle Models (corresponding to the Vehicle Make in box one) but it initially only populates with the first makes data (not the selected one) if I add: onfocus="dsmakes.setCurrentRowNumber(this.selectedIndex); to the first box it works as it should as soon as it receives focus and the second box updates and selects the correct model.
I have tried adding
Spry.Utils.addLoadListener(InitPage);
function InitPage() {
dsmakes.setCurrentRowNumber(makeSelect.selectedIndex);
but I cannot get the second box to update without clicking on the first
It seems there should be s simple solution to this but I cannot see it.
Maybe you are looking for
-
Using Cinema Display - Please Help
Hi All, I have been working with my new 15" MBP and loving it, not one problem to report! I will be traveling with the MBP and when I come home, I would like to use this computer with my cinema display and apple wireless keyboard and all of my other
-
Sending mail to external mailid from user exit EXIT_SAPLEBNF_005
Hai ALL, iam facing problem with sending mail to external id from user exit exit_saplebnf_005 , this user exit for ROLE Determination of releasing of PO . in this user exit i passed a user name for this role from one z table. through workflow the mai
-
Novatel Wireless won't connect with Leopard
I use a USB Modem, Novatel Wireless CDMA 1.0.6 with Verizon broadband. It worked flawlessly with Tiger, and Tiger even had its own software for handling the connection, which was superior to the software that Verizon provided. But now Leopard will no
-
2.1.1 Problem with User Defined Reports with actions on the context menu
I use the User Defined Reports quite a lot, and export and publish these to other members of the team as Shared Reports. I'm also quite disappointed that there seems to be no further development in this area of SQL Developer. One of the totally undoc
-
Add new fields incu stomer data tab ( transaction BP)
Hello, I need to add three new fields in the standard transaction BP. I need the three new fields show in the customer data tab when you have introduced a determinated value in control tab before. Is it possible? Can you tell me the way? Thanks