Copy link to clipboard
Copied
I have created a page with SpryAccordion.js using Dreamweaver CS3. The page displays correctly and the accordion animation works when I preview the page, but the accordion animation doesn't work after I upload it to my web server and access the page from the link on my website.
http://www.bolchazy.com/webinars.html
Viewing the page in FireFox and checking with the "Error Console" I get the message "Spry is not defined".
Suggestions?
Thank you
Jody
Copy link to clipboard
Copied
Validate your page, its stuffed with errors
validator.w3.org
You are missing your closing tags for your <scripts> <SCRIPT LANGUAGE="JavaScript">
<!-- Begin
//Tell-a-friend script
//Carl Dimmer
var initialsubj="Bolchazy-Carducci Publishers is offering Webinars"
var initialmsg="Dear (type person's name here):\n Here is a link to
the information: "+window.location
var good;
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S@).((\.com)|(\.net)|
(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|
(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
}
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
//window.location = "mailto:"document.eMailer.email.value"?
subject="initialsubj"&body="document.title" "+u;
window.location = "mailto:"document.eMailer.email.value"?
subject="initialsubj"&body="+initialmsg
}
}
// End -->
<script src="http://www.bolchazy.com/SpryAssets/SpryAccordion.js" type="text/javascript"> See you didn't close the <script> block, and you don't close the </ script> block of the accordion either.
Arnout Kazemier | Adobe Spry Community Expert
Internet: http://www.3rd-eden.com
Twitter: http://www.twitter.com/3rdEden | http://www.twitter.com/AdobeSpry
Copy link to clipboard
Copied
Move the following code from the <head> to the <body> of your document.
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
</script>
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more