Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Spry collapsible panel with spry data

New Here ,
Mar 13, 2009 Mar 13, 2009

Copy link to clipboard

Copied

I have created a spry collapsible panel and wanted to put srpy data in it, to dynamically load.

i also want to hide the entire panel if no data is available.

It will show the data, but the click to open/close does not work.

here is the code.

TOPICS
Server side applications

Views

793
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 18, 2009 Mar 18, 2009

Copy link to clipboard

Copied

Is this actually possible?

I can make the panel, I can put spry data in it, it just wont open/collapse when its on the webpage.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Mar 18, 2009 Mar 18, 2009

Copy link to clipboard

Copied

http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample2.html

Thats an example of doing the accordion widget with Spry Data, apply the same principles for the collapsible panel.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 18, 2009 Mar 18, 2009

Copy link to clipboard

Copied

I have made some progress, thanks, however im still getting some odd formatting issues, for example, the 1st panel shows with different design to the rest of the panels.

this is my code;
<div id="region" spry:region="ds1">
<div id="repeat" spry:repeat="ds1">
<div id="CollapsiblePanel{ds_RowID}" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="{ds1::ds_RowID}"> <h1>{title} - last amended {amended}</h1></div>
<div class="CollapsiblePanelContent"><strong>{message}</strong> Added by <strong>{owner}</strong> on <strong>{added} </strong>(REF: <strong>{id}</strong>) <a href="/service/index.asp" target="_self">View full details</a></div>
</div>
<script type="text/javascript">
<!--
var CollapsiblePanel{ds_RowID} = new Spry.Widget.CollapsiblePanel("CollapsiblePanel{ds_RowID}");
//-->
</script>

As you can see, I am inserting {ds_RowID} in the variable name, in order for the panels to operate independantly, however have I coded it correctly?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 20, 2009 Mar 20, 2009

Copy link to clipboard

Copied

Is anyone else able to help with this? Is it actually possible?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2009 Mar 23, 2009

Copy link to clipboard

Copied

LATEST
How else can I achieve this effect? Using different technologies?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines