Spry accordion works in template, but not pages using that template

So I added a spry accordion to one of my templates and changed the script to default closed. It works great. In the template. But not in any of the pages using that template. Basically I can see the content in the accordion on the page as if there is no accordion at all. And I can see the script and html telling me an accordion should be there. It just isn't. I can see the framework when in edit mode. But in live mode, it's like there's not there but the content.
I'm using Dreamweaver CS6.
Any thoughts?
Thank you for your time!

If the template has been created properly, then the Spry files should automatically be included in the child page(s).
My template looks like
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<!-- TemplateBeginEditable name="EditRegion3" -->
<div id="Accordion1" class="Accordion" tabindex="0">
  <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
  </div>
  <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
  </div>
</div>
<!-- TemplateEndEditable -->
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
</script>
</body>
</html>
My child page looks like
<!doctype html>
<html><!-- InstanceBegin template="/Templates/untitled.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<!-- InstanceBeginEditable name="EditRegion3" -->
<div id="Accordion1" class="Accordion" tabindex="0">
  <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
  </div>
  <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
  </div>
</div>
<!-- InstanceEndEditable -->
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
</script>
</body>
<!-- InstanceEnd --></html>

Similar Messages

  • Spry menubar works in IE, but not Firefox

    I added a very simple Spry horizontal menubar to the top of all pages in my web (I'm using DWCS4 and Spry 1.6). When I preview it in Firefox locally, it seems to work, but when it is uploaded to the web server it works in IE, but not in Firefox. Instead of a menubar, I see a stack of bulleted hyperlinks. In IE, it displays properly.
    Website is http://www.stevegoldman.com.
    How can I fix this problem so that it works with all browsers properly?
    -- Martin

    I just tested your site with firefox (latest version) and it works just fine. I also tested it in IE: 7.0 and it worked fine for that too. Looks like you have either fixed the problem or you have a different version of firefox than me or something.
    Favorite qoute: "do unto other as you would do unto yourself"
    Favorite hobby: airsoft / electric aeg airsoft guns
    Airsoft Sniper Rifles

  • Spry tooltip works in IE but not Firefox

    Hi,
    I don't understand or  can't figure out what I have done wrong. I have created a tooltip for  the last product  (4 inch diameter Vortex Water Revitalizer  in  copper (special order)) on the page: http://www.alivewater.net/order.htm
    It  works in IE but not Firefox... I can't figure out why... can you help  me and see what I have done wrong?
    Eternally grateful,
    Starry

    I think I fixed the problem.. maybe you had looked at it after it was fixed. I do appreciate your help though!

  • XML Dataset whit spry:if works in IE8 but not in IE6,IE7 and IE9

    Hello,
    I have bigs problem with my site created using SPRY framework and the filters functions.
    My pages works properly in IE8, Safari, firefox, chrome, ecc but not in IE6 and IE7.
    In IE9 works only in "compatibility mode"
    This page is an example:
    http://www.digidevice.com/P_IT/IT-Prodotti01.html
    in the browser ok there is a list of items, in the other that don't works there is only a void rectangle.
    In this page one example with code depured by formatting:
    http://www.digidevice.com/P_IT/IT-Prodotti01_PROVADATASET2.html
    Thanks in advance

    Hi, i have a similar problem..
    These URL returns a XML:
    1) http://www.bolsadesantiago.com/intradayServlet?symbol=IPSA
    2) http://www.valorfuturo.com/contenidos_vf/proyectos/clientes/penta/titularnoticias.asp
    I use a CS4 and both works in preview, but only first works over internet (IE7).
    I suspect that 2° has a problem of syntax XML, but work with jQuery.

  • Vertical Spry menu works in IE7 but not Safari

    My vertical SPRY menu works well in various versions of IE
    but when I preview in Safari it has an odd way of creating the
    sub-menu. Here is the visual:
    http://www.ornh.mb.ca/index_test.html
    Any suggestions? Dawn

    First thing is first. Your spry code is out of date. You are
    running version 1.4 and the latest is 1.6.1. Go to the page below
    and run the Spry Updater package:
    http://labs.adobe.com/technologies/spry/home.html

  • Spry Table works in Firefox but not IE

    I have a Spry table working just fine in Firefox in a site
    I'm developing:
    http://www.abenaki.com/newsite/schedule.html,
    but in IE 6 and 7 it first shows the table, unpopulated, and then
    disappears altogether. I'm new to Spry and XML... have I done
    something wrong? Any light anyone could shed would be hugely
    appreciated! Thank you!!
    The XML looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <courses>
    <course id="1">
    <name>New! Introduction to Social Assistance and Case
    Management</name>
    <location>Winnipeg</location>
    <startdate>10 21 2008</startdate>
    <duration>4 days</duration>
    <price>$1695</price>
    <desc>This course covers the setup, daily and periodic
    procedures for Abenaki’s Social Assistance and Case
    Management Module.Topics to be covered include: organization
    profile setup, rate maintenance, security, vendor and client
    maintenance, cheque production in Sage Accpac, cheque production in
    the Social Assistance module, reports, case planning, month and
    year end processing.</desc>
    </course>
    <course id="2">
    <name>Introduction to Safe Water Infrastructure
    Management System</name>
    <location>Moncton</location>
    <startdate>10 28 2008</startdate>
    <duration>2 days</duration>
    <price>$1295</price>
    <desc>No description available at this
    time.</desc>
    </course>
    <course id="3">
    <name>Introduction to Housing Inspection and Management
    System</name>
    <location>Moncton</location>
    <startdate>10 30 2008</startdate>
    <duration>1 day</duration>
    <price>$495</price>
    <desc>This introductory level course covers all of the
    steps involved in the data entry and report generation for housing
    units in the community. Topics to be covered include: rating the
    condition and estimated cost to repair of the interior, exterior,
    amenities, fire and health hazard items. Students will learn how to
    generate reports to identify housing units in need of minor or
    major repairs and those units that are potential fire and/or health
    hazard.</desc>
    </course>
    <course id="4">
    <name>New! Post Secondary Education and Student
    Tracking</name>
    <location>Winnipeg</location>
    <startdate>11 12 2008</startdate>
    <duration>3 days</duration>
    <price>$1595</price>
    <desc>No description available at this
    time.</desc>
    </course>
    <course id="5">
    <name>New! Introduction to Social Assistance and Case
    Management</name>
    <location>Edmonton</location>
    <startdate>11 18 2008</startdate>
    <duration>4 days</duration>
    <price>$1695</price>
    <desc>This course covers the setup, daily and periodic
    procedures for Abenaki’s Social Assistance and Case
    Management Module.Topics to be covered include: organization
    profile setup, rate maintenance, security, vendor and client
    maintenance, cheque production in Sage Accpac, cheque production in
    the Social Assistance module, reports, case planning, month and
    year end processing.</desc>
    </course>
    <course id="6">
    <name>Introduction to Safe Water Infrastructure
    Management System</name>
    <location>Edmonton</location>
    <startdate>11 18 2008</startdate>
    <duration>2 days</duration>
    <price>$1295</price>
    <desc>No description available at this
    time.</desc>
    </course>
    <course id="7">
    <name>Introduction to Housing Inspection and Management
    System</name>
    <location>Edmonton</location>
    <startdate>11 20 2008</startdate>
    <duration>1 day</duration>
    <price>$495</price>
    <desc>This introductory level course covers all of the
    steps involved in the data entry and report generation for housing
    units in the community. Topics to be covered include: rating the
    condition and estimated cost to repair of the interior, exterior,
    amenities, fire and health hazard items. Students will learn how to
    generate reports to identify housing units in need of minor or
    major repairs and those units that are potential fire and/or health
    hazard.</desc>
    </course>
    <course id="8">
    <name>Sage Accpac ERP 5.5 Refresher</name>
    <location>Moncton</location>
    <startdate>01 20 2009</startdate>
    <duration>4 days</duration>
    <price>$1695</price>
    <desc>No description available at this
    time.</desc>
    </course>
    <course id="9">
    <name>Sage Accpac ERP 5.5 General Ledger and Accounts
    Payable</name>
    <location>Winnipeg</location>
    <startdate>01 20 2009</startdate>
    <duration>4 days</duration>
    <price>$1695</price>
    <desc>No description available at this
    time.</desc>
    </course>
    </courses>
    Abenaki Course
    Schedule

    The reason its not working its because its "crashing" at the
    sort function in IE, I have no clue why.
    To be more specific,, this part of the SpryData.js
    if (this.unfilteredData)
    this.unfilteredData.sort(sortfunc);
    if (this.filterFunc)
    this.filter(this.filterFunc, true);
    else
    /*this->*/ this.data.sort(sortfunc);
    Maby try to delete the setColumnType for your startdate, to
    see if that helps. Because your startdate is not a "valid" date
    string. (i think)

  • JNI Works for application, but not when used over Tomcat...

    I am having problems getting JNI to work when I try to run a Servlet that invokes native calls.
    I have a small, simple java program, just to test the waters, that simple calls a small shared library. It works like magic when I run the program as a simple application.
    However, when I turn it into a Servlet, I get the following runtime errors:
    The first time I call the Servlet:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.native)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
         at java.security.AccessController.checkPermission(AccessController.java:399)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
         at java.lang.SecurityManager.checkLink(SecurityManager.java:837)
         at java.lang.Runtime.loadLibrary0(Runtime.java:743)
         at java.lang.System.loadLibrary(System.java:820)
         at Native.(NativeApp.java:24)
         at NativeApp.service(NativeApp.java:15)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    On hitting reload (F5), I get this:
    java.lang.NoClassDefFoundError
         at NativeApp.service(NativeApp.java:15)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    Before going and farther, here is the server specs:
    Linux (cobalt, basically red hat)
    java 1.3
    recent version of tomcat
    Now, just to be sure, I removed the native call from the servlet, and ran it again...no problem this time. So I know that it has to be the native call that is causing this.
    I have to say that I am still a bit new to JNI (book is in the mail form amazon still, hehe)...any ideas would really be appreciated.
    I have a feeling that this may have little or nothing to do with JNI...but it seems to be related in some way.
    -Zach

    Well, I have came to the same conclusion, that the problem that I am having is directly related to the security policy that Tomcat runs under.
    However, I have not been able to figure out exactly what I need to change....
    I have altered the tomcat.policy file in a number of ways, including (for testing purposes) allowing full permission on the site that has the JNI servlet on it.
    I have also done the same for the folder containing the shared library, I don't know if mattered, but I tried to be sure.
    At this point, I have ordered a number of books from Amazon that should (hopefully) have some answers, but it is still a bit confusing that after allowing all permissions (and rebooting) that it still failed to work.
    Dose anyone know how that you would allow native methods to be called in a policy file?
    Thanks again for any suggestions!
    -Zach

  • Spry form validation working in IE but not in Firefox or...

    Ok putting together a contact us form and would like a few
    fields to be required. It works in IE7 but not in Firefox, Safari
    or Google Chrome. In IE7 I get the error msg for no valid email but
    in the other browsers it just does nothing. Here is the link to the
    page
    Aspen
    Homes
    Can anyone help with this? I have used Spry on a couple other
    site and never had an issue. I am updated to the most recent
    version also. I am running
    Vista Ultimate (64-bit)
    DW CS3 or DW CS4 (both do the same thing)
    I have attached my code here in a txt file
    Page
    Code
    thanks
    B

    Anyone?

  • HT3387 When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • I have a JavaScript loop that works in Dreamweaver but not in my browsers. What's missing? Should the page load another script first?

    I know that the code is clean because it runs perfectly in DW (even with the occasional lag). Shorter loop functions have also worked in DW, but not in my Chrome or IE browsers. Is there a script or program that the HTML should run first?

    I'm sorry, of course:
    The Crow Haven Witches and Psychics of Salem
    I am designing a phone psychic hotline (don't ask! ) page, and the loop is supposed to sort the readers according to their availability. Each should appear in their respective listing.
    The setup works perfectly in DW, but none of the scripted material appears in the current page. I will add a photo of how it does look in DW.

  • Slide show works on PCs but not on Macs

    A parent at the school where I teach has just created a
    website for us. She used Dreamweaver and photoshop to create it.
    There are some pages where there should be a looping slide show
    (that runs on its own). These slide shows work on PCs but not on
    Macs (it just stays on one photo on Macs). For the slide show she
    "just added a timeline to the jpg image, changing the imagesource
    every 60 frames, that you can do in dreamweaver." Is there some way
    to fix this so it works on both?
    Here's the school's website: www.smash.smmusd.org

    Unfortunately, the timeline function may not be the best way
    to do this.
    Notwithstanding Joe's comments about 508 compliance, there
    have been issues
    reported in the past regarding the use of timelines on Macs.
    It may be
    better to seek some 'banner rotation' scripts using Google,
    and replace the
    timelines with that script. Your volunteer may or may not
    know how to do
    that....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]..
    > On 16 Jun 2007 in macromedia.dreamweaver, Mana Hale
    wrote:
    >
    >> A parent at the school where I teach has just
    created a website for
    >> us. She used Dreamweaver and photoshop to create it.
    There are some
    >> pages where there should be a looping slide show
    (that runs on its
    >> own). These slide shows work on PCs but not on Macs
    (it just stays
    >> on one photo on Macs). For the slide show she "just
    added a timeline
    >> to the jpg image, changing the imagesource every 60
    frames, that you
    >> can do in dreamweaver." Is there some way to fix
    this so it works on
    >> both?
    >>
    >> Here's the school's website: www.smash.smmusd.org
    >
    > I'd worry about accessibility/Section 508 issues before
    I worried
    > about slideshows. That page is all images.
    >
    >
    http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&url1=http%3A%2F%2Fwww.sma sh.smmusd.org%2F
    >
    http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=2&url1=http%3A%2F%2Fwww.smas h.smmusd.org%2F
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/contact.php

  • Medical app from Intuit works in IE, but not Firefox.

    Encrypted medical app works in new IE, but not Firefox. Everything works down to the end, and click on "continue" and nothing happens. A tech and I have spent hours on this. Did not work on FF5 or 6. Did not work on old IE, but did on fresh new version with no data files copied in.

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Navigation works in IE but not Firefox or Safari!

    Hi guys
    Why do my nav links on the hompage work in IE but not in Firefox and Safari? http://www.jasonkieck.com/
    Any help would be appreciated

    The main reason is you have a <div id="bg_grid"> at the end of your html that is essentially over the top of everything else on your page, including your links. All clicks go to that <div> rather than your links undeneath it. I'm kind of surprised it works in IE to be honest.
    You do also have a ton of errors as Gramps points out, but that particular issue is not technically an error, so I have a feeling you could fix the ~100 problems shown by the validator and still have the issue.
    You could use z-index to "order the stack" as it were. Changing the z-index attributes for the css of those elements will allow you to change their order, regardless of their location in the html. A higher z-index number, the "closer" it is to the viewer (higher on the stack).
    Right now, they are both set to 1, so the one that comes later in the html is on top.
    Adding z-index:999 to the menu <div>  should do it,

  • Works in IE but not FireFox?

    site is here
    http://carolyoungs.myartsonline.com/
    when i hosted it on a different server it worked in both browsers, now i changed to a different free host because of the mp3 file i have with the site, and some sites will not host mp3 and it only works with IE
    can anyone help me out?

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Slideshow works on local but not remote server?

    Slideshow works on local but not remote server? The site is patriceclarkson.com.

    When I compare your:
    http://www.warpd.ca/SpryAssets/SpryWidget.js
    to this one:
    http://labs.adobe.com/technologies/spry/ui/includes/SpryWidget.js
    I do not see the same file. Try uploading the correct file and check again.
    Xav

Maybe you are looking for

  • URGENT:upgrade to 3.0.8 issue Call to WPG_SESSION API Failed.Error-Code:6550

    I ran upgrade scripts to 3.0.8 from 3.0.6 and completed with no errors. csh diag.csh reports no errors. sqlplus to connect string works fine DAD connect string is correct. err text: Call to WPG_SESSION API Failed. Error-Code:6550 Error TimeStamp:Tue,

  • Problem with parsing a date

    Hello! I am new in java programing. I have the code below: import java.sql.*; import java.math.BigDecimal; import java.sql.Date; public class TestActualizariJDBC   public ResultSet CrsPersoane;   public Statement StmtPersoane;   public Connection con

  • How to read a Excel file through java coding

    Hi, *I need to have a code with reads data from excel file. Could u forward the jar files needed for that also. *presently we are using client systems so we are not able to get the following jar files. Please sent these jar files inorder to proceed m

  • Can't import to Library - Error

    I get this errror message when trying to import from CD to my library: "Error occured while converting the file..The disk you are attempting to use is full." I have a brand new HP laptop with 100G free so space isn't a problem. Can someone help. Than

  • My coupons don't print barcodes

    When I print from coupons.com no barcodes print...there's a picture of the item, but no barcode or retailer information. It's like the info gets lost going to the printer and only part of the coupon comes out on paper. I've tried on 4 different print