Adding "Close" link to FAQ accordion

Hi folks,
Could anyone clue me into how to code in a simple "close" link to collaspe the a BC FAQ accordion?
This is the script that shows the FAQ answer:
//<![CDATA[
function showFAQ(faqid){var obj = document.getElementById('catfaq_'+faqid);if(obj){if (obj.innerHTML.length == 0){obj.innerHTML = '<span style=\'font: 10pt arial;color:#ff0000;\'>Loading..</span>';var response = CMS.FAQRetrieve.ServerSideFAQRetrieve(faqid);document.getElementById('catfaq_'+faqid).inn erHTML = response.value;obj.style.display = 'block';}else if(obj.style.display == 'none' && obj.innerHTML.length != 0){obj.style.display = 'block';}else{obj.style.display = 'none';}}}
//]]>
Thanks!
Anne

I actually found a solution in another forum but lost the link to it and believe it or not, I can no longer find that link :-/
But I remember it saying that if you use the close JS code you must also use the open JS code too.  In other words, if the only way to close a browser with JS is if you also opened that same window with JS.
The tut I found said that you can put a close JS link that's actually an open JS that opens a page.  But you also put code on that newly open page that redirects and closes it.  It sounds like a cool solution but I can't find it any more and looked every where.

Similar Messages

  • File not found when adding a link to another site collection on the navigation page

    When I am adding a link to another site collection in the navigation page, I got the following error. Is there any limitation for the navigation setting? why can't we add a link to another site collection in the navigation page?
    This is SharePoint 2007

    Hi
    the URL provided is working?  (check it in separate browser window )
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Adding a link in PDF using itext

    I am adding a link in PDF using itext and opening the link from the final created pdf using app.launchURL and app.getURL
    it works fine on windows XP but does nothing on MAC OSX /IOS

    Hi Lynn
    And here I was about to suggest you review the link below.
    Silly me.
    Click
    here to read the article
    Sincerely... Rick

  • I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I

    I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I remove this link ?

    Hi,
    Thanks for your help. I will try that approach.
    Regards
    Colin
    Date: Tue, 22 Oct 2013 09:28:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        Re: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        created by dj_paige in Photoshop Elements - View the full discussion
    It's not a link, its an icon that indicates the photo cannot be found in the location where PSE expects it. This happens because you either renamed, moved or deleted the photos outside of PSE. To fix the problem, use File->Reconnect (you will have to find the actual file in one of your folders), and in the future, no more moving, renaming or deleting photos outside of PSE; if you MUST rename or move photos, do so from within PSE.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5779318#5779318
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5779318#5779318
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5779318#5779318. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Firefox is adding advertising links to certain words on my website cornish-surfing.co.uk, and when I open a new tab an additional window opens with unwanted sit

    Firefox is adding advertising links to certain words on my website cornish-surfing.co.uk, and when I open a new tab an additional window opens with unwanted sites.
    1. How can I stop these things from happening?
    2. Why is it happening?
    These things only happen when I’m using the Firefox browser. I use Sophos antivirus and firewall and the scans indicate my system is clean. So I’m assuming that it’s built into Firefox or there’s a security flaw with Firefox.
    Can you let me know which and how I can stop it from happening?
    Graham Jappé

    hello, this sounds like a problem possibly caused by adware on your pc (certainly nothing that is shipping with a plain official firefox build).
    please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]

  • Having trouble trying to link to an accordion panel on the same page

    Hello all,
    I've been following instructions on
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#EnablingKey boardNavigation
    to try to link to/open a specific panel in an accordion panel from a menu on the same page, but it's not working. Could somebody tell me what I'm doing wrong? My page-in-progress is:
    http://fleap.com/YGRpage2011.html#
    The menu on the right, under the word, "Details", is the one I'm trying to link to the accordion panel, and the panel itself is lower down the page.
    thanks very much for any help you can give me!
    Anna

    1. Remove the constructor in the HEAD section of your document
    var acc1 = new Spry.Widget.Accordion("SpryAccordion1", { useFixedPanelHeights: false });
    2. Change the HTML markup to the following
    <ul>
      <li><a href="#" onclick="Accordion1.openPanel(0); return false;"> how <span class="title">You've Got Rhythm</span> works</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(1); return false;">sample pages</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(2); return false;">reviews</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(3); return false;">syllabus</a></li>
      <li>copying license</li>
      <li>about the authors</li>
      <li>tips</li>
      <li>cd tracks</li>
    </ul>
    Gramps

  • OTL/HXC - Adding Help Link to Self Service Time Entry (TcActivitiesPG)

    Hello folks,
    I'm a system analyst newly assigned to handling Oracle HR at my job. One thing I'm looking into is the possibility of adding a link to help documentation on our intranet (i.e. outside of Oracle) to the page where employees enter their time (using Self Service OTL). The problem is that no matter how much I look at personalizations for this page, I can't seem to track down a page element that could be used for that. I know there should be something, but I'm not having any luck.
    Does anyone have any suggestions for me? How would you add an arbitrary link at the top (or bottom) of the self service timecards?

    We're in the process of upgrading to R12; is it possible to add or custom links through personalization there, or is it still something that can only be done via customization? (We can certainly do the latter, but were hoping for a solution that didn't require it.)
    - Brad

  • [svn] 3775: Adding a link to the FxCheckBox example for ASDoc.

    Revision: 3775
    Author: [email protected]
    Date: 2008-10-21 09:22:17 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Adding a link to the FxCheckBox example for ASDoc.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as

    guess not

  • Problems adding  url link to buttons in action Script 3

    each time I added it link 1 to the button on file i get these error messages-  
    1046: Type was not found or was not a compile-time constant: link1.
    1180: Call to a possibly undefined method link1.
    Warning: 3594: exec is not a recognized method of the dynamic class RegExp. var r:Object = p.exec(s);  
    This is the code I am using:   import flash.net.navigateToURL; import flash.net.URLRequest;  var link_one:link1;  link_one = new link1(); stage.addChild(link_one);  link_one.addEventListener(MouseEvent.CLICK, buttonClickHandler);  function buttonClickHandler(event:MouseEvent):void { var url:String = "http://www.masterpiececorp.com/ARMREF.htm"; var request:URLRequest = new URLRequest(url); navigateToURL(request); }    I have no other problems with link 3 or 4, just link 1  I still cannot get my urls link to movie clips on the flash  
    Can you upload flash here? if not I have a image capture I can use to have you look at my buttons  and action script code. i have been to every forum I know and not any have been helpful at all. This is my last hope.
    Very frustrated newbie  Gina T
    Message was edited by: gtaylor0406

    The way you had your code originally would be correct...
    var link_one:link1;
    link_one = new link1();
    addChild(link_one);
    The 1046 error is indicating it doesn't recognize the link1 class.  So the first thing you need to make sure of is that you have assigned the link1 class designation to whatever symbol that is in the library.

  • How to show "window close" link in the page.

    "window close" link is the standard link in the EBS.
    But how can I show it in the EBS page? Thanks.

    Hello Peter,
    Thanks for your reply! That maybe is one solution. I think I used wrong terms to define the problem. But what I really ment, was that how to define links directly to portlet application (through portal of course) not just to portal page. I didn't find help from the HttpPortletRendererUtil class.
    I try to explain the problem more clearly:
    I have an portlet application that have main page (jsp page). The main page contains different 'areas' that are implemented by an iframes.
    For example there is a result area (iframe) and browser area (second iframe). The user can browse the results forward and backward. When user clicks one of the browser links the results are seen in result area.
    Ok this works fine when the application is 'ordinary' (not portlet), but when this is adapted to a portal as a portlet (through web provider) and I have to define the source to iframe (I use HttpPortletRendererUtil class's helper method to define links) I have only option to define the portal page link and that's why there comes additional page banners/headers to the result 'area' of the main page.
    Hope this is better explained. But if it isn't, please be free to ask more...
    Regards, Robert

  • Adding more link in the masthead along with help/personalize

    Hi
    I need some inputs for adding a link in the masthead along with help/personalize.
    Regds
    Priya

    Hi Priya,
    To get change the link in portal masthead just navigate to Content Admin-->Portal Content->Content provided by SAP->End User Content->standard portal users->Default frame workpage.                              
    Open this Default frame work page in property editor, check the Checkbox in front of Masterhead iView and click open at the bottom. It will open the Masterhead iView in property editor. Select Show all in Property category and scroll down to property called URL for Help link, give URL u desire for the link.                    
    Hope this helps,          
    Javed

  • Adding another link with etherchannel-PAGP

    Hi all,
    I have a 10g trunk link between my two 4510 coreswitches.   Now the utilization on this link is shooting up to 9.5gb which is forcing us to put another 10g link  between these two switches.
    We are planning to configure Etherchannel-PAGP. There should be any sort of downtime on the current link while adding another link to it.
    How do i add another link with etherchannel -PAGP with out having downtime on the current link?  could you please guide me on this?
    Thanks
    Shibu

    Shibu,
    Jon is 100% correct, that since this is not already and Etherchannel, there will be downtime, but it should be minimal. Now, what you could do, is depending on your physical topology, you should connect these two switches together with a GigbitEthernet link in the meatnime, it will be blocked by spanning tree (if it's a L2 port), since the 10G link will be give priority by default. Then you could afford downtime on the 10 gig link, while you create an etherchannel, If these two links are L2, you could configure UplinkFast, so the switchover is VERY fast.
    I've done this same setup before when making changes, but it all depends on if you can acutally physically do that. If not, you will have some downtime involved.
    You can also, just configure all this on notepad, and copy and paste.

  • Adding Report link in SRM web page

    Hi
    We are having SRM 4.0 with R/3 4.7 as backend in classic scenario.
    We have created a custom report in EBP and want to put the report link in the menu of SRM web page on LHS.
    Can anyone please let me know the procedure and steps how to do it.
    Is it something we can do by adding the link in the templates or some coding is to be done in the web page?
    Thanks in advance
    Jagadish

    Jagadish-
    A couple things to check:
    1.  You made the change to the assigned composite role?
    2.  Did you do a user comparison after making the role change?
    3.  To be safe - logoff and logon again to pick-up the changes.
    4.  Logon via the gui - do you see the new menu option in the gui - if not go back are look at your role it must not have saved as expected.
    We have add various tcodes to the menus in the same manner w/out issue.  Good luck.
    Regards-
    b

  • Static/Standard links within Muse Accordion menu widget

    Hi,
    I'm a newcomer to Adobe Muse and so may have missed a menu or option somewhere along the line,
    I'm trying to make a simple alteration to the standard Muse 'accordion' menu widget.
    I'm re-creating a website I've already half built in Dreamweaver, it being a simple design I thought
    this would be a good site to try to build with Muse. As you'll see here: http://www.thisisneil.com/rg-e/
    the accordion on the left hand side has two static links sitting at the bottom of the menu linking to
    a 'Contacts' page and 'Blog' hosted on Tumblr.
    Within Muse, I can't embed these two standard links without the accordion function in the same field?!
    Muse automatically applies the on-click, drop down sub-menu. Is there anyway of disabling the function
    on selected menu items?
    I'd like the two static links to drop down, and pop back up with two two functioning accordion menu's
    sitting above as they do within my dreamweaver example, but can't seem to amend the Muse menu
    to behave in this way. A shame to fall at the first hurdle with such a simple menu amend!
    Any help or thoughts much appreciated.
    Thanks.

    Anybody?!

  • Adding links in dreamweaver accordion

    Hey Guys,
    I'm having trouble adding links inside my dreamweaver
    accordion menu. Basically they don't display at all? Does anyone
    know why?
    Thanks
    Shell

    Let's see your code, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "shelleyfish" <[email protected]> wrote in
    message
    news:g6cf49$3v1$[email protected]..
    > Hey Guys,
    >
    > I'm having trouble adding links inside my dreamweaver
    accordion menu.
    > Basically they don't display at all? Does anyone know
    why?
    > Thanks
    >
    > Shell

Maybe you are looking for

  • Some organs don't play in new Logic Express files after JamPacks installed

    After loading only the instruments from the Symphony Orchestra and World Music GarageBand Jam Packs, I lost the ability to hear most of the organs available in Logic Express and all of the organs available in GarageBand after inserting them into Logi

  • Explain Plan for Multiple SQL

    Hi , Our db version is Oracle 8i and looking for solution. I have multiple select sql statments and need to get the explain plan for all statments. Is it possible to take explain plan for all statments one time? If so please provide the steps. Thanks

  • Select..from...where...in(sAux)

    Hi, is there a way to have a cursor in a plsql which receives a parameter used in a IN (....) condition like this:      PROCEDURE ProcAux      ( psList IN VARCHAR2,      pnRet OUT NUMBER)      IS CURSOR C1 (sList VARCHAR2) IS SELECT col1, col2 FROM t

  • Is there any user exit or BADI

    Hi , Is there any BADI or userexit which will update some fields in BSEG while posting Invoice verification(MIRO). Please advice. Regards, Sam.

  • Can't update firmware for Ipod Touch on my PC

    I have a 1st gen Ipod touch & windows xp. I have the latest itunes. It will not let me update the firmare, but I can sync fine. To update the firmware, I give it to my husband and he can do it from his computer. Then I can sync with no problems. It's