Ajax load spry/xml dataset....
I'm a noob. And a very frustrated one.
I am using Ajax to load an external page into my main site.
The external page has XML/Spry data attached to it. The page loads
fine when executing the Ajax request, but the page will not display
the XML data. Any ideas? Do I need to embed the xml? How do I
attach the xml to my main page?
Do the scripts get loaded when u do the request?, is the page
working when u don't do a request?
Got a url to show? or code snippet? Using 1.6.1?
Similar Messages
-
Spry xml datasets can't recognise images
Been trying all day to load a spry xml dataset with image
information into a table using the wizard. problem is, you can't
tell the wizard that the data in one of the columns is the path to
an image, so it sees it as a string and just sticks the path in the
table. I tried putting it in as html rather than string but really
I am firing into the dark here!
What have I missed?thanks for the reply. I found the issue in the path string,
along with having to edit the html tag directly, which I wasn't
expecting, being used to DW doing it all for me! I found a lot of
the answer here:
http://www.csupomona.edu/~llsoe/42101/css/sprytables.htm
At least it stopped me being scared of html! -
Spry XML Dataset Video Gallery Question
Hi there,
We are trying to create a video gallery using a Spry XML Dataset.
It's currently working in FF and Safari, but not working in IE6-7 or Opera.
Here is a link... http://www.rightsidedesign.com.au/test/tv.html
IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
Can anyone give us a hint as to what we might be doing wrong??
We followed the tutorial at... http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
and replaced the image with an FLV player.
Thanks for your help in advance!Hi there,
We are trying to create a video gallery using a Spry XML Dataset.
It's currently working in FF and Safari, but not working in IE6-7 or Opera.
Here is a link... http://www.rightsidedesign.com.au/test/tv.html
IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
Can anyone give us a hint as to what we might be doing wrong??
We followed the tutorial at... http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
and replaced the image with an FLV player.
Thanks for your help in advance! -
Spry xml dataset driven page and search engines
If a page uses Spry xml dataset to present products to a
visitor, what do google and yahoo crawlers see in that page?
I'm asking because i plan to rewrite our products' static
pages using spry xml dataset, and i'd like to ensure crawlers see
the products. I haven't looked much, yet, into this pry capability,
but the products page will most probably be paginated (not sure if
possible in this capability) since there are hundreds of products.
currently, our static html pages generated good conversions
into purchases from google and yahoo searches.
It would be great if there is a real-life website that uses
this spry capability and has their pages appear in those search
engines.
thanks.If a page uses Spry xml dataset to present products to a
visitor, what do google and yahoo crawlers see in that page?
search bot do not read / understand javascript. So they would
not index it.
Its a commen point of failure of the ajax techniques, Spry
has a handy solution for it (spry:content) wich will allow u to
overwrite 'content' if javascript is enabled so and bots will just
see the static page. -
How to show an entry with specific ID from spry xml dataset?
I have a spry xml dataset, can I show only one record
specified by, say, unique ID?yeah, I first posted this one, then found out that my other
message was replied:) -
Currently when I try and add a SPRY XML Dataset and hit the Get Schema button I get "Unable to locate or parse the XML Source (-1,-1). I created the XML from the Export recordset to XML tool in the Developer Toolbox. I can't seem to figure out what I am missing. Anyone else having this problem as well. It use to work then I think my system did some update from Adobe and since has stopped working. Any assistance is greatly appreciated. Thanks.
Hello,
The error usually means that the XML source that you choose within Spry XML Data Set interface is not valid.
So you should check the XML source to see if it returns a valid XML.
Regards,
Ionut -
I am new to DW and have a question I am hoping someone will
answer. I am using Spry.Data.XMLDataSet found in SpryData.js. I
have it working correctly, but if I change the XML content and
attempt to reload the page using this data it does not show the
changes. I have declared a dsObj called dsXMLdata that the
XMLDataSet method loads. How can I cause the dsXMLdata to reload
from the file. I would assume this would happen each time the
Spry.Data.XMLDataSet method is called, but I never see my changes
unless I rename the file and read the newly named file.. Kind of a
PIA.
Thanks.,
PatI am brand new to Spry, and ran into the same problem. I
believe you will have the functionality you are looking for if you
use the subpaths command in your dataset declaration. Otherwise,
your XML dataset will be limited to the data nodes in the first
tier of the <root> node (ie. only channel) You can try code
like this:
var ds1 = new Spry.Data.XMLDataSet("test.xml", "root", {
subPaths: ["channel/data1","channel/data2"] });
then access through the tags {ds1::channel/data1} ....
If you download the prerelease 1.5 spry package it has the
API docs with samples. One of the samples is about nested XML data
structures and is a good source to find out what you can do.
Hope this helps
Josh -
Passing a Spry XML Dataset to a function
I am very much a noob at this. How would I pass my XML dataset to a function so that the function would check a "date" field in the XML file and color the corresponding date cell in a YUI calendar? I have looked through the YUI Forums, but couldn't find any good examples. I am making a calendar of events that uses a calendar to filter the events in my XML file. I want the calendar to highlight the dates that have an event scheduled, so the users get a visual pointer to when events are scheduled. Here is my code:
<!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="SpryAssets/SpryDataExtensions.js" type="text/javascript"></script>
<script src="yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
<script src="yui/2.6.0/build/calendar/calendar-min.js" type="text/javascript"></script>
<script src="SpryAssets/SpryDOMUtils.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript">
<!--
var dsMDEvents = new Spry.Data.XMLDataSet("schedule.xml", "events/event", {sortOnLoad: "date", sortOrderOnLoad: "ascending"});
var dsEvents = new Spry.Data.XMLDataSet("schedule.xml", "events/event", {sortOnLoad: "date", sortOrderOnLoad: "ascending"} );
dsEvents.setColumnType("date", "date");
dsEvents.setColumnType("@id", "number");var thisDate = new Date();
var todaysDate = mydateFormat(thisDate);
function pad(v)
return (v<10?"0"+v:v);
function mydateFormat(inDate)
var myData = inDate;
var gToday = new Date(myData);
var tToday = pad(gToday.getMonth()+1).toString() + "/" + pad(gToday.getDate()).toString() + "/" + gToday.getFullYear().toString();
return (tToday);
}//-->
</script>
<link href="yui/2.6.0/build/fonts/fonts-min.css" rel="stylesheet" type="text/css" />
<link href="yui/2.6.0/build/calendar/assets/skins/sam/calendar.css" rel="stylesheet" type="text/css" /><link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
</head><body>
<div id="Schedule">
<div id="calendarDiv"></div>
<script type="text/javascript">
// BeginWebWidget YUI_Calendar: yuicalendar1
YAHOO.namespace("calendar"); (function() {
var cn = document.body.className.toString();
if (cn.indexOf('yui-skin-sam') == -1) {
document.body.className += " yui-skin-sam";
YAHOO.calendar.init = function() {
YAHOO.calendar.cal1 = new YAHOO.widget.CalendarGroup("cal1", "CalendarDiv", {PAGES:3}); // The following event subscribers demonstrate how to handle
// YUI Calendar events, specifically when a date cell is
// selected and when it is unselected.
// See: http://developer.yahoo.com/yui/calendar/ for more
// information on the YUI Calendar's configurations and
// events.
// The YUI Calendar API cheatsheet can be found at:
// http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
//--- begin event subscribers ---//
YAHOO.calendar.cal1.selectEvent.subscribe(selectHandler, YAHOO.calendar.cal1, true);
YAHOO.calendar.cal1.deselectEvent.subscribe(deselectHandler, YAHOO.calendar.cal1, true);
//--- end event subscribers ---//
function dateHighlightRenderer(workingDate, cell) {
var isHighlighted = false;
var date = workingDate.getMonth()+1 + "/" + workingDate.getDate() + "/" + workingDate.getFullYear();
/*if (rows["date"].search(date) != -1) {
isHighlighted = true;
if (date) {
isHighlighted = true;
if (isHighlighted) {
YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
//YAHOO.calendar.cal1.addRenderer("11/14/2009, 11/1/2009, 11/29/2009, 11/30/2009", YAHOO.calendar.cal1.renderCellStyleHighlight1);
for (var i = 1; i <= 7; i++) {
// Attach to the Weekday, instead of individual dates/ranges, to improve performance.
YAHOO.calendar.cal1.addWeekdayRenderer(i, dateHighlightRenderer);
YAHOO.calendar.cal1.render();
var todayFilterFunc = function(dsMDEvents, row, rowNumber)
if (row["date"] >= todaysDate)
return row; // Return the row to keep it in the data set.
return null; // Return null to remove the row from the data set.
dsMDEvents.filter(todayFilterFunc);
} function selectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a date cell is selected.
// alert(event) will show an event type of "Select".
// alert(data) will show the selected date as [year, month, date].
var formattedDate = pad(data[0][0][1]) + "/" + pad(data[0][0][2]) + "/" + data[0][0][0];
var dateFilterFunc = function(dsMDEvents, row, rowNumber)
if (row["date"].search(formattedDate) != -1)
return row; // Return the row to keep it in the data set.
return null; // Return null to remove the row from the data set.
dsMDEvents.filter(dateFilterFunc); // Filter the rows in the data set.
}; function deselectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a selected date cell is unselected.
}; // Create the YUI Calendar when the HTML document is usable.
YAHOO.util.Event.onDOMReady(YAHOO.calendar.init);
// EndWebWidget YUI_Calendar: yuicalendar1
</script>
<div class="MasterDetail">
<div spry:region="dsMDEvents" class="MasterContainer">
<div class="MasterColumn" spry:repeat="dsMDEvents" spry:setrow="dsMDEvents" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{date}<br />
{name}<br />
{starttime} - {endtime}</div>
</div>
<div spry:detailregion="dsMDEvents" class="DetailContainer">
<h2 class="DetailColumn">{name}</h2>
<p class="DetailColumn"><strong>Date:</strong> {date}<br />
<strong>Time:</strong> {starttime} - {endtime}</p>
<p class="DetailColumn"><strong>Where:</strong> {location}<br />
<strong>Type:</strong> {type}</p>
<p class="DetailColumn"><strong>Contact:</strong> {contact}</p>
</div>
<br style="clear:both" />
</div>
</div>
</body>
</html>
and here is a snipet of my xml file:
<?xml version="1.0" encoding="utf-8"?>
<events>
<event id="1">
<name>Dreamweaver CS4 Intermediate</name>
<date>10/15/2009</date>
<starttime>8:00 am</starttime>
<endtime>5:00 pm</endtime>
<location>Room 1</location>
<type>Training</type>
<contact>Contact 1</contact>
</event>
<event id="2">
<name>InDesign CS4 Advanced</name>
<date>11/14/2009</date>
<starttime>8:00 am</starttime>
<endtime>5:00 pm</endtime>
<location>Room 2</location>
<type>Training</type>
<contact>Contact 1</contact>
</event>
<event id="3">
<name>Flex CS4 Data Services</name>
<date>10/15/2009</date>
<starttime>1:00 pm</starttime>
<endtime>5:00 pm</endtime>
<location>Room 2</location>
<type>Meeting</type>
<contact>Contact 2</contact>
</event>
<event id="4">
<name>Another Dreamweaver CS4 Intermediate</name>
<date>11/30/2009</date>
<starttime>8:00 am</starttime>
<endtime>5:00 pm</endtime>
<location>Room 1</location>
<type>Training</type>
<contact>Contact 1</contact>
</event>
<event id="5">
<name>Another InDesign CS4 Advanced</name>
<date>11/29/2009</date>
<starttime>8:00 am</starttime>
<endtime>5:00 pm</endtime>
<location>Room 2</location>
<type>Training</type>
<contact>Contact 3</contact>
</event>
<event id="6">
<name>Another Flex CS4 Data Services</name>
<date>11/01/2009</date>
<starttime>1:00 pm</starttime>
<endtime>5:00 pm</endtime>
<location>Room 2</location>
<type>Meeting</type>
<contact>Contact 2</contact>
</event>
<event id="7">
<name>More Training</name>
<date>11/02/2009</date>
<starttime>8:00 am</starttime>
<endtime>10:00 am</endtime>
<location>Room 3</location>
<type>Training</type>
<contact>Contact 4</contact>
</event>
<event id="8">
<name>Another Training</name>
<date>10/25/2009</date>
<starttime>9:00 am</starttime>
<endtime>11:00 am</endtime>
<location>Room 3</location>
<type>Training</type>
<contact>Contact 4</contact>
</event>
<event id="9">
<name>Some More Training</name>
<date>12/02/2009</date>
<starttime>1:00 pm</starttime>
<endtime>3:00 pm</endtime>
<location>Room 3</location>
<type>Training</type>
<contact>Contact 4</contact>
</event>
</events>
The function "dateHighlightRenderer" is where I am running into the problem. How do I code this so that "dateHighlightRenderer" can read the "date" field in my XML file?I have tried the getData() function for this. However, I am not sure if I am using it right:
var d = dsMDEvents.getData();
for (var i = 0; i < d.length(); i++) {
var day = d[i]["date"];
YAHOO.calendar.cal1.addRenderer(day, dateHighlightRenderer);
When I run this for loop, my calendar will not appear on the page. Any suggestions? -
Spry xml dataset / IE / Phatfusion Multibox
I try to use spry xml data set with phatfusion multibox.
I use multibox script to open a PHP page with query string
insides spry:region.
It has problem on this application on IE either 6 and 7. But
works fine in Firefox
The requested php page just open in a new window.
I tested to relocate the dummy scripts for multibox outsides
spry:region, the script do works.
How to solve the problem ! Help pleaseHi bsyyu,
First, you might want to validate your markup because I see
that you have several unclosed tags and a missing title tag.
To solve the problem, you'll have to create your multibox
object inside an observer for the region.
Replace your code inside the region:
<script
type="text/javascript">
var ben = {};
window.addEvent('domready', function(){
ben = new MultiBox('mb', {descClassName: 'multiBoxDesc'});
</script>
with this code, put in a script in the page head:
var obs = new Object;
obs.onPostUpdate = function(notifier, data){
var ben = new MultiBox('mb', {descClassName:
'multiBoxDesc'});
Spry.Data.Region.addObserver('events', obs);
--Florin TUDOR -
Spry XML dataset + PHP problem
I have installed Dreamweaver CS3 and created a simple page
that receives a XML dataset from a PHP page. I was not able to
display any data in either FF or IE (just got a blank page). I then
downloaded the 1.5 pre-release and discovered the Data Set Explorer
which worked well in FF but doesn't do anything in IE. Then I
copied SpryData.js and xpath.js to my sites' SpryAssets directory,
overwriting the 1.4 files and my simple page worked in FF,
but still NOT in IE6/7. I then uploaded the pages to a
remote server and tested on another PC, but it still doesn't work.
If I replace the php file with a XML dataset it works on both FF
and IE. Can someone please look at the
test page and tell me what
I am missing? The PHP page that feeds the XML can be viewed
hereThanks for the reply Kin, I also had an idea that it might be
the headers. When I copied the example from
here
the
header('Content-type:
text/xml'); line was commented out by mistake! Thanks for
your help, it's working now! -
SPRY XML Dataset...add node filter
This is working fine except I want to only show records whose value is "1" for the XML node called "node".
Below is the HTML file followed by the XML file
<!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>
<link href="../SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("PSY303.xml", "VitalSource/URL", { sortOnLoad: [ "node", "sort"] });
</script>
</head>
<body>
<div spry:region="ds1" class="StackedContainers">
<div spry:repeat="ds1" class="RowContainer">
<div class="RowColumn"><a href="{link}" target="_blank">{title}</a></div>
</div>
</div>
</body>
</html>
<?xml version="1.0" encoding="ISO-8859-1"?>
<VitalSource>
<URL>
<node>1</node>
<sort>2</sort>
<title>Node 1 Link Test 2</title>
<link>http://www.cnn.com</link>
</URL>
<URL>
<node>1</node>
<sort>1</sort>
<title>Node 1 Link Test 1</title>
<link>http://www.msnbc.com</link>
</URL>
<URL>
<node>2</node>
<sort>1</sort>
<title>Node 2 Link Test 1</title>
<link>http://www.yahoo.com</link>
</URL>
<URL>
<node>2</node>
<sort>2</sort>
<title>Node 2 Link Test 2</title>
<link>http://www.google.com</link>
</URL>
<URL>
<node>2</node>
<sort>3</sort>
<title>Node 2 Link Test 3</title>
<link>http://www.google.com</link>
</URL>
<URL>
<node>3</node>
<sort>1</sort>
<title>Node 3 Link Test 1</title>
<link>http://www.yahoo.com</link>
</URL>
</VitalSource>Have a look at XPath filtering here http://labs.adobe.com/technologies/spry/samples/data_region/XPathFilteringSample.html and herehttp://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html
Gramps -
Hope someone can help me --
I've been having some success bringing an XML data set into a table using Spry, but was looking for some help on how to do something more specific.
I have a small group of data with the following headings: State, number, credits, date. I'd like to create a two-row table with the top row as the column headings and a second row that populates based on a drop-down list for the state.
For example:
State
Number
Credits
Date
Alabama (drop down arrow)
589654
7
4/29/2009
Then, when you click the drop down arrow and choose New York, the other fields will fill in from that XML item
State
Number
Credits
Date
New York (drop down arrow)
XL7654
6.4
5/3/2009
Can anyone help?Hi eschillay,
Assuming you had a data set with column names that matched the headers in your table, it would look something like this:
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("states.xml", "/states/state");
</script>
<div spry:detailregion="ds1">
<table>
<tr>
<th>State</th>
<th>Credit</th>
<th>Numbers</th>
<th>Date</th>
</tr>
<tr>
<td>
<select spry:repeatchildren="ds1" spry:choose="choose" onchange="ds1.setCurrentRowNumber(this.selectedIndex)">
<option spry:when="{ds_RowNumber} == {ds_CurrentRowNumber}" selected="selected" value="{State}">{State}</option>
<option spry:default="default" value="{State}">{State}</option>
</select>
</td>
<td>{Credit}</td>
<td>{Numbers}</td>
<td>{Date}</td>
</tr>
</table>
</div>
--== Kin ==-- -
hi iam trying to get the data into spry table(Dr-cs3) from xml file and iam using spry xml dataset. my application is working in every browser except in IE.
ERROR IS :
Exception caught while loading menus.xml: TypeError: Access is denied.Hi
this error is because of spryData.js, spryXapth.js generated by Dr CS3, I used Dr CS4 generated javascript files, then the same application is working. -
Exception caught while loading events.xml: Accès refusé.
I receive this message "Exception caught while loading
events.xml: Accès refusé (access denied)" when i try to
launch a file including a "Spry.Data.XMLDataSet", even with the
last sample files of Adobe Labs (ex : b_06_spry_widgets.html in
"vid0167" folder).
I saw there was 0 reply to the same kind of topic in the
forum.
Is there a truly solution ?
Best regards
PhilippeHello Yveline,
The problem appears because you try to load an XML from a
different server than the server of your HTML origin. This is one
of the browser's JavaScript security model. You'll have to put the
XML file to be used by the Spry XML DataSet on the server as the
HTML file.
The only solution that allow you to call a file from a
different server is to create an XML proxy on your server so the JS
to be allowed to make the server call. The proxy gateway either
written in a server side scripting like CF, PHP or ASP or using a
dedicated proxy server application will get the file from the
external server and will make it appear to the browser as living on
your server.
Cristian -
Hello,
I have loaded an xml dataset from an XML file and I have used
the code below to manipulate the dataset.
if (ds.getDataWasLoaded())
var rows = ds.getData();
for (var i = 0; i < rows.length; i++)
rows
= "Changed";
How do i reflect this on the page?
I have tried to use ds.loadData(); but it loads the original
data of the page and not the manipulated data.
Thank youHi there Kinblas,
Here is my code:
<?xml version="1.0" encoding="iso-8859-1"?>
<items>
<item>
<name>room</name>
<id>999</id>
<pid>256</pid>
</item>
<item>
<name>Wallet</name>
<id>123</id>
<pid>999</pid>
</item>
<item>
<name>Coins</name>
<id>234</id>
<pid>123</pid>
</item>
<item>
<name>Notes</name>
<id>345</id>
<pid>123</pid>
</item>
<item>
<name>pencil case</name>
<id>000</id>
<pid>999</pid>
</item>
<item>
<name>pencil</name>
<id>111</id>
<pid>000</pid>
</item>
<item>
<name>pen</name>
<id>222</id>
<pid>000</pid>
</item>
<item>
<name>ruler</name>
<id>333</id>
<pid>000</pid>
</item>
<item>
<name>rubber</name>
<id>444</id>
<pid>000</pid>
</item>
</items>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>
<script language="JavaScript" type="text/javascript"
src="../../spry_15/includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="../../spry_15/includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript"
src="../../spry_15/includes/SpryDebug.js"></script>
<script language="JavaScript" type="text/javascript">
var dsItem = new Spry.Data.XMLDataSet("spry.xml",
"/items/item[id='999']", { useCache: true});
var dsItemsChildren = new Spry.Data.XMLDataSet("spry.xml",
"/items/item[pid='{dsItem::id}']", { useCache: true});
var dsItemsSiblings = new Spry.Data.XMLDataSet("spry.xml",
"/items/item[pid='{dsItem::pid}']", { useCache: true});
function selectItem(id) {
xpath = "/items/item[id=" + id + "]";
dsItem.setXPath(xpath);
function doSort() {
dsItem.sort("name", "toggle");
function doChange() {
if (dsItem.getDataWasLoaded()) {
var rows = dsItem.getData();
var rows1 = dsItemsChildren.getData();
var rows2 = dsItemsSiblings.getData();
for (var i = 0; i<rows.length ; i++) {
if (rows
["name"]=="rubber") {
rows["name"]="eraser";
for (var i = 0; i<rows1.length ; i++) {
if (rows1
["name"]=="rubber") {
rows1["name"]="eraser";
for (var i = 0; i<rows2.length ; i++) {
if (rows2
["name"]=="rubber") {
rows2["name"]="eraser";
Spry.Data.updateAllRegions();
</script>
</head>
<body>
<ul spry:region="dsItem">
<li spry:repeat="dsItem">Selected Item:
{name}</li>
</ul>
items Siblings
<ul spry:region="dsItemsSiblings">
<li spry:repeat="dsItemsSiblings"><a href='#'
onClick="selectItem({id});">{name}</a></li>
</ul>
Items Children
<ul spry:region="dsItemsChildren">
<li spry:repeat="dsItemsChildren"><a href='#'
onClick="selectItem({id});">{name}</a></li>
</ul>
<input value="Sort" type="button" onClick="doSort();">
<input value="Change" type="button"
onClick="doChange();">
</body>
</html>
When I click on sort, it fires off doSort which finds all
occurences of 'rubber' and changes them to eraser, but when
clicking on the links which result in setting the xpath, the cache
is not used but the original xml is used and the word 'rubber'
reappears.
I hope this make it clear.
Thanks
Maybe you are looking for
-
File Ext Openning problem!
I have searched all over my mac high and low and can not figure out out to make the default file ext. open in the correct program example .doc, .eps, .psd, .pdf, .indd I can only right click and have it open in program if I double click all files ope
-
We have numerous installs of MS Office Standard yet when running compliance reports, the individual components are being added to thye count, as well as the suiute itself. How can we eliminate the individuals components from being added?
-
ABAP Proxy viewing of historical web service posts - XML files
Hi there I have developed a web service that posts via an ABAP proxy. The webservice posts successfully. Where do I see the historical XML files of the posts of my executed webservices? Kind Regards Gustav Coleske
-
10.1.0.3 Patchset Now Available
The 10.1.0.3 patchset is now available on Metalink for Microsoft Windows and Intel Linux. From a brief glance at the rest of the platforms it doesn't appear to be out yet for the Unix platforms. Can anyone from Oracle let us know if there's any chang
-
ESB Reprocessing Issue with client API
All, We are currently working on reprocessing the failed ESB instances using the client API. The instances are getting reprocessed but on a random basis are are getting the below exception. The reprocessing code is also provided. oracle.tip.esb.clien