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

Spry Accordion insert <a href...> into div AccordionPanelTab?

Community Beginner ,
Apr 13, 2009 Apr 13, 2009

Copy link to clipboard

Copied

I am trying to insert a link to another page within the div defined by the class AccordionPanelTab on the Spry accordian panel.  However, I the link doesn't function.  I am guessing it is because the tab is already a link itself. The test page under devlopment is here: http://www.gcfi.org/index_test.php. The link for testing is the rss icon image in the left sidebar panel tabs for the CaMPAM-L and STROMBUS-L tabs. I've tried enclosing the icon into a sperate div and still no luck.  I prefer to have the link in the penel tab rather than the panel content.

Any help will be appreciated.

TOPICS
Server side applications

Views

1.2K

Translate

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
LEGEND ,
Apr 14, 2009 Apr 14, 2009

Copy link to clipboard

Copied

The accordion panel tab is designed to open and close the accordion panel. If you turn it into a link, it won't be able to control the panel.

Votes

Translate

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
Advisor ,
Apr 14, 2009 Apr 14, 2009

Copy link to clipboard

Copied

You can put a link in an accordion tab (not the same as turing the tab into a link). The tab will still open/close the panel and the link in the tab can open a URL. Right now you can right-click and open your link in a new window I think yours has some problems with it being an rss feed try using feed: prefix instead of http: see if that helps.

Also put link in the tab not in a AP div.

Votes

Translate

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
Community Beginner ,
Apr 14, 2009 Apr 14, 2009

Copy link to clipboard

Copied

Thanks for the response.  I actually hadn't realized that I could right click and open the link in a new tab/window but it works fine that way using either the http or the feed protocols; changing the http to feed didn't fix it.

Also, the link is already in the tab.  I'm not quite sure which APDiv you are referring to but the image scr is absolutely positioned; positioning for the image is not done in a div. Are you suggesting that I remove the css absolute positioning for the scr element? 

Thanks again - it seems like it is almost there.

Votes

Translate

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
Advisor ,
Apr 15, 2009 Apr 15, 2009

Copy link to clipboard

Copied

LATEST

Yes remove the AP for the src. I didn't look at your source just tried clicking on one of the images and when the accordion opened the img in the tab below remained so I knew AP was involved somehow. Removing the AP will fix this and the img will remain in the tab when the accordion is opened. Don't really know the issue of why you link isn't working and sorry but I don't have much time to look over your source. I know it can be done though so maybe someone will be able to help you out more. Good luck!

Votes

Translate

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