Changes to xml dataset not showing up on webpage

Using spry, I added a spry:region to my home page that uses an xml dataset to post special announcements on the page. Since the people that maintain this are not technical I want to give them an easy way to post their announcement and the xml file makes a lot of sense. It will be easy for them to post their "School CLOSED today due to snow" announcement.
So the whole spry dataset works great except that when I update the xml file, the new content does not show up on the web page. I assume its something to do with cache. I did select the no cache option. If I delete the temp files from the browser I can see the changes. This is obviously a problem. I need the changes to appear on the website when the xml file is updated. Is there some way to force the webpage to recreate the dataset everytime the page is loaded? or some other work around that will do what we need?
You can see the page at www.tribecacommunityschool.com. At this moment there is a school closing announcement up. It may not be up tomorrow but the code will still be on the page if you want to view it.
Thanks for any help. I did see a post from 2007 that asked this same question and there were no responses. I'm hoping for better luck and a slightly faster turn around.

Thanks for the help... This additional explanation on Phil_W's post gave me what I need and the refresh works great.
testxml.js
var dsData = new Spry.Data.XMLDataSet("testxml.xml?cache=" + (new Date()).valueOf(), "/data/info", {useCache:false,  method:'GET'});
var dsOne = new Spry.Data.XMLDataSet("testxml.xml?cache=" + (new Date()).valueOf(), "/data/info/one", { subPaths: ["test" ], useCache:false,  method:'GET'});
function RefreshMe()
     var auctionxml = 'testxml.xml?cache=' + (new Date()).valueOf();
     dsData.setURL(auctionxml);
     dsData.loadData();
      dsOne.setURL(auctionxml);
     dsOne.loadData();
testxml.xml file -------
<?xml version="1.0" encoding="UTF-8"?>
<data>
  <info id="1">
    <one>
      <test>test me sdfsdf</test>
    </one>
  </info>
</data>
html 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='text/javascript' src="jquery.js"></script>
<script language="JavaScript" type="text/javascript" src="SpryAssets/xpath.js"></script>
<script language="JavaScript" type="text/javascript" src="SpryAssets/SpryData.js"></script>
<script language="JavaScript" type="text/javascript" src="SpryAssets/SpryEffects.js"></script>
<script language="JavaScript" type="text/javascript" src="testxml.js"></script>
</head>
<body >
<div class="SpryHiddenRegion" spry:region="dsOne">
  <div id="test">{dsOne::test} </div>
</div>
<script language="JavaScript">
// Switch on Refresh of auction data
var AuctionInterval = 0;
AuctionInterval = setInterval ( 'RefreshMe()', 5000 );
</script>
</body>
</html>

Similar Messages

  • Change Password link is not showing up in MyAccount Page

    Change Password link is not showing up in MyAccount Page, eventhough the line
    <class name="PasswordPortalSetting"/> is not commented out in DisplayPortalSettings.xml
    We are using custom Auth source and not using plumtree Auth source, Is this could be a reason?
    Any help is appreciated.

    I'm seeing the same thing as Simon, I changed the iOS device name in both places on an iOS device and the name in the Intune console is still "iPhone" which is really unhelpful as I'm sure you can imagine.  Is there some other place
    that we should be going to rename devices so they are more easily identifiable in the Intune console?
    Thanks!

  • Time changes made in iPhoto not showing in Photos

         I've scanned a lot of physical family photos from when I was a child into iPhoto and changed the dates so they show in iPhoto on the correct day. So Xmas day 2000 showed up on 25 December 2000 as you would expect.
    Since importing into the new Photos App these correct dates haven't copied. Instead showing the date they where scanned.
    Is their a way to fix this or do I need to manually find all these pictures and manually adjust each one to the correct time?

    Haven't had the problem.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • XML Gallery Not Showing Up!?

    Hello, first time here.
    I followed this tutorial:
    http://www.kirupa.com/developer/mx20...otogallery.htm
    I have finished everything, changed the xml to my images and
    caption etc, 1 problem, the pictures arent showing up.
    I just see a square box.
    I uploaded it all to my site
    View final product:
    http://qualitylogos.net/test/xml_photogallery_user.html
    View XML:
    http://qualitylogos.net/test/images.xml
    View SWF:
    http://qualitylogos.net/test/xml_photogallery_user.swf
    Download FLA:
    http://qualitylogos.net/test/xml_photogallery_user.fla
    Thanks!

    Well the way mine works I have my main html page, that loads
    my swf file at the root directory, and so is my XML file that I
    call all my images from. I don't have to put the entire web address
    to get to my images folder. I just call "images/pic1.jpg" here is a
    sample of my directory and XML code
    images (folder)
    thumbs (folder)
    site.html
    site.swf
    loadpics.xml
    my xml code is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <gallery name="Pictures">
    <picture name="Name" description="Description"
    images="images/1.jpg"</picture>
    <picture name="Name" description="Description"
    images="images/2.jpg"</picture>
    </gallery>

  • Check Writer (xml) is not showing current accrual hours

    Hi,
    We are on EBS 11.5.10.2, we are going live with new accrual plan of category Vacation, when we run the check writer (Xml) process it does not show the current period accrual , it does show correct Net accrual hours. What do I need to do to get this working.
    Thank you.
    Edited by: 924406 on Jun 19, 2012 3:22 PM

    Do you have the data field in the templae set right?
    Attach the template here if you can after taking out any sensitive company information you might have on it.

  • Artist name/album name changes made in itunes not showing up on my iphone4S

    I added some songs to my iphone and I changed some of the songs' artist names in itunes. However, the changes that I made in itunes are not showing up on the iphone. Changes to album names are also not showing up. But album art does show up on my iphone. I've tried converting id3 tags and I've tried resetting the phone but nothing has worked. Does anybody know what is wrong and how to fix it?? Thanks.

    Haven't had the problem.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • Option for changing country/region does not show

    I Use IPad IOS 8.
    I want to change the region from United States to The Netherlands, but there is no option to do this.
    I logged in to Apple Store and chose View Account. The option does not show.
    I Searched the community, but no solution found that helped me.

    I'm confused now as to what you need to do and what's not working. The whole part about using Safari makes no sense, but I could very well be misunderstanding you.
    Whatever your region is set to in the iPad settings should sync to the settings in the iStores ...iTunes, the App Store and the iBooks Stores on the iPad. Try this now. Go to the iTunes app on the iPad, swipe to the bottom of the screen in the featured tab. Tap on your ID and sign out. Then sign back in again and see if you are prompted to change to the store that you want to be in.

  • Xml menu not showing in published html

    Hi all my problem is that when iam trying to publish an flash
    project containing a dynamic xml menu as html file ,the menu is not
    showing although it is showing in the accompannying swf file,any
    body knows the problem??

    There is not enough here to know what you are doing.
    Flash reads XML fine. You can then use that XML inside of
    Flash to create menus (or any UI thing) using Flash objects such as
    MovieClips and TextFields.
    You will not be able to create HTML based menus as Flash does
    not handle more than a few HTML tags via the TextField object.

  • Information Broadcasting - change to query does not show

    Hi,
    I'm on BW 3.5 and have created a scheduled Information Broadcasting setting for a query, that is emailed. This has been working fine for some weeks.
    I have now changed the query, removing two key figures and replacing them with two formulas.
    The output from Information Broadcasting does not show the new key figures, nor does it show the old key figures (!). I have maintained the IB setting, edited text in the message and saved it. The text has changed, but not the query content.
    So, how does one make Information Broadcasting recognise query changes? Obviously, I could delete the setting and set up a new one, but this is a poor solution - there must be a better way. Or not?
    Thanks,
    David

    Hi Dave
    Can you please post the result for this issue or mail me the solution at [email protected]
    i am facing the same issue and need to solve this problem asap.........
    thanks
    prat

  • Csv dataset not showing repeats in slide show

    I created a csv dataset slide show.  The repeat areas showed at first but is no longer showing.  I have checked the code for misplaced commas, non-allowed special characters, etc.  I am baffled as to where the repeat went to.
    The page can be seen here: http://kathleenhughesart.com/flowers.html
    Thanks for any help, Judy.

    Add a carriage return to the last line in the csv file.
    Gramps

  • Embeded 3D PDF not showing up in webpage on IE8 with Windows XP

    Hi,
    There seems to be a compatibility problem with embedded 3D PDF and IE8 on Windows XP. The PC that is experiencing the problem runs on Windows XP Professional Edition with Service Pack 3; it also has Adobe Reader X Version 10.1.3 installed.
    This compatibility problem can be demonstrated with the following screenshots.
    The first screenshot shows a blank space with a small red "X" at the lower left corner which was taken when IE8 was being used. This blank space is where the embedded 3D PDF is suppose to show up.
    The second screenshot shows how the webpage is suppose to look. It was taken when Firefox 14.0.1 was used to browse the same webpage.
    Here is the URL for this testing page:
    http://search.newport.com/?q=*&x2=sku&q2=SM-25
    What can I do to have my XP computer show this website correctly on IE8? Or is this a problem for the webmaster of this website?
    Any help is greatly appreciated.
    Thank you.
    Peter H.

    I too am having this same problem.  When I contac
    t Adobe the person was of no help and
    I can not print any PDF files. This is so frustrating.
    I can not delete it not open it. What gives???

  • HTML snippet does not show on my webpage?

    the html snippet (from PayPal) shows up just fine in my iWeb page. But it disappears after uploading to my webpage. I use Fetch which is an independent uploader. I have iWeb version 3.0.4 and the iWeb page I am working on creates an "html" document but, because my webpage has been there for years, I always have to rename it is an "htm" document.
    Any help in getting the html snippet to appear on my webpage would be appreciated.
    thanks!

    Wyodor thx for responding.
    Here is the webpage in question with the "htm" ext. There should be two PayPal buttons on this page but they are not there:
    http://www.randymillerprints.com/NEFRbook.htm
    And here is the page with the "html" extension, untouched, as created by iWeb:
    http://www.randymillerprints.com/NEFRbook.html
    Still no PayPal buttons.
    In my desktop folder I kept the "html" file as created by iWeb and also have one with the "htm" extension. From my desktop folder, when I click directly on either file it opens a page in Firefox which correctly shows the PayPal buttons. I've checked to see that all the files from my folder are transferred to the server. All my other pages load correctly.
    Any thoughts on why the PayPal buttons are not showing on that one page?

  • Change XSD / XML dataset during runtime and display texts in field explorer

    Hi there,
    I am changing the datasource of a report during runtime. Afterwards, I would like to change the texts of the fields appearing in the field explorer.
    I tried:
    CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass xmlDS =
    new CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass();
    byte[] xmlContent = reportContent.getXmlContent();
    byte[] xsdContent = reportContent.getXsdContent();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xmlData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xsdData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    xmlData.ByteArray = xmlContent;
    xmlDS.XMLData = xmlData;
    xsdData.ByteArray = xsdContent;
    xmlDS.XMLSchema = xsdData;
    rasDoc.DatabaseController.SetDataSource(xmlDS, "", "");
    rasDoc.Database.Tables[0].Description = "POMMES";
    for (int i = 0; i < rasDoc.DatabaseController.Database.Tables[0].DataFields.Count; i++)
    rasDoc.Database.Tables[0].DataFields.Name = "TEST";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Name);
    rasDoc.Database.Tables[0].DataFields.HeadingText = "HOORAY";
    rasDoc.Database.Tables[0].DataFields.Description = "NOPE";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Description);
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.HeadingText);
    When running this, the message boxes include the right strings I set before but when this is done, the filed explorer still shows no changes. What am I doing wrong?
    Also, I would like to change the field texts that are displayed in the field explorer. How can this be done?
    Thanks,
    Pascal

    Also, I do not understand why I am not able to change the display of the fields in the filed explorer.
    This coding does not change a bit, but why??
    //preparation
    string tableName = reportDataSet.Tables[0].TableName;
                  // Get the table definition exactly like the definition of my own dataset.
                  CrystalDecisions.ReportAppServer.DataDefModel.Table table = GetTable(tableName);
                  table.ConnectionInfo = connectionInfo;
                  //delete all existing tables if there are any
                  foreach (CrystalDecisions.ReportAppServer.DataDefModel.Table oldTable in rasDoc.DatabaseController.Database.Tables)
                      rasDoc.DatabaseController.RemoveTable(oldTable.Name);
                  //add my new table with the IDs of the XSD
                  rasDoc.DatabaseController.AddTable(table, null);
                  //now I want to change the displayed fields texts
                  CrystalDecisions.ReportAppServer.DataDefModel.Tables modifyTables =
                      rasDoc.DatabaseController.Database.Tables;
                  CrystalDecisions.ReportAppServer.DataDefModel.Table myTable =
                      (CrystalDecisions.ReportAppServer.DataDefModel.Table)modifyTables[0];
                  Fields fields = myTable.DataFields;
                  for (int i = 0; i < fields.Count; i++)
                      ISCRField field = fields<i>;
                      ResultFieldController resultFieldController =
                         rasDoc.DataDefController.ResultFieldController;
                      try
                          resultFieldController.Remove(field);
                          string sText = "";
                          sText = "Bäschreibung" + i.ToString();
                          field.Description = new string(sText.ToCharArray());
                          sText = "Häding" + i.ToString();
                          field.HeadingText = new string(sText.ToCharArray());
                          //sText = "Näme" + i.ToString();
                          //field.Name = new string(sText.ToCharArray());
                          resultFieldController.Add(-1, field);
                      catch (Exception exp)
                          MessageBox.Show(exp.Message);
    I am completely stuck.
    Thanks for any help.
    Pascal
    Edited by: Pascal Schmidt-Volkmar on Sep 30, 2008 9:31 AM

  • Added field to dataset not showing on report

    I have a report with multiple datasets for an existing report.  I am adding a field to one of these datasets (Monthly Summary) titled BonusYTD.  When I run the sp in the SSRS query designer it shows that the field BonusYTD is populated but when
    I place the field in the table it shows nothing.  I have checked the textbox to see if it had an hidden properties and even went to a different textbox that was displaying data and changed the field to BonusYTD and it still didn't show up.  I checked
    my connection to ensure I was previewing the report on the correct development server and refreshed the fields again in the dataset.  I am not understanding why the field BonusYTD is showing up in the list of available fields for this dataset yet the
    textbox that I put it in is not displaying any data.  Please help.

    Hi There
    Normally when we preview a report the data for the report is cached to a file on the local computer.
     When we preview the report again using the same query, parameters, and credentials,
     Report Designer retrieves the cached copy rather than running the query. The data file is normally
     saved as <yourreportname>.rdl.data in the directory as the report definition file save.
    Normally the cached file doesn’t work once we modify the query. At this time,
     I can suggest that you please delete the cached .rdl.data file and then check the problem again.
    If you have any question please let me know.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • Changes to edd files not showing up in the DITA 1.2 applications

    I made changes to the edd files in the DITA 1.2 folder, but they aren't showing up when I use applications that are linked to them.  The changes I made don't go into effect until I import element definitions, and I don't want to do that for every file.  Has anyone else had this problem? 
    Thanks!

    After updating the EDD, you have to import that into the corresponding template(s). Be careful not to import the EDD into the wrong template. Note that the default setup for DITA 1.2 in FM is to have separate structure applications for each topic type. That means you have to maintain separate EDDs and tempaltes for each. The EDDs are set up to be shared where apporpriate (via text insets), but it can be hard to keep track of which goes where.
    The best approach is to clone the default apps to make apps of your own name, so you can always test with the default apps .. because you *will* eventually break something and won't know what happened.
    Cheers and good luck!
    ...scott

Maybe you are looking for