Accordion panels open when website launches
All my accordion panels appear open for a second before my page completely loads. I have tried to find fixes in the forum but the only one that I have found is to use SpryAccordion.js - version 0.15 - Spry Pre-Release 1.6.1...I am already using this version and I am still having the issue. It appears to work fine with firefox but I have the issue in IE8. I am quit the novice with web design, any help anyone can give woyld be greatly appreciated.
Here in the link to my site http://www.fcps.edu/southcountyss/
There is a whole heap of stuff between rendering the markup for the accordion and creating an instance of the accordion.
To eliminate the pause between render and instance, move the accordion constructor to just below the table that holds the accordion as in
<!-- ............. rest of markup -->
Student Services (MS):
703-446-1640<br />
Student Services (MS): 703-446-1630<br />
</p>
</div>
</div>
</div></td>
</tr>
</table>
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
</script>
Don't forget to remove the constructor from the bottom of the document.
Gramps
Similar Messages
-
Try to keep accordion panel open when selected
Hello,
Could someone help me find the code to "keep the selected panel open" instead of having them closed on each pages.
There is 2 spry collapsed panels. Within the first one there is 1 Spry Accordion with 5 panels which need to stay open when selected.
You will find the site here : www.otaa.fr (but you may use Safari)
Here the codes:
<Head>
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript"> var params = Spry.Utils.getLocationParamsAsObject(); </script>
<style type="text/css">
</head>
<body>
<div id="CollapsiblePanel2" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">PROJETS</a></div>
<div class="CollapsiblePanelContent">
<td><div id="Accordion1" class="Accordion">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Logements</a></div>
<div class="AccordionPanelContent">
<tr>
<td height="21" align="left"><a href="html/Vignoles.html">Rue des Vignoles</a></td>
</tr>
</table>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Maisons</a></div>
<div class="AccordionPanelContent">
<tr>
<td align="left"><a href="html/Serrieres.html">Maison Serrières</a></td>
</tr>
</table>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Bureaux et Sièges Sociaux </a></div>
<div class="AccordionPanelContent">
<tr>
<td align="left"><a href="html/Tchad.html">Ambassade du Tchad</a></td>
</tr>
</table>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Aménagements Intérieurs</a></div>
<div class="AccordionPanelContent">
<tr>
<td align="left"><a href="html/Martin.html">Appartement Martin</a></td>
</tr>
</table>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Equipements</a></div>
<div class="AccordionPanelContent">
<tr>
<td align="left"><a href="html/Aquatonic.html">Centre Aquatique</a></td>
</tr>
</table>
< /body>
<script type="text/javascript">
var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", {contentIsOpen:false});
var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3");
var accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel:(params.panel?params.panel:-1)});
</script>
Thanks for you help.Forget about the tutorial by David Powers. There is an easier way to achieve what you want.
If I understand right, you want the about panel to be open when on the about page and the homw panel when you are on the home page. Simply set the default panel for each page as follows
For the Home page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Home Page</title>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet">
<script src="SpryAssets/SpryAccordion.js"></script>
</head>
<body>
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Home</div>
<div class="AccordionPanelContent"><a href="index.html">Home</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">About</div>
<div class="AccordionPanelContent"><a href="about.html">About Us</a></div>
</div>
</div>
<script>
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {defaultPanel: 0});
</script>
</body>
</html>
and for the About page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>About Us</title>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet">
<script src="SpryAssets/SpryAccordion.js"></script>
</head>
<body>
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Home</div>
<div class="AccordionPanelContent"><a href="index.html">Home</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">About</div>
<div class="AccordionPanelContent"><a href="about.html">About Us</a></div>
</div>
</div>
<script>
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {defaultPanel: 1});
</script>
</body>
</html>
Repeat this process for each of your pages.
Gramps -
How can I make the spry accordion remember the panel open
when I refresh the page or jump to a new page?
I am using the accordion feature on all my pages as a
navigation aid. It has three panels. When you refresh the page the
panel goes back to the default pane... Is there a way of
controlling this so that the browser can remember the pane that is
open (say set a variable, cookie, other?)Look for "Set the default open panel" on the following page:
http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
Keep in mind you would need to change that bit of code on
every page. The only way to do it more dynamically would be to
include a custom javascript or PHP/ASP style script in order to
change the value. -
Keeping at Least One Accordion Panel Open with Variable Heights
Hi -
Is there a way to keep at least one panel open when using {
useFixedPanelHeights: false }?
Here's an example:
http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#VariablePan elHeights
If panel 4 is open, and you click the panel 4 heading, it
closes and no
panel is open.
Thanks,
RodSorry, I didn't read my full message regarding wanting only
one panel to open.
What I ended up doing was using a PHP conditional to display
a message if a certain variable was not passed in the URL. See my
post on the Friends of Ed forum. Scroll to the bottom for my
solution.
http://friendsofed.infopop.net/4/OpenTopic?a=tpc&s=989094322&f=5283032876&m=3461018571 -
Why do several files open when I launch Pages and Numbers
Why do several files open when I launch Pages and Numbers
2139Mike wrote:
Why do several files open when I launch Pages and Numbers
Mike,
Any document left open when you Quit the application reopens when you restart the application. Rather like the jacket that I neglected to hang up when I came home last night. It's still lying on the chair by the door.
Jerry -
How do I stop mail from opening when I launch safari?
Can someone please let me know if there is a way to stop mail from opening when I launch safari.
ThanksYou are really confused. There are several things I'd recommend, first is becoming more familiar with your computer by visiting (and bookmarking)
Mac 101
Find Out How Video tutorials
Switch 101
Next, you have 90 days of free AppleCare telephone support when you buy any new Mac. You will find the phone number in your manual or you can also click the AppleCare Contact Info if you cannot find it. However I would STRONGLY recommend carefully reading your manual. The AppleCare people will be able to help you sort out what you have done. You can also visit and Apple Store and speak to a Genius for free, just make an appointment. -
Prevent lower text from moving when accordion panels open
I tried out the Accordion Panel from Project Seven which is
really nice and works well. My only issue right now is that I would
like to prevent the rest of the text outside and below this widget
within the same column from moving. When any panel opens it causes
the contents of the entire column to shift down thus causing the
page to shift down as well.
I have tried using a new div for the content below the panels
and also a new table below but can't seem to figure out how to keep
the content from shifting. Curently I have a table cell nested and
have tried with CSS to keep it from moving but that is not working
either.
Thanks in advance for any help with this.
Here is the code for the column in question:no takers on this one? Does anyone know how I could fix this
with divs? Is it possible to put this accordion into a separate div
and create another below it that would not move? Like on the new
apple site...They have some really awesome accordion style navs on
the sides that do not throw the rest of the page off when they open
or close.
Thanks. -
I can't close the left hand tab except by exiting firefox. When i launch firefox the original tab stays open when I click on the red x, even if I have other tabs open.
i can alter the website displayed on the left hand tab but it still won't close and leave other more recent tabs open.Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]] -
Sub vi front panel opens when main vi opens
When I open my main vi I have one of my sub vi front panels that opens. I looked in the properties for the sub vi and Show front panel when loaded is NOT checked. Is there something else I need to look at?
Solved!
Go to Solution.please clarify;
Q1)
The sub-VI FP opens when
You open the top VI but BEFORE you run it
OR
The sub-VI FP opens after you start the top level VI
Q2)
If the above Q was after you run....
Is the sub-VI running or paused when it opens?
If it is puased you may have a breakpoint set in it.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Accordion Panels Open During Page Load
All my accordion panels appear open for a second before my page completely loads. http://home.comcast.net/~steven.kay/
I found this thread, but am still not clear on the solution given. http://forums.adobe.com/message/22365#22365
Thanks.Never mind... I downloaded the new js file... (duh)
-
How do I disable an attack site which opens behind my home page whenever I launch my browser? I'm on a Mac, OS 10.6.4
== URL of affected sites ==
http://www.therugged.com'''Restore Default Home Page'''
1. On the menu bar, located on top of Firefox, select Tools | Preferences
2. Confirm you are in the '''General Panel'''
3. Click '''Restore to Default'''
4. Finally, click '''OK''' -
IAOSS No Script plug-in, webpage opens when FF launched
Hi Friends,
Sometimes when I open FF, 2 tabs open. And this is not from restoring the last session, because actually I'm not sure how to do that. Anyway, it opens my homepage in one tab, and in the 2nd tab is Inform Action Open Source Software for the No Script add-0n. It opened automatically when I first installed the No Script add-on, and it opens from time to time spontaneously when I first launch FF (from desktop icon). This is the URL from the address field on that page: http://noscript.net/?ver=2.2.9&prev=2.2.8.
How can I stop that page from opening automatically, against my wishes?
I should say that I quite like that add-on, and use it frequently. I expect I will make a donation, if I continue to use it without any problems. But I don't appreciate the contant reminders, if that's what the purpose is. I just want to stop that page from opening without my wish or need to open it.
Thanks for your help :-)Many Add-ons, including NoScript, will open a new tab after an update so that the user can be informed of the changes. In your question, http://noscript.net/?ver=2.2.9&prev=2.2.8. , is the update page for NoScript from version 2.2.8 to version 2.2.9.
You can try changing a setting in NoScript to see if it stops that tab from loading after an update to NoScript (I have never used this myself, since I prefer to at least look at the update page; see '''''NOTE''''' below):
#click the NoScript icon and choose "Options"
#on the NoScript Options window, click the "Notifications" tab
#un-check "Display the release notes on updates" (last item on the display)
'''''NOTE:''''' I have found no explanation of that option; you can inquire about that item and any other NoScript questions at the NoScript forum:
*NoScript forum: http://forums.informaction.com/viewforum.php?f=3
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.''' -
Last file re-opens when I launch a program
Just upgraded to Lion. Every time I launch a program (Word or Illustrator, for example), it opens the last document I worked on in my previous session. This is very annoying. Sometimes I don't want a co-worker or client to see the last thing I had open in Word or Illustrator. How do I stop this?
Go to System Preferences - General tab. Uncheck the box "Restore windows when quitting and reopening apps".
This might be a good option on a few applications, but can't see any reason you'd want to reopen the last windows in every application you install. Dumb idea, Apple.
Hope this helps! -
CC fails to open when I launch from Applications
I just downloaded CC on my iMac (I have it on my MacBookPro and am wanting to add it to my new-to-me desktop.) I was able to download the installer just fine and when I go to open it it tries for a few seconds and then crashes. No error message or anything- just crashes. I tried looking through the FAQs and it suggested clicking the "gear" icon - I did that and nothing happened- it's not "clickable."
Keighla Anderson are you installing on a newly created administrator account? Is there any other Adobe Creative software already installed on this computer?
-
Further: I'm running Windows XP.
This happens every time I open Firefox 5 and began just after I upgraded to 5.0.
Note: I've tried suggestions from the various posts in this forum from people who have similar problems, but with no luck. The problem still persists. Does anyone have any suggestions ??hello, this might happen when firefox is not able to properly save preferences in its profile folder. please try this: Click the menu button [[Image:New Fx Menu]] and then click help [[Image:Help-29]] > troubleshooting information > profile folder - "show folder". then a new window will open up. in this window look out for a file named '''user.js''' (it might be used to overwrite your custom settings). in case it is present , delete or rename this file and restart firefox afterwards.
for more information and other steps please also see: [[How to fix preferences that won't save]]
Maybe you are looking for
-
My HP C4385 is not printing anything but the test page. I am running Windows 7, 64 bit with a wireless network. The printer worked fine until a few months ago and I'm about ready to throw it out the window. I can print a test page no problem, wire
-
Hi, I have a tree component in my Application and I have given the dataprovider as XMLListCollection. I would like to have the entire tree as expanded mode(all children) by default. To achieve this, I tried expandItem() method but I couldn't see the
-
How can I replace a brand new, but malfunctional iPhone 4?
Hey, guys. I am from Russia, and on our recent trip to Munich, Germany we've bought a new iPhone 4 8gb for my wife at the Apple Store. When we got home in a couple of days, I unboxed it, plugged in and proceed to install iOS6 wirelessly. On the next
-
How to allow the user to upload a file from their desktop to MII Server?
Hi, Is there a way for the user to specify a file on their local computer to upload to the MII server for processing? We have a method that works for uploading from a shared network drive, but now the need/desire is to allow the user to upload a fil
-
Copy files in home folder to another user?
Hi, I recently underwent a name change. So, I set up a new admin user account with my new name/new short name. How do I give my new self access to exactly the same desktop/stuff my old self had access to? Thanks, Shambhavi (formerly known as Lalita)