Accordion default state closed?
Hi, is there any way of making all the accordion spry buttons and there content closed on default as the first lot of content is always open?
thanks, Rus
The attachment is in a queue and may never be seen or it'll show up in a few hours maybe :-)
I believe you are talking about the focus outline - that is a necessity for accessibility reasons and shouldn't really be removed...
Reference:
http://www.456bereastreet.com/archive/200905/do_not_remove_the_outline_from_links_and_form _controls/
however it can be done...
http://css-tricks.com/removing-the-dotted-outline/
Nadia
Adobe® Community Expert : Dreamweaver
http://www.perrelink.com.au
Unique CSS Templates | Tutorials | SEO Articles
http://www.DreamweaverResources.com
http://twitter.com/nadiap
Similar Messages
-
Default state of accodion on opening a web page
Hello,
I am wondering how to set the default state of an accordion for when a web page is first opened. I would like all panels to be collapsed and only open when the desired title is clicked.
Also, is there a way to make the panel collapse to a completely closed state? For example, click on a title, see the contents of the panel, and click on the title to collapse that panel again?
Any help much appreciated!
cheers,
JoanDo you have a fix for Dreamweaver CS3?
I have found code for keeping them all closed
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1 });
//-->
</script>
Now I would like them to also *collapse* when the Accordion Panel Tab is clicked.
Can anyone tell me how to do that?
Terry -
Spry TabbedPanels: set default state
After inserting 3 Collapsible Panels on my web page, I want to set the default state of the panels so that when the page loads, panel 1 is open and panels 2 and 3 are closed. I used this code from "Set the default state of the panel" Spry Help page:
<script type="text/javascript">
var cp1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", { contentIsOpen: true});
var cp2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", { contentIsOpen: false });
var cp3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", { contentIsOpen: false });
</script>
But all panels remain open on page load.
Then I tried editing the default code that is inserted by Dreamweaver Insert > Spru > Spry Tabbed Panels :
<script type="text/javascript">
<!--
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", contentIsOpen: false);
var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", contentIsOpen: false);
//-->
</script>
That didn't work either. Any advice on what is wrong here? Other than the wrong default state, the panels are working correctly.Thank you. I figured out the problem, and the default panel states are working correctly now.
Next step: I want to use the open and close functions to toggle the state of the other panels so when the user clicks one tab to open a panel, the other two close. I'll try to get this working, but may be back to this forum in case I need help! -
Hi all,
I was looking to set my accordion to be closed by default....
currently it opens on the first child...anyone know how I could do
that?
any direction appreciated
thank-you!Hello Dave,
in principle: yes you can. But, and I quote from different contributions of the forum:
"Spry has been deprecated and is no longer officially supported by Adobe", “Adobe abandoned Spry late last year after CS6 came out. Future products will probably not contain any Spry so learning to use jQuery is a valuable skill to have for the future.”
“The news was released in August last year:
http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l”
” and: "All Spry framework related examples available here: http://adobe.github.com/Spry/samples/ You may want to take a look at it. I'd recommend you switch to a jQuery library for your further requirements."
Examples
http://www.egrappler.com/a-stylo-modern-jquery-accordion-akordeon/
http://users.tpg.com.au/j_birch/plugins/superfish/examples/ aso.
If you have a budget to work with, get PVII's Pop-Menu Magic2.
http://www.projectseven.com/products/menusystems/pmm2/
Hans-Günter -
Hi Friends,
I have two queries to run from one class.I send the queries to another class,which send me back the resultset to cook.For one query its running fine,but i don't know why for two queries ,its throwing error as "statement closed".Can you please tell me where i am going wrong???
In first method i have:
ResSet qt = new ResSet();
ResultSet rs=qt.getResultSet(query);
2nd method:
ResSet qt1 = new ResSet();
ResultSet rs1=qt1.getResultSet(query1);
public class ResSet
private Connection con;
private Statement st;
ResultSet results;
private DataSource ds;
int count = 0;
public void getResults()
try{
Context init = new InitialContext();
if(init == null )
throw new Exception("No Context");
Context ctx = (Context) init.lookup("java:comp/env");
ds = (DataSource) ctx.lookup("jdbc/con");
con.close();
}catch(Exception e){e.printStackTrace();}
public ResultSet getResultSet(String Query)throws Exception
if (ds != null) {
con = ds.getConnection();
if (con != null) {
st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
results = st.executeQuery(Query);
return results;
public void close()
try { results.close(); } catch (Exception ex) {}
try { st.close(); } catch (Exception ex) {}
try { con.close(); } catch (Exception ex) {}
}No,I am calling close() after I display the results in my jsp,that's the end line of my project.I even tried commenting it,but that didn't worked either.Please help me..cause i have no clue where i am goin wrong.
-
Error "No operations Allowed after statement closed"
Hi,
I have a little program that I want to grab a list of names out of MySQL (it does) and when I click on the name I want it to display some information about the person. This is where I run into the error, when I click on a name in the list box it gives me the error "No operations allowed after statement closeed". I'm not sure where my statement is being closed, in my listSelectionListerner I never close the statement so I'm not sure whats heppening. Heres the code:
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.sql.*;
import java.util.*;
public class Gifts extends JFrame
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DATABASE_URL = "jdbc:mysql://localhost/test?user=root&password=root";
private JList nameList;
private JTextArea statList;
private JButton add;
private Container container;
private JPanel nameListPanel, statListPanel, buttonPanel;
private Connection conn;
private Statement stat;
public Gifts()
super( "Spiritual Gift Database" );
try
Class.forName(JDBC_DRIVER);
conn = DriverManager.getConnection(DATABASE_URL);
stat = conn.createStatement();
ResultSet rs = stat.executeQuery("SELECT heading1 FROM demo");
Vector vector1 = new Vector();
while(rs.next()) vector1.add(rs.getObject(1));
container = getContentPane();
container.setLayout( new FlowLayout() );
nameListPanel = new JPanel();
statListPanel = new JPanel();
buttonPanel = new JPanel();
nameList = new JList(vector1);
nameList.setVisibleRowCount( 9 );
nameList.setPrototypeCellValue("XXXXXXXXXXXX");
nameList.addListSelectionListener(
new ListSelectionListener()
public void valueChanged(ListSelectionEvent event)
try
ResultSet resultSet = stat.executeQuery("SELECT * FROM demo");
StringBuffer results = new StringBuffer();
ResultSetMetaData metaData = resultSet.getMetaData();
int numberOfColumns = metaData.getColumnCount();
for(int i = 1; i<=numberOfColumns; i++)
results.append(metaData.getColumnName(i) + "\t");
results.append("\n");
while (resultSet.next())
for(int i = 1; i<= numberOfColumns; i++)
results.append(resultSet.getObject(i) + "\t");
results.append("\n");
catch(SQLException sqlException)
JOptionPane.showMessageDialog(null,sqlException.getMessage(),
"Database Error1", JOptionPane.ERROR_MESSAGE);
System.exit(1);
statList = new JTextArea(10,20);
add = new JButton("Add Entry");
nameList.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
statListPanel.add(new JScrollPane(statList));
nameListPanel.add( new JScrollPane(nameList));
buttonPanel.add(add);
container.add(nameListPanel, BorderLayout.EAST);
container.add(statListPanel, BorderLayout.WEST);
container.add(buttonPanel);
setSize( 400, 300 );
setVisible( true );
}//end try block
catch(SQLException sqlException)
JOptionPane.showMessageDialog(null,sqlException.getMessage(),
"Database Error1", JOptionPane.ERROR_MESSAGE);
System.exit(1);
catch (ClassNotFoundException classNotFound)
JOptionPane.showMessageDialog(null, classNotFound.getMessage(),
"Driver Not Found", JOptionPane.ERROR_MESSAGE);
System.exit(1);
finally
try
stat.close();
conn.close();
catch (SQLException sqlException)
JOptionPane.showMessageDialog(null,
sqlException.getMessage(), "Database Error2",
JOptionPane.ERROR_MESSAGE);
System.exit(1);
}//end Gifts()
public static void main( String args[] )
Gifts application = new Gifts();
application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}The fact is,
the finally statement is reached after the whole object is initialized,
that means that your statement is closed, before you make an action
with you ListSelectionListener.
Try working with a connect and disconnect method, or something like that,
which are called during your valueChangeg() method! -
Why won't firefox load websites after reseting to default state
I've reset mozilla through the tools troubleshooting and reset fire fix to its default state. Now the webpages such as facebook, hotmail won't load or they won't load properly.
A window with this connection is untrusted appears. Even when I validate a security exception it won't load and it won't let me have an option of validating sometimes. Technical details says invalid security certificate. No issuer chain provided. Error code unknown issuer.unfortunately the fiddler2 issuer in certificates might be a sign of unwanted software present on your pc that is intercepting secure network traffic. please go into the system control panel and uninstall programs like BrowserSafeguard, BrowserSafe, SafeGuard or other software that sounds suspicious and didn't get installed by you intentionally.
<br><sub>reference: https://support.mozilla.org/en-US/questions/982532#answer-520145</sub>
afterwards, run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
[[Troubleshoot Firefox issues caused by malware]] -
Who knows how to make Word the default when closing Apple Works documents?
step by step if you don't mind? i've never used Apple Script. is this the solution?
thanks and Happy New YearYour question about making Word "the default when closing AW documents" is a bit unclear.
An AppleWorks document is an AppleWorks document. If you want it in Word format, you must explicitly save a copy of it as such (and also append the .doc suffix to the proposed file name). -
BUG: Business Components using Datasources on Websphere - statement closed
Hi,
This is an unusual combinatation, we are deploying business components projects on websphere with a SQL Server database. This was originally deployed all to Oracle. We have managed to convert the project sucessfully (JDeveloper 10.1.3) and on Websphere, however when we moved our application module configurations (bc4j.xcfg) to use JNDI data sources which works in Jdeveloper, we are encountering problems using websphere with business components and datasources.
The statement closed error occurs when trying to calling executequery() method on the view object, not the first time the JSP page is accessed, but the second time. Refresh page all is good. Access page again error occurs. Very consistent.
Our code will often do applicationmodule.findViewObject("name"), if not found then create it, otherwise use the vo and kapow bombs out on the executequery method if reusing the view object.
ERROR
DSRA9110E: Statement is closed.oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Statement: SELECT Groups.GROU_ID FROM GROUPS Groups WHERE (GROU_ID=1)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java(Compiled Code))
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java(Compiled Code))
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java(Compiled Code))
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java(Compiled Code))
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java(Inlined Compiled Code))
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java(Inlined Compiled Code))
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java(Compiled Code))The datasource uses the connection pooling driver class com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource.
Ampooling is on. It appears the jdbc prepared statement is being closed but bc4j is expecting to still be open?
Any ideas on diagnosing the issue or app module config changes greatly appreciated.
MarkHi Steve,
This is not a composition association. Actually, this is an association from a table to an intersection (many-to-many) table. The code in my service is based on the SRDemo, see SRServiceImpl#updateSkillsForCurrentStaff(List) and is called on a save button from a shuttle page.
The current master is the master I want it to belong to. The link to the master gets correctly saved in the database (just as in the SRDemo). We can also navigate from the master view row to the find the detail view row using the generated RowIterator. However, this does not work from the master entity row to the detail entity row. The problem is really at the entity level.
Thanx
Olivier -
Setting agent's default state to Ready in CAD
Hi,
We are using UCCX 7.0 with CAD 6.0. Is it possible to set the default state of the agent to Ready when they login to their CAD.Right now, they go to the default Not Ready state one they login.
Thanks,
DMHi
By design CAD agent initial state after login is always not ready and there is no specific setting in uccx were you can change this behanviour.
However you can check this post were they suggest to create a MACRO
https://supportforums.cisco.com/message/3264497#3264497
Regards
Anuj -
Preserving link and default state using cookies
Hello,
I am not sure where to post this with the re-design of this forum; it's been a while so please forgive me if this is in the wrong g place.
I have a very basic link wrapped in a UL tag.
I am using JQuery to give the links a color when they are clicked by performing an add/remove class function, the link state is than preserved by cookies so if a user returns to a page; it shows what tab they were viewing.
The problem is; this is a single page and I want to set a default link or tab; say the first one. I do not know how to do this.
This is what I am looking to accomplished:
A user visits the page and the first link is colored red (default)
If the user clicks on another link that link becomes active and the first link looses it's default status
When the user returns the first link is nolonger the default, it is whatever link the user selected when first visited; that's because that link was rememberd using cookies.
The first link will ONLY maintain the default state if the user deletes his cookies or visits the page for the first time.
Here is a peice of JQuery I have used to maintain the selected state:
$(document).ready(function() {
var idActive = $.cookie('cookieActive');
if (idActive) {
$('#'+idActive).addClass('activeLink');
$('ul li a').click(function() {
var id = $(this).attr('id');
$("ul li a").removeClass("activeLink");
$(this).addClass("activeLink");
$.cookie('cookieActive', id);
$.cookie('cookieActive', id, { expires: 10000});Good day Mr. Powers!!
Thank you as always; you are so helpful.
I am editing this post because I did not get this to work due to my error with applying the ID.
It is working now and thank you so much!
By the way any more PHP books in the works?
DR
Code is now working with selecting default tab. -
Hi all,
how to set the FLV Playback Custom UI's mute button to
default state to "OFF"?
Any ideas?In case I don't come back:
AS2:
Drag the component on stage, double click to get inside.
Create a new layer and open up the actions panel, add this:
off_mc.swapDepths(on_mc);
AS3:
Drag the component on stage, click it once and give it an
instance name of, mute_btn, create a new layer and open the actions
panel, add this:
mute_btn.setChildIndex(mute_btn.getChildAt(1), 0);
**Notice Difference**
AS2 you go into the component to add the actions, and the
instance names are already there by default. AS3 you need to give
the component an instance name, and don't go into the component,
put that script on the main stage. -
System user to its default state
Hi All,
I created few oracle objects with System user and later I came to know that those objects should be created with another user. Is there any other method to revert System user to its default state (that means the state when database was created) without deleting individual objects that I created manually.
Thank you.
~ neoThere is no script to drop unnecessary objects. You could :-
1. ignore those objects.
or
2. create a new database and import the data
or
3. identify the custom objects and drop them. You can identify them by selecting from dba_objects and order by created.
select object_name, object_type, created from dba_objects where owner = 'SYSTEM' order by created. -
After an auto-update installation this morning a dialog box appeared asking if I want Firefox to return to its default state. I stupidly said yes and now have lost all my Speed Dial thumbnails, URLs, and saved passwords. Is there a way I can undo this to return to the way Firefox was set up and working yesterday?
Thanks for the response. Of course, I did not back up my profile, so I guess I'm going to have to recreate everything.
-
You say this will help and first sentence under your "Reset Firefox to its default state." is worthless !!!!!!!!!!!!!!!!!!!!!!!
https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems
If you don't see the '''Reset Firefox''' button on the Troubleshooting Information page in Firefox, you may not be using the ''default=1'' Profile as listed in the profiles.ini file.
Maybe you are looking for
-
Yosemite running very slowly on new MacBook Pro
I just bought a new 13" MacBook Pro (not Retina) last month. When I set it up I copied the data and apps from my 2006 MacBook running Snow Leopard. When I try to open apps such as Safari or jEdit or Adobe Reader or NeoOffice it seems to wait foreve
-
Can,t sync purchased songs marked Protected AAC audio file to Blackberry Link. Songs marked just AAC audio file O.K. Repurchased one song now listed as AAC audio file and now works. Any simpler way to do this with existing protected song other than r
-
Hi, I have a Standard program which is based on Vf02 (billing) and it's form in SAP-Script we have assigned program to Nace T.code. I have to create a 'Z' program and need to call layout from this program. So when we execute this Z program it will as
-
Hello, When I'm in the transaction 'Maintain Organizational model', how do I get a view of all the Organizational modal that there are in the system? I would apprectiate a simple explanation that suits the point of view of someone who isn't familiar
-
Editable assets within a swc-based component
Hi there, I created several swc-based components with AS3 and Flash CS4 extending the UIComponent structure. After exporting a fla-based component to a swc-file i created a flash-extension with the Adobe Extension Manager and installed the component.