HighDots Forums  

Spry According

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Spry According in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jtousignant
 
Posts: n/a

Default Spry According - 06-18-2008 , 01:17 PM






Hello group,
I am building a Spry According and by default I want to have a general
overview of the area displayed and then below have additional related stories.

However, I am wondering if there is a way to link so that one of the other
stories is displayed instead of the default. For instance if I want to set up
a link to the second story so that when that link is clicked it would display
that story instead of displaying the default story.

Basically similar to a named anchor, but I tried that and it doesn't display
the content region... always displays the default.

Any help is greatly appreciated!


Reply With Quote
  #2  
Old   
Speculumcm
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 02:43 PM






Something like this?

http://labs.adobe.com/technologies/s...icOpenAndClose


jtousignant escribió:
Quote:
Hello group,
I am building a Spry According and by default I want to have a general
overview of the area displayed and then below have additional related stories.

However, I am wondering if there is a way to link so that one of the other
stories is displayed instead of the default. For instance if I want to set up
a link to the second story so that when that link is clicked it would display
that story instead of displaying the default story.

Basically similar to a named anchor, but I tried that and it doesn't display
the content region... always displays the default.

Any help is greatly appreciated!


Reply With Quote
  #3  
Old   
Speculumcm
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 02:43 PM



Something like this?

http://labs.adobe.com/technologies/s...icOpenAndClose


jtousignant escribió:
Quote:
Hello group,
I am building a Spry According and by default I want to have a general
overview of the area displayed and then below have additional related stories.

However, I am wondering if there is a way to link so that one of the other
stories is displayed instead of the default. For instance if I want to set up
a link to the second story so that when that link is clicked it would display
that story instead of displaying the default story.

Basically similar to a named anchor, but I tried that and it doesn't display
the content region... always displays the default.

Any help is greatly appreciated!


Reply With Quote
  #4  
Old   
jtousignant
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 06:46 PM



Ok, I am not sure what I am missing because it looks pretty straight forward,
but I cannot get it to work.

I can get the Open by Simple Navigation: First | Previous | Next | Last to
work but not the Open by Panel indes or ID which is really what I would like:

I have the main div as:
<div id="Accordion1" class="Accordion" tabindex="0">

My link that should open panel 2:
<a href="#" onclick="Accordion1.openPanel('panel2'); return false;">panel 2</a>

And I have given panel 2 id of panel2
<div id="panel2" class="AccordionPanel">
<div class="AccordionPanelTab">Panel 2</div>
<div class="AccordionPanelContent">
<table width="615" border="0" cellspacing="5" cellpadding="0">
<tr>
<td><p>&nbsp;</p>
</td>
</tr>
</table>
</div>
</div>

I am completely stumpped... Looks pretty clear cut to me, but doesn't work.
Also, eventually these links will be from an outside page or even another
website so I would like to be able to link to any panel from anywhere not just
the page that contains the panels.

Again, thanks for the help


Reply With Quote
  #5  
Old   
jtousignant
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 06:46 PM



Ok, I am not sure what I am missing because it looks pretty straight forward,
but I cannot get it to work.

I can get the Open by Simple Navigation: First | Previous | Next | Last to
work but not the Open by Panel indes or ID which is really what I would like:

I have the main div as:
<div id="Accordion1" class="Accordion" tabindex="0">

My link that should open panel 2:
<a href="#" onclick="Accordion1.openPanel('panel2'); return false;">panel 2</a>

And I have given panel 2 id of panel2
<div id="panel2" class="AccordionPanel">
<div class="AccordionPanelTab">Panel 2</div>
<div class="AccordionPanelContent">
<table width="615" border="0" cellspacing="5" cellpadding="0">
<tr>
<td><p>&nbsp;</p>
</td>
</tr>
</table>
</div>
</div>

I am completely stumpped... Looks pretty clear cut to me, but doesn't work.
Also, eventually these links will be from an outside page or even another
website so I would like to be able to link to any panel from anywhere not just
the page that contains the panels.

Again, thanks for the help


Reply With Quote
  #6  
Old   
Speculumcm
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 07:34 PM



It would be better if you post a url, you know?

jtousignant escribió:
Quote:
Ok, I am not sure what I am missing because it looks pretty straight forward,
but I cannot get it to work.


I am completely stumpped... Looks pretty clear cut to me, but doesn't work.
Also, eventually these links will be from an outside page or even another
website so I would like to be able to link to any panel from anywhere not just
the page that contains the panels.
Well for that purpose you better see this tutorial:

http://foundationphp.com/tutorials/spry_url_utils.php


Reply With Quote
  #7  
Old   
Speculumcm
 
Posts: n/a

Default Re: Spry According - 06-18-2008 , 07:34 PM



It would be better if you post a url, you know?

jtousignant escribió:
Quote:
Ok, I am not sure what I am missing because it looks pretty straight forward,
but I cannot get it to work.


I am completely stumpped... Looks pretty clear cut to me, but doesn't work.
Also, eventually these links will be from an outside page or even another
website so I would like to be able to link to any panel from anywhere not just
the page that contains the panels.
Well for that purpose you better see this tutorial:

http://foundationphp.com/tutorials/spry_url_utils.php


Reply With Quote
  #8  
Old   
jtousignant
 
Posts: n/a

Default Re: Spry According - 06-19-2008 , 09:02 AM



Here is a link to the page:

http://www.amsoil.com/sponsorships/index_new.aspx

Reply With Quote
  #9  
Old   
jtousignant
 
Posts: n/a

Default Re: Spry According - 06-19-2008 , 09:02 AM



Here is a link to the page:

http://www.amsoil.com/sponsorships/index_new.aspx

Reply With Quote
  #10  
Old   
yupieyi
 
Posts: n/a

Default Re: Spry According - 06-19-2008 , 09:05 AM



The tutorial link was jus what i was lookin for.. lookin to see if anyone completely resolves this issue. Cheers!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.