Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spry is not defined

New Here ,
Apr 16, 2009 Apr 16, 2009

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

TOPICS
Server side applications
2.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Apr 16, 2009 Apr 16, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 16, 2009 Apr 16, 2009
LATEST

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines