IE 6/7 & XMLDataSets

I'm going nuts trying to figure out what the deal is with
this very simple page using very basic spry. It works fine in
Safari and Firefox but I see some very strange behavior in IE 6/7.
The page will mostly load then I get an error that says:
Line: 50
Char:6
Error: Object doesn't support this action
Code:0
The page stops loading the XML and what is really odd is spry
recovers from the error if you click on the accordion box and all
is fine however no more javascript will run on the page afterwards.
Since the only javascript on the page is spry I'm assuming it
is in it.
Markup for the page is as follows
<!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>Switchpod Podcast Statistics</title>
<script type="text/javascript"
src="/js/spry/xpath.js"></script>
<script type="text/javascript"
src="/js/spry/SpryData.js"></script>
<script type="text/javascript"
src="/js/spry/SpryNestedXMLDataSet.js"></script>
<script type="text/javascript"
src="/js/spry/SpryAccordion.js"></script>
<script type="text/javascript">
<!--
var dsSummary = new
Spry.Data.XMLDataSet('/statistics/summary','report/summary',{useCache:false});
var dsMonths = new
Spry.Data.NestedXMLDataSet(dsSummary,'month');
var dsRefer = new
Spry.Data.NestedXMLDataSet(dsSummary,'referer');
var dsCountry = new
Spry.Data.NestedXMLDataSet(dsSummary,'country');
var dsEps = new
Spry.Data.NestedXMLDataSet(dsSummary,'episode');
-->
</script>
<link rel="stylesheet" type="text/css"
href="/statistics/styles/core.css" />
</head>
<body>
<div id='page'>
<div id='hed' spry:region="dsSummary">Statistic
Summary for "{@userName}"</div>
<div id='generalSummary'>
<div id="chart"></div>
<div id="top5" class="AquaAccordion">
<div class="panel">
<div class="tab">Summary</div>
<div class="content">
<div id="summary" spry:region="dsSummary">
<ul>
<li>Verified Reuqests:{@total}</li>
<li>Other Requests:{@other}</li>
<li>Total Requests:{@gTotal}</li>
</ul>
</div>
</div>
</div>
<div class="panel">
<div class="tab">Monthly Request Totals</div>
<div class="content">
<div id="monthly" spry:region="dsMonths">
<table id="monthTable">
<tr>
<th>Date</th>
<th># Requests</th>
<th></th>
</tr>
<tr spry:repeat="dsMonths">
<td class="monthly">{@name}</td>
<td class="monthlyValue">{@total}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="panel">
<div class="tab">Top 5 Referers</div>
<div class="content" spry:region="dsRefer">
<ul spry:repeat="dsRefer">
<li><a href="{@link}"
target="_blank">{@name}</a> {@total}</li>
</ul>
</div>
</div>
<div class="panel">
<div class="tab">Top 5 Countries</div>
<div class="content" spry:region="dsCountry">
<ul spry:repeat="dsCountry">
<li>{@name} {@total}</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var Acc1 = new Spry.Widget.Accordion("top5", { hoverClass:
"hover", openClass: "open", closedClass: "closed", focusedClass:
"focused", enableKeyboardNavigation: false});
</script>
<div id='epsCard'>
<div id="epsCardTitle">Account Episodes</div>
<div id="episodeSummary">
<div id="episodes">
<div id='eps_chart'></div>
</div>
</div>
</div>
</body>
</html>

Hi falkbar,
I'm not seeing anything obvious. It's really hard to figure
out what the problem is unless we see it in action. For example, we
can't tell if it's because it's not finding JS files on your
server, or XML file isn't being read, etc.
Do you have an URL?
--== Kin ==--

Similar Messages

  • XMLDataSet works, but not when loaded with UpdateContent

    I have page that contains a spry collaspile panel area and a
    xmldataset.
    The page when accessed directly from a url Loads fine
    http://www.gillespiecrm.com/display/default/clientdetail.template.php?uid=1&client=427
    However, if I take the above try to load it within another
    page of an application with updateContent
    Spry.Utils.updateContent('client' + sTabDivId + 'detail',
    'display/default/clientdetail.template.php?uid=1&client=427');
    The collasible tabs work, but the xmldataset does not.
    can anyone explain why this is occuring?
    Thanks
    Z

    Hi Zeus,
    I have already answered this query in a different post. May
    be you should go through it
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1295717&enterthread=y
    You need to replace Spry.Utils.setInnerHTML() method as
    explained there.
    -JV

  • Adding a URL parameter to the path to spry XMLdataset

    anyone know an easy way to code this one.
    I can pull in xml and do what ever I want with it, but I want to pull in an XML page that is generated with the URL parameters of the current page
    so  instead of
    var ds1 = new Spry.Data.XMLDataSet("my_XML.php", "export/row",{useCache:false,loadInterval:2000});
    i'd like the url to include the params of the current page
    in php something like "my_XML.php?jobnumber=".$var1."&version=".$var2 ;
    where var1 and var2 are URL params of the current page URL
    I'm guessing I need to create the javascript equivalent to var ds1 = new Spry.Data.XMLDataSet("my_XML.php",  etc
    but I've got no idea what that might be
    anyone help??

    And Spry version where the URL is myfile.html?file=employees
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"></script>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet">
    <script type="text/javascript">
    var params = Spry.Utils.getLocationParamsAsObject();
    var ds1 = new Spry.Data.XMLDataSet(params.file+".xml", "employees/employee");
    </script>
    <body>
    <div class="MasterDetail">
      <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{firstname}<br />
        {lastname}</div>
      </div>
      <div spry:detailregion="ds1" class="DetailContainer">
        <div class="DetailColumn">{firstname}</div>
        <div class="DetailColumn">{lastname}</div>
        <div class="DetailColumn">{joinDate}</div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    The URL parameters can be adjusted to suit.
    Gramps

  • Using Spry.Data.XMLDataSet. Can xml file name be set to change on calendar date?

    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>

  • XMLDataSet works in FF and IE7, not IE6

    So on our website we've got a page with a Spry tabbed panel.
    Two of the four panels load a Spry XMLDataSet. Both datasets are
    being generated from a standard RSS feed. Everything works fine in
    IE7 and FireFox, but in IE6, we get the spry:state=error. An
    example of the code:
    var dsHeadlines_filter = function(dataSet, row, rowNumber) {
    row["link"] = Url.decode(row["link"]);
    return row;
    var dsPressReleases_filter = function(dataSet, row,
    rowNumber) {
    // row["link"] = Url.decode(row["link"]);
    row["link"] = "
    http://www.chaminade.edu/news/pr/rss.php?"
    + Url.decode(row["link"]);
    row["link"] =
    row["link"].replace(/CustomDispForm.aspx/,"rss_news.aspx");
    var item_date = new Date(row["pubDate"]);
    var today = new Date();
    var one_day=1000*60*60*24;
    if
    (Math.ceil((today.getTime()-item_date.getTime())/(one_day)) >
    60)
    return null;
    else
    return row;
    var dsHeadlines = new Spry.Data.XMLDataSet("
    http://www.chaminade.edu/includes/rss.php?http://news.google.com/news??svnum=10&as_scoring =n&hl=en&tab=wn&ie=UTF-8&ned=us&as_drrb=q&as_qdr=&as_mind=18&as_minm=1&as_maxd=17&as_maxm= 2&geo=&aq=f&q=%22chaminade+university%22&output=rss",
    "rss/channel/item",{sortOnLoad:"pubDate",sortOrderOnLoad:"descending",useCache:false});
    dsHeadlines.setColumnType("pubDate", "date");
    dsHeadlines.filterData(dsHeadlines_filter);
    var dsPressReleases = new Spry.Data.XMLDataSet("
    http://www.chaminade.edu/includes/rss.php?https://portal.chaminade.edu/_layouts/listfeed.a spx?List=%7B88741681%2D7558%2D4BF3%2DA377%2DBC59EB62B903%7D",
    "rss/channel/item",{sortOnLoad:"pubDate",sortOrderOnLoad:"descending",useCache:false});
    dsPressReleases.setColumnType("pubDate", "date");
    dsPressReleases.filterData(dsPressReleases_filter);
    Does anyone have an idea of why this isn't working in IE6?
    IE6 doesn't even report any error messages. It simply shows the
    HTML we setup upon a spry:state=error condition.

    Yep, it was definately a content-type issue. Thanks for the
    tip! My PHP/RSS parser was inadvertently setting the content type
    back to text/html. I was able to override the function and set it
    to text/xml, and it works great in all browsers including IE6.
    Thanks again!

  • 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

  • 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.

  • Refresh Issue in XMLDataSet with IE

    I'm running into this issue on Internet Explorer 6, not on
    Firefox or Safari. I'm basically using the Product Table Example
    app, and use the XMLDataSet object pointing to a PHP page called
    getOrders.php that returns the XML dynamically, based on mySQL
    queries. Whenever I make changes to the records, the XMLDataSet
    doesn't load a fresh copy of th PHP file thus not reflecting the
    changes in the display page. Even if I use the usecache: false
    option or define a reload interval, it is not refreshing the page.
    So I went ahead and directly opened the .php file in the browser
    and it returns the XML displayed in the browser... and it is the
    outdated content. So I'll have to ctrl-click Refresh in order to
    force download fresh content and then it seems to update itself.
    Again, this is on IE browser only (6.0 <), not on Firefox, not
    on Safari...
    Anyone out there that ran into the same / similar issue?
    Thanks for your help, much appreciated!
    -ralf

    Thanks for the hint. I have tried to insert the meta tags,
    but it didn't work for me, unfortunately. Now, what I found out is,
    that this only happens if the HTTPRequest Object opens a URL that
    is named always the same. So, If I were to change something in the
    URL every time, it would basically be a new URL and IE has to load
    it, because it's brand new, and the cache could serve no purpose.
    The way I did this is by adding a parameter that changes all the
    time: a random number.
    the line in my source code:
    var dsOrders = new Spry.Data.XMLDataSet("
    http://www.my-domain.com/my-subdir/loadOrders.php",
    "/my-results", { useCache: false, loadInterval: 60000 });
    has been altered to include the current timestamp:
    var rightnow = new Date();
    var var_random = rightnow.toGMTString();
    var dsOrders = new Spry.Data.XMLDataSet("
    http://www.my-domain.com/my-subdir/loadOrders.php?random="+var_random,
    "/response/result/orders/order", { useCache: false, loadInterval:
    60000 });
    This worked for me. Thanks for the hint though, it opened my
    mindset to come up with this solution.
    thx,
    -ralf

  • XMLdatasets: How to combine multiple xml data sources??

    What I'm trying to do (without any results so far...) is to combine data from two different xml sources.
    I have one source with a list of cultural events (agenda.xml) and another with a list of contacts (contacts.xml). Each source has a column with a contact name <co_name>.
    I use a MasterDetail layout. When you choose an event in the MasterContainer (agenda.xml), the DetailContainer should display not only details from agenda.xml but when the name <co_name> in agenda.xml MATCH exactly a name <co_name> in contacts.xml, the DetailContainer also display the telephone number <co_phone> from contact.xml.
    I will put my code down here, I hope somebody can help me find out what I'm doing wrong. (I tried something with "getdata" but obviously, it doesn't works...)
    Thank you very much in advance!!!!!!
    Véro
    FIRST DATATSET: agenda.xml
    <events>
    <event>
        <ev_title>Title event 1</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 2</ev_title>
        <co_name>marc</co_name>
    </event>
    <event>
        <ev_title>Title event 3</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 4</ev_title>
        <co_name>marc</co_name>
    </event>   
    </events>
    SECOND DATASET: contacts.xml
    <contacts>
    <contact>
        <co_name>marc</co_name>
        <co_phone>123 phone of marc</co_phone>
    </contact>
    <contact>
        <co_name>vero</co_name>
        <co_phone>456 phone of vero</co_phone>
    </contact>
    </contacts>
    HTML DOCUMENT
    <html>
    <head>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var dsAgenda = new Spry.Data.XMLDataSet("agenda.xml", "events/event");
    </script>
    <script type="text/javascript">
    var dsContacts = new Spry.Data.XMLDataSet("contacts.xml", "contacts/contact");
    function matchTheName() {
    var rows = dsContacts.getData();
    for (var i = 0; i < rows.length; i++)
      if (rows[i]["co_name"] == "{dsAgenda::co_name}")
        return rows[i]["dsContacts::co_name"];
    </script>
    </head>
    <body>
        <div class="MasterDetail">
            <div spry:region="dsAgenda" class="MasterContainer">
                <div class="MasterColumn" spry:repeat="dsAgenda" spry:setrow="dsAgenda" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
                    <div>{ev_title}</div>
                    <div>{co_name}</div>
                </div>
            </div>
            <div spry:detailregion="dsAgenda dsContacts" class="DetailContainer">
                <div class="DetailColumnTitle">{dsAgenda::ev_title}</div>
                <div class="DetailColumn">{dsAgenda::co_name}</div>
                <div spry:if="'{dsAgenda::co_name}' == '{dsContacts::co_name}'" class="DetailColumn">{dsContacts::co_phone}</div>
            </div>
        </div> 
    </body>
    </html>

    create a new empty SpryDataSet.
    var dsAll = new Spry.Data.DataSet(); // new base dataset
    on your existing datasets, add onPostLoad observers, this are events that will be notified once the datasets has been loaded.
    var default_obs = {
         onPostLoad: function(){
              // when both datasets are loaded, call out init fn
             if( ds1.getData() && ds2.getData() ){
                   init();
    Than we add it both datasets:
    ds1.addObserver( default_obs ); // add the observer object to the datasets
    ds2.addObserver( default_obs );
    Now they will both call the init function when both the datasets has been loaded. The init function will create the actual new dataset. The data in the SpryDataSet is basically just an array with objects. And Spry has a method that loads an array in to the datasets.setDataFromArray
    We are going to use that function to construct a new dataset:
    function init(){
         if( dsAll.getData() ){
              return; // we already have data in our dsAll dataset, so no use to do it all over again
         var source = ds1.getData();
         var length = source.length;
         var result = [];
         for( var i = 0; i < length; i++ ){
              var matched_row = ds2.findRowsWithColumnValues({id: source[i]['@id']}); // checks if ds2. has a column with id: value
              if( matched_row ){
                   var row = result[ result.length ];
                   row = source[i];
                   Spry.Utils.setOptions( row, matched_row ); // includes the matched_row object inside the new row object
         dsAll.setDataFromArray( result ); // set the new array as data
    Something like should be needed to create it..

  • Filter data in multiple tabs from same XMLDataSet

    Hi All:
    What I need to do is display the content from one XML file in
    several different modes. I would prefer to use only one data call
    if possible because all information exists in the one file;
    however, I have not yet found a way to successfully filter the data
    on load.
    The data needs to display in three modes: alphabetically, by
    phase, and by owner. The Spry tab widget is used to create the
    'modes'. Within each mode, I need to break it down further. The
    alphabetical listing exists as an additional tabbed subset -- one
    tab for each letter. The phases and owner tabs also have sub tab
    arrangements.
    Within each secondary tab, the data needs to display based
    the first letter in its name field. Therefore on tabbed panel 'A',
    I need to have a table with those documents whose name begins with
    an 'a'; tabbed panel 'B' with a table with all the docs beginning
    with b, etc. The alpha listing has 26 sub tabs. The owner and phase
    listings 8 each. Each panel will contain a table. The information
    simple repeats in different arrangements.
    While using the alpha listing as an example, I can filter the
    data theoretically on tabs B - Z via an on click method, I also
    need to filter the 'A' to show ONLY 'A' on load. I have not found a
    way to do both of these tricks. Additionally when you click back an
    forth between tabs, the data disappears.
    While a database would be easier, I cannot use one. The data
    is generated from an Excel spreadsheet into the xml file from which
    the data is called by Spry.
    I am flummoxed. I have included the relevant code snippets
    below, including the tabs and the first panel which includes the
    table code which repeats in each tabbed panel.
    Thanks for your help.
    Skip Keats
    CODE SNIPPETS (Comment out = previous tries):
    <script src="../assets/spry/xpath.js"
    type="text/javascript"></script>
    <script src="../assets/spry/SpryData.js"
    type="text/javascript"></script>
    <script src="../assets/spry/SpryTabbedPanels.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsSDLC = new
    Spry.Data.XMLDataSet("../assets/data/sdlc_doc_templates.xml",
    "worksheets/worksheet",{sortOnLoad:"SDLC_Template_Document_Name",sortOrderOnLoad:"ascendi ng",distinctOnLoad:true});
    dsSDLC.setColumnType("SDLC_LastModified", "date");
    function aA(ds, row, index){ var c =
    row.SDLC_Template_Document_Name.charAt(0); return c != 'A' ? null :
    row; };
    function aB(ds, row, index){ var c =
    row.SDLC_Template_Document_Name.charAt(0); return c != 'B' ? null :
    row; };
    function aC(ds, row, index){ var c =
    row.SDLC_Template_Document_Name.charAt(0); return c != 'C' ? null :
    row; };
    //function loadFilter(f) { dsSDLC.addFilter(f, true); }
    var dsAlphaA = dsSDLC;
    var dsAlphaB = dsSDLC;
    var dsAlphaC = dsSDLC;
    if (document.getElementById('pAlphaA')) {
    dsAlphaA.filter(aA); }
    if (document.getElementById('pAlphaB')) {
    dsAlphaB.filter(aB); }
    if (document.getElementById('pAlphaC')) {
    dsAlphaC.filter(aC); }
    /*var rgnA = Spry.Data.getRegion('dsAlphaA');
    var rgnB = Spry.Data.getRegion('dsAlphaB');
    var rgnC = Spry.Data.getRegion('dsAlphaC');
    if (rgnA) { dsAlphaA.filter(aA); }
    if (rgnB) { dsAlphaB.filter(aB); }
    if (rgnC) { dsAlphaC.filter(aC); }
    //var rgnA = Spry.Data.getRegion('pAlphaA');
    //var rgnB = Spry.Data.getRegion('pAlphaB');
    //var rgnC = Spry.Data.getRegion('pAlphaC');*/
    /*if (rgnA) {
    var name = rgn.getState();
    if (name == "loading") { loadFilter(aA); }
    if (rgnB) {
    var name = rgn.getState();
    if (name == "loading") { loadFilter(aB); }
    if (rgnC) {
    var name = rgn.getState();
    if (name == "loading") { loadFilter(aC); }
    <div id="sdlcFull" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab"
    tabindex="0">Alpha</li>
    <li class="TabbedPanelsTab"
    tabindex="0">Phase</li>
    <li class="TabbedPanelsTab"
    tabindex="0">Owner</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">
    <p>
    This is an alphabetical listing of the library.
    </p>
    <div id="sdlcAlpha" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li id="tAlphaA" class="TabbedPanelsTab"
    tabindex="0">A</li>
    <li id="tAlphaB" class="TabbedPanelsTab"
    tabindex="0">B</li>
    <li id="tAlphaC" class="TabbedPanelsTab"
    tabindex="0">C</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div id="pAlphaA" class="TabbedPanelsContent"
    spry:region="dsAlphaA">
    <table>
    <thead>
    <tr>
    <th id="DocName">Template Document Name</th>
    <th id="DocOwner">Document Owner</th>
    <th id="Phase">Phase</th>
    <th id="LastMod">Document Modified On</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td colspan="4">Info</td>
    </tr>
    </tfoot>
    <tbody>
    <tr spry:repeat="dsAlphaA">
    <td id="RA{ds_RowID}" headers="DocName"><a
    href="{SDLC_Document_File_Name}"
    title="{SDLC_Template_Document_Name}
    {SDLC_Description}">{SDLC_Template_Document_Name}</a></td>
    <td headers="RA{ds_RowID}
    DocOwner">{SDLC_Document_Owner}</td>
    <td headers="RA{ds_RowID}
    Phase">{SDLC_Phase}</td>
    <td headers="RA{ds_RowID}
    LastMod">{SDLC_LastModified}</td>
    </tr>
    </tbody>
    </table>
    </div>
    <div id="pAlphaB" class="TabbedPanelsContent"
    spry:region="dsAlphaB">
    <table>
    <thead>
    <tr>
    <th id="DocName">Template Document Name</th>
    <th id="DocOwner">Document Owner</th>
    <th id="Phase">Phase</th>
    <th id="LastMod">Document Modified On</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td colspan="4">Info</td>
    </tr>
    </tfoot>
    <tbody>
    <tr spry:repeat="dsAlphaB">
    <td id="RA{ds_RowID}" headers="DocName"><a
    href="{SDLC_Document_File_Name}"
    title="{SDLC_Template_Document_Name}
    {SDLC_Description}">{SDLC_Template_Document_Name}</a></td>
    <td headers="RA{ds_RowID}
    DocOwner">{SDLC_Document_Owner}</td>
    <td headers="RA{ds_RowID}
    Phase">{SDLC_Phase}</td>
    <td headers="RA{ds_RowID}
    LastMod">{SDLC_LastModified}</td>
    </tr>
    </tbody>
    </table>
    </div>
    <div id="pAlphaC" class="TabbedPanelsContent"
    spry:region="dsAlphaC">
    <table>
    <thead>
    <tr>
    <th id="DocName">Template Document Name</th>
    <th id="DocOwner">Document Owner</th>
    <th id="Phase">Phase</th>
    <th id="LastMod">Document Modified On</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td colspan="4">Info</td>
    </tr>
    </tfoot>
    <tbody>
    <tr spry:repeat="dsAlphaC">
    <td id="RA{ds_RowID}" headers="DocName"><a
    href="{SDLC_Document_File_Name}"
    title="{SDLC_Template_Document_Name}
    {SDLC_Description}">{SDLC_Template_Document_Name}</a></td>
    <td headers="RA{ds_RowID}
    DocOwner">{SDLC_Document_Owner}</td>
    <td headers="RA{ds_RowID}
    Phase">{SDLC_Phase}</td>
    <td headers="RA{ds_RowID}
    LastMod">{SDLC_LastModified}</td>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    </div>
    </div>

    A table control is a 2D array of strings. Thus, you have to work within the rules of how to add elements to a 2D array. The primary rule is that it must always be rectangular. The default paste action on a table control will try to insert rows/columns depending on the contents of the clipboard. Thus, if your initial table 2 contained no data, and you tried to paste two cells, they would end up at the top-left corner, not in rows 4 and 5. Even if there were data already present (or just blank cells, which would be empty strings), the paste would not overwrite the contents - it would insert rows/columns.
    This means you need to override the way the paste works. The easiest way to do this is with an event structure, and you handle the target table control's "Shortcut Menu Selection (App)" event. Here you can use the Point to Row Column method to get the row/column where the cursor was located. Then, you can determine whether to use Replace Array Subset or Insert Into Array to replace the cell contents, or add new ones if the user is pasting beyond the 2D array contents.

  • XMLDataSet Refuses To Show Me The Data In IE7

    Hi, I tried to create a test application that shows the
    contents of a directory, using Spry + HTML + PHP.
    I run the following page (see end of post) from the test
    server (it's all Hand coded - no DW suport for spry, no sites
    defined - nothing).
    In FF2 everything works like a charm. In IE7, though, the
    table and generaly the contents inside <div
    spry:state="ready"> will not show what so ever, and only what's
    inside <div spry:state="loading"> is shown ...
    The src to the scripts is ok, and they load fine. The xml
    document is validated ok (I loaded it using MSXML2.DOMDocument in
    IE7 and it parsed ok).
    I don't have the slightest idea as what's wrong with it in
    IE7. Can someone help ?
    Thanks
    P.S.: I've tried to delete the table and leave the
    spry:state="ready" region empty with a text message. Still no
    results.
    ______________________ PAGE 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>
    <title>Directory Listing</title>
    <meta http-equiv="content-type" content="text/html;
    charset=utf-8" />
    <link rel="stylesheet" media="all" type="text/css"
    href="../../styles.css" />
    <script language="javascript" type="text/javascript"
    src="../../_spry/includes/xpath.js"></script>
    <script language="javascript" type="text/javascript"
    src="../../_spry/includes/SpryData.js"></script>
    <script language="javascript" type="text/javascript">
    <!--
    var dsFileList = new Spry.Data.XMLDataSet(
    "./get.directory.sck.php", "directory/entry" , {sortOnLoad :
    "text()"} );
    //-->
    </script>
    </head>
    <body>
    <div spry:region="dsFileList">
    <div spry:state="loading"><div class="WindowFrame
    Loading">Loading</div></div>
    <div spry:state="failed"><div class="WindowFrame
    Error">Error</div></div>
    <div spry:state="ready">
    <table class="TabularList" cellpadding="2"
    cellspacing="1">
    <tr class="Headers">
    <th style="width: 30px"> </th>
    <th spry:sort="text()">File Name</th>
    <th style="width: 100px"
    spry:sort="@type">Type</th>
    <th style="width: 100px" spry:sort="@size">File
    Size</th>
    </tr>
    <tr class="Row" spry:repeat="dsFileList"
    spry:hover="RowHover" spry:select="RowSelect">
    <td><img src="../../images/{@icon}_ico.gif"
    class="FileIcon" /></td>
    <td>{entry}</td>
    <td>{@type}</td>
    <td>{@size}</td>
    </tr>
    </table>
    </div>
    </div>
    </body>
    </html>

    Don Hi,
    I understand what you say... I've forced
    header("Content-type: text/xml; charset=utf-8") in the php page /
    xml provider and added a <?xml .... header for that particular
    reason.
    When I open the xml data provider directly from IE7 it shows
    (highlights and acts) as xml file. When I create an
    ActiveXObject("MSXML2.DOMDocument") and load the provider with it
    (xmlDoc.load()) it's loaded and parses fine (I imagine that you use
    this object in spry & IE). I don't think it's the xml, but I
    could be wrong.
    The problem happens when it's fed to the XMLDataSet and only
    in IE7. The dataset shows the contents of the spry:state="loading".
    Also, the spry file I've downloaded is spry_p1_5_051707.zip.
    I've downloaded it 3-4 days ago so it must be the most recent
    version.
    I've set up a public version of the script at
    http://b-sides.quadelectra.com/spry_filelistscript/app/pages/files/
    in order to give you an idea....
    Something i forgot to mention: The examples that go with the
    SDK work fine (with IE & FF). It could be that I'm doing
    something wrong. On the other hand I ve checked, rechecked and
    re-rechecked everything and I can't seem to find any bugs.
    Thanks.

  • XMLDataSet and Dynamic XML using JSP

    I am trying to use the XMLDataSet function to call a jsp page
    instead of an xml file. The jsp page fetches records out of a db
    and creates xml to return to the spry function. Nothing seems to be
    returned, and blank spry data region on page.
    If i supply a xml file to the function it works correctly.
    I adapted the ASP/PHP samples from XMLExport demo. Code as
    follows:- If i run 2nd jsp directly, the browser shows the xml as
    expected.
    --- TEST.JSP ---
    <script type="text/javascript">
    Spry.Data.Region.debug=true;
    var dsPeople = new Spry.Data.XMLDataSet("transtoxml.jsp",
    "company/person");
    </script>
    --- transtoxml.jsp ---
    <%@ page language="java"
    import="java.sql.*, java.io.*, java.util.*,
    com.Ostermiller.util.*"
    errorPage="" %>
    <%@ include file="globals.jsp" %>
    <%
    String SQL="";
    Statement sTransaction;
    ResultSet rTransaction;
    try
    Class.forName(className);
    con =
    java.sql.DriverManager.getConnection(connectionURL,userName,password);
    }catch(Exception e){
    out.print(e.toString());
    out.print("Error connecting to database " + connectionURL);
    SQL ="SELECT ";
    SQL+="[ID], ";
    SQL+="[DocumentNo]";
    SQL+="FROM TRX_TRANSACTION_MAPPING";
    sTransaction = con.createStatement();
    try {
    rTransaction = sTransaction.executeQuery(SQL);
    response.setContentType("text/xml");
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("pragma","no-cache");
    %>
    <?xml version='1.0' encoding='iso-8859-1'?>
    <company>
    <% while(rTransaction.next()) { %>
    <person>
    <id><%=(rTransaction.getString("ID"))%></id>
    </person>
    <% } %>
    </company>
    <%
    response.flushBuffer();
    sTransaction.close();
    } catch (SQLException e) {
    out.print(e);
    %>

    This is the xml output the jsp gives when run directly:- Cut
    n pasted from browser. There does appear to be an error, because
    the spry:state="error" div is being displayed. If i paste the
    following into a file all is ok, any ideas anyone.
    regards
    sm@rt
    <?xml version="1.0" encoding="iso-8859-1" ?>
    - <company>
    - <person>
    <id>117</id>
    </person>
    - <person>
    <id>118</id>
    </person>
    - <person>
    <id>119</id>
    </person>
    - <person>
    <id>120</id>
    </person>
    - <person>
    <id>121</id>
    </person>
    - <person>
    <id>122</id>
    </person>
    - <person>
    <id>123</id>
    </person>
    - <person>
    <id>124</id>
    </person>
    - <person>
    <id>125</id>
    </person>
    - <person>
    <id>126</id>
    </person>
    - <person>
    <id>127</id>
    </person>
    - <person>
    <id>128</id>
    </person>
    - <person>
    <id>129</id>
    </person>
    - <person>
    <id>130</id>
    </person>
    - <person>
    <id>131</id>
    </person>
    - <person>
    <id>132</id>
    </person>
    - <person>
    <id>133</id>
    </person>
    - <person>
    <id>134</id>
    </person>
    - <person>
    <id>135</id>
    </person>
    - <person>
    <id>136</id>
    </person>
    - <person>
    <id>137</id>
    </person>
    - <person>
    <id>138</id>
    </person>
    - <person>
    <id>139</id>
    </person>
    - <person>
    <id>141</id>
    </person>
    </company>

  • 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 wrong

    This one was solved. I copied the files in SpryAsset from a
    new one, into the folder on this site. Then the problem was
    solved

  • Xmldataset is not working  with ie6 and ie7

    xmldataset is working with all browsers (ie8, opera, safari
    firefox) however it doesn't work with ie6 and ie7
    according to me all things are correct,my works doesn't
    appear ..
    http://www.turkedergi.com

    Hello
    I am pretty sure they know about this issue and software companies must not hear what the people say. For me it is logic that they watch what happen on the software market and try to adapt own products as soon as possible.
    This issue with IE8 is known and soon or later the updated version will be offered on download page but the question is: when?
    I cannot understand why they wait so long time. OK, to fix some issue and testing procedure can take a days but IE8 is not on the market from yesterday.
    Lets see how long it will be necessary for AuthenTec to fix this issue.

  • XMLDataSet Filter

    This should be simple, but I just can't find the answer at
    the moment. I am trying to apply a filter to a spry table using a
    XMLDataSet by selecting a value in a Spry validation select.
    The XMLdata that drives the table is as follows
    var ds2 = new
    Spry.Data.XMLDataSet("Data/NetballDatafeed190401.xml",
    "NetballList/NetballProducts[SubType='{ds3::Type}']",{sortOnLoad:"SubType",sortOrderOnLoa d:"ascending"});
    One of the fields in the XML table is SubType and so I am
    using [SubType='{ds3::Type}']" to dynamically set this up as I
    change the drop down selection.
    The spry drop down selection is defined as
    <div spry:region="ds3">
    <select name="select"
    onchange="ds3.setCurrentRow(this.value)"
    spry:repeatchildren="ds3">
    <option value="{ds_RowID}}">{Type}</option>
    </select>
    </div>
    On loading the table shows the selection of data I want,
    however once I select a value from the dropdown list the table goes
    blank. The ds3 dataset that drives the dropdown list has 1 field
    which is all the different options to filter ds2 on.
    Any help or different solutions would be gratefully received

    to do the the spry:if="'statement" needs to be in the
    <tr> rows you want to filter on

Maybe you are looking for

  • How to Delete hard drive on a crashed computer?

    How can I delete the hard drive on an old MacBook Pro so I can take it to ewaste for disposal - when the computer no longer opens/loads? Or is it safe to discard even if I wasnt able to delete the hard drive?

  • Print content of XML string to a spool

    Hello, In my program I have an XML string. I can display this on the screen using FM DISPLAY_XML_STRING. The problem is that when running the program in background, it does not generate a spool. Is there a standard way (function module or class) whic

  • Signing into Adobe ExportPDF

    Hi, I can't seem to convert my pdf file into a word doc even though I've bought the software and signed up. My password won't work either. Can you please help? Thanks

  • Pages version 5 - Is there a way to export to PDF and keep the hyperlinks?

    I previously used Pages 09 and when I exported to PDF for my online shop, the table of contents and hyperlinks all worked.  I've exported my first Pages version 5 document to PDF and none of the links work. Is there a fix for this?

  • My CD rom is no longer visible in windows explorer in my computer.

    Please could someone help with the following query. My CD rom is no longer visible in windows explorer in my computer. I have tried going to new hardware in control panel and couldn't find it. I have run the toshiba diags and it finds it and says its