Accordian - Main window data not changing

I'm putting together an accordion with a main area that
changes based upon the data in the accordion that the user chooses.
However, the main area data doesn't seem to change. Any help would
be great!
Here is a link (
http://clubs.wharton.upenn.edu/welcome/accordianX.html)
and below is the source.
<!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" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:127px;
top:61px;
width:358px;
height:259px;
z-index:1;
#apDiv2 {
position:absolute;
left:509px;
top:63px;
width:442px;
height:393px;
z-index:2;
img.thumbs {
float:left;
height:"";
width:"";
margin-right: 0px;
margin-bottom: 0px;
border: solid white 4px;
img.bigs {
height:"";
width:"";
margin-right: 2px;
margin-bottom: 2px;
border: solid black 7px;
-->
</style>
<script src="global.js"
type="text/javascript"></script>
<script type="text/javascript" src="
http://clubs.wharton.upenn.edu/welcome/includes/xpath.js"></script>
<script type="text/javascript" src="
http://clubs.wharton.upenn.edu/welcome/includes/SpryData.js"></script>
<script type="text/javascript">
var dsGallery = new Spry.Data.XMLDataSet("
http://clubs.wharton.upenn.edu/welcome/Subs/photos.xml",
"gallery/photos/photo");
</script>
<script type="text/javascript">
var dsGallery1 = new Spry.Data.XMLDataSet("
http://clubs.wharton.upenn.edu/welcome/Subs/photos1.xml",
"gallery/photos/photo");
</script>
<script type="text/javascript">
var dsGallery2 = new Spry.Data.XMLDataSet("
http://clubs.wharton.upenn.edu/welcome/Subs/photos2.xml",
"gallery/photos/photo");
</script>
<script src="
http://clubs.wharton.upenn.edu/welcome/SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
<link href="
http://clubs.wharton.upenn.edu/welcome/SpryAssets/SpryAccordion.css"
rel="stylesheet" type="text/css" />
<link href="global.css" rel="stylesheet" type="text/css"
/>
</head>
<body>
<div id="apDiv1">
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Welcome Weekend
Co-Chairs</div>
<div class="AccordionPanelContent"> WWCC Thumb Pics
<div spry:region="dsGallery" spry:repeat="dsGallery"
spry:setrow="dsGallery"><table border="0">
<tr >
<td >
<img src="
http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
class="thumbs"
onclick="dsGallery.setCurrentRow('{ds_RowID}');"/>
</td>
<td>{@desc}</td>
</tr>
</table>
</div>
</div></div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Committee A</div>
<div class="AccordionPanelContent">Committee A
Thumbs<div spry:region="dsGallery1" spry:repeat="dsGallery1"
spry:setrow="dsGallery1"><table border="0">
<tr >
<td >
<img src="
http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
class="thumbs"
onclick="dsGallery1.setCurrentRow('{ds_RowID}');"/>
</td>
<td>{@desc}</td>
</tr>
</table></div></div></div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Committee B</div>
<div class="AccordionPanelContent">Committee B Thumbs
<div spry:region="dsGallery2" spry:repeat="dsGallery2"
spry:setrow="dsGallery2"><table border="0">
<tr >
<td >
<img src="
http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
class="thumbs"
onclick="dsGallery2.setCurrentRow('{ds_RowID}');"/>
</td>
<td>{@desc}</td>
</tr>
</table></div>
</div>
</div>
</div>
<div id="apDiv2">
<div spry:detailregion="dsGallery">
<img src="
http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/{@path}"
><br/>{@desc}
</div></div></div>
</div>
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
</script>
</body>
</html>

The problem is that you have the spry:setrow on the div with
the spry:region. You need to place it on the elements that repeat.
Also, your current setup is creating a table with one row for
*each* item in the data set, when I think what you want is one
table with a row for each item. Try using this markup:
<div spry:region="dsGallery">
<table border="0">
<tr spry:repeat="dsGallery" spry:setrow="dsGallery">
<td ><img src="
http://clubs.wharton.upenn.edu/welcome/TeamPics/Images/Pictures/Thumbs/{@thumbpath}"
class="thumbs"
fooonclick="dsGallery.setCurrentRow('{ds_RowID}');"/></td>
<td>{@desc}</td>
</tr>
</table>
</div>
Also, you can remove the onclick attribute you added on your
<img> tag.
--== Kin ==--

Similar Messages

  • Smartforms main window is not printing

    Hi,
    I would like to ask what to do with this problem.
    The smartform main window is not printing in all the pages.  All the other windows, even the window with the total data is printing.  The only problem is the contents of the main window is not printing.
    Also, the problem only happens when the I've changed printer.
    When I use LOCL as printer, the smartform is OK but when I change the printer, the problem is encountered.
    This also happens when I change environment from development server to production server.  In production server, even the LOCL printer is encountering the problem.
    thanks.

    Hi Mike,
    Have you checked the device type in transaction SPAD? Try to click on Full Admininstration from application toolbar and select device types.
    Hope the above helps.
    Cheers,
    Patrick

  • Issue with main window data

    HI all,
    My main window data is not displayed on the third page.
    I have following page,.
    Page one (First page)
    Next Page(Next page of the first page will be triggrred in case of data overflow)
    Page Two(Which is copy of the first page and i am calling this page from the first page using the command line)
    Issue is my main window data is not displayed in the third page.
    I third page i called from the first page but the main window is coming as a blank.
    Kindly help
    Thanks & Regards

    Hi Sachin,
    Have you used Table or Template in the Main window...?
    Because, there are some scenarios in which the data will not be displayed in Templates used in the Samrtforms.
    Please check it out!
    Regards,
    Kittu

  • Application's main window is not repainted

    Hello everybody.
    The system I am using
    Product Version: NetBeans IDE 6.5 (Build 200811100001)
    Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
    System: Windows Vista version 6.0 running on x86; Cp1251; ru_RU (nb)I created Java Desktop application (New project - Java Desktop Application (no CRUD)) and put a JTable like this:
    mainPanel[JPanel]
        jScrollPane1[JScrollPane]
            jTable1[JTable]
    I did not do anything more. But after building project I have a problem with my application - main window does not repaint itself after another window is positioned over it(calculator, for example). It repaints only after I resized main window or something like that ...
    What am I doing wrong?
    Thank you.

    I found a solution - to resolve this bug I have to set -Dsun.java2d.noddraw=true VM flag.
    I found the same bug in a database - [4139083|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4139083] and it's submit date is *15-MAY-1998* !!!
    There is also an issue about that kind of a problem - [6343853|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6343853], submit date 31-OCT-2005.
    So, I guess unfortunately there are a lot of things to think about ...

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

  • Smartforms main window is not extending as it was made as a second window

    My Requirement is smartform coof two pages in which second one is an annexure.
    the second page should come for all the reports.
    now my first pages main window is not extending as it was made as secondary window.

    I created from scratch, it works well with dynamic text with both 0 and 200 lines (setup in initialization code):
    |__ &#37;PAGE1
    |   |__ TEXT with dynamic text &GT_TLINE&
    |   |__ COMMAND : GO TO &#37;PAGE2
    |__ &#37;PAGE2
        |__ TEXT with text element "LAST PAGE"

  • How can I get the favorites from my favorites tool bar to open in the main window and not the sidebar?

    I created a favorites toolbar. When I click on some of the icons, they open in the main window like I expect. Others open in a sidebar which I do not want and cannot even get to full size. How do I get all of them to open in the main window?

    Generally, Bookmarks that open in the Sidebar are from links that you clicked on on web sites to add their Bookmark. To change that, right-click on the Bookmarks, opening in the Sidebar, choose "Properties" and un-check "Load this bookmark in the sidebar".
    *For links and info on Bookmarks, see [https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks How do I use Bookmarks?]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to print main window data in second page without header

    hi friends.,,,,,,,,,,,,,,,,,,,,
    I am printing billing docu details in main window ,the data is coming in two pages but there is problem in printing as the tables is continuing in second page the line is not coming for the table for first row,space is also coming for second page for header .
    my issue is to remove space before printing table and line should come for the table for 1st row in second page.
    please help .
    thanks in  advance.

    Hi Raghukumar,
    1. For the line not coming on the top row of the second page, check if the rowtype u have used in the table has been given a border on the upper side.
    2.For the space issue in the second page, I assume you might have used only a single Page in your smartform and the same page is called again.Hence as per the main window size and length data will be displayed in all pages of the smartform.
    You may need to create a second page with the Main window length occupying the compete page so that data display starts from the top of the page. next Page attributes of the smartforms should be entered accordingly.
    Please try to elaborate your query to help us understand your issue.
    Regards,
    Rijuraj

  • DNG file modification date not changed by writing metadata?

    I use LR 2.7 on Windows XP.   To my surprise, I just noticed that writing metadata updates (e.g., new keywords) from LR to the DNG files does NOT appear to update the file modification date, which suggests obvious issues for backup strategies (yes, I understand that a changed modification date introduces other backup issues).   I have verfifed that the metatdata does indeed change in the DNG files, so I am mystified.   Can someone shed some light on this?   Thanks.
    js
    www.johnshorephoto.com

    Yes, I explicitely invoke "save metadata to file".   Furthemore, I have checked the behavior by (a) modifying DNGs in LR; (b) saving the metatdata to the DNG; (c) creating a new LR catalog and importing the revised DNGs.    The metadata changes do show up in the re-imported DNGs (and the metadata field "Metadata Date" correctly shows the recent change).  Morevover, the file sizes do change (wth the metadata changes) even though the modification dates shown in windows explorer do not change.
    However, I just redid the experiment to double check, and discovered an important clue - the mysterious behavior occurs when the DNG files are on a NAS device (in particular a Netgear ReadyNAS Duo.   To summarize:
         - When the DNG files are on a local hard drive, the file modification dates change as expected
         - When the DNG files are non local (i.e., on the network but on a NAS device), the file modification dates do not change even though the file sizes do change;
    What's more, I see the same behavior when accessing the DNGs via Adobe Bridge (CS5) - i.e., if I change the metadata, I'm asked if I want to apply the metadata changes to the DNG, and I say yes (and confirm by looking via Bridge at a copy of the changed file).   On a local disk, the file modificaiton dates change (as do the modification date displayed in Bridge), but if the files are on the NAS, the modification dates do not.
    Any additional thoughts?
    js

  • Overflow of Main window data in to variable windows

    Hi,
    I have a following scenario. I have a main window . I defined some other variable windows below the  main window. My problem is that when the data is full in main window it is not triggering page break and printing variable window in the next page. Instead, the data is priting in the first page it self mingling with the data of the variable windows. Any solutions please?

    Are you giving the next page  as the second page in the first page General Attributes?
    Have you checked any checkboxs in the conditions tab of the table node?
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • Schedule line : delivery date not changes

    Dear Gurus,
    When I change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    Please help me to change the same and kindly tell me, will it make any problem.
    fyi..
    If I have not created delivery for the respective sales document, then I can able to change the delivery date in the schedule line(sales document).
    I'm just a new born in this area so please feed me...
    Regards
    Viswanthan.G

    Hi Viswanath,
    When you change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    This is because the system calculates the dates based on avaliabiltiy check and it picks data from material master as well, based on purchasing processing time, GR processing time, loading time ..etc and it will conclude accordingly.
    Its like system will do backward schdeuling and establishes material avaliabilty date.
    Thanks & Regards,
    Krishna

  • Main window does not open

    This is my first post but I have been a mac user for over 6 years. I know what kind of mac users has never posted here. Sorry.
    Well I have been having some problems with apps in Tiger. When I open up apps such as iSquint, Parallels, EyeTV, Azureus & VisualHub the main window to view the app does not open or is not visible. I know it is open because of the light underneath the icon on the dock.
    I have not done much research on this issue because I thought this would be the best place to start.
    Also, when I installed Tiger I did a clean install.
    Thanks in advance,
    Mike

    I experienced the same problem with windows not opening in MS Word (2004) and Notebook. Only work-around I found was to reboot.

  • Trigger observer when data not changed

    Hi,
    I want trigger an observer function in a particular case when
    the data of a spry region is NOT changed. Does anybody know how to
    do this?
    Thanks

    Hi huubd90,
    You can only trigger observer functions when a notification
    has been received.
    For the data sets, we have the following notifications:
    onPreLoad, onPostLoad, onLoadError, onPreSort, onPostSort,
    onCurrentRowChanged.
    For data regions, we have:onLoadingData, onPreUpdate,
    onPostUpdate, onError.
    For more information, check the :
    data
    set overview
    You must use one of these.

  • Back up date not changing

    When I I sync my phone with my laptop and do a back up the date that appears for the back up does not change.  The sync date does update.  How do I get the back up date to change?
    Solved!
    Go to Solution.

    Hi
    marguerite wrote:
    the date that appears for the back up does not change. 
    How do you mean. using the DTM or S, on backup it produces a file to save. Please describe exactly what you are doing; we'll get there.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

Maybe you are looking for

  • How to pass security context in

    Hi, I am running BIP reports (Enterprise Edition) against application that requires a VPD context to be set up. How do I do this - is there anything like a LOGIN TRIGGER in BIP. I know that I can use a beforeReport trigger - however, I have a set of

  • How to determine User Device Affinity without SCCM!?

    Hard to know for sure. You can query the folder list at c:\users, and check the registry for the last logon dates of the various profiles. One would hope that the most recent logon(s) would be the primary user(s).

  • How to run JMF Applet on a machine without JMF installed

    Hi I have found many question about that but I don't undertand reply. I want display a JMF Applet on a machine without JMF installed. This PCs browser is the Netscape navigator 4.78 I have restrictions, I can't install anything on a client machine. W

  • Problem in visualizing applet

    The scenario is the one where I want to visualize an applet that shows execution of an auction platofrm remotely. The applet (which is the client) simply establishes a TCP connection with the server and gets updates. Everything works fine locally in

  • Plug-in issues causing one of my games to continuously crash with a 'stop plug-in'

    Hello.  I have tried and tried for months to fix a 'stop plug-in' error that causes one of my games to crash every two minutes.  I have un installed and re installed, allowed more memory for that game to store on my computer, and I have been to every