View Full Version : Spry menu's dissappear!

09-19-2012, 03:25 PM
I created a site to test Dreamweaver.
here is the link: http://rctutorials.net16.net/
I used a standard template with spry menu's, if I preview the site, they are there, but after the upload, the are gone!
What is the problem?
Am I using a hosting service which doesn't support this?

09-19-2012, 05:03 PM
the supporting files for css and so on are not referred properly:

<link rel="stylesheet" type="text/css" href="file:///C|/Users/Gert Jan/Desktop/Nieuwe map/Publish/stylesheet.css" />
<script type="text/javascript" src="file:///C|/Users/Gert Jan/Desktop/Nieuwe map/Publish/SpryAssets/SpryAccordion.js"></script>
<link href="file:///C|/Users/Gert Jan/Desktop/Nieuwe map/Publish/SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />

This is how they should be:

<link rel="stylesheet" type="text/css" href="http://rctutorials.net16.net/Publish/stylesheet.css" />
<script type="text/javascript" src="http://rctutorials.net16.net/SpryAssets/SpryAccordion.js"></script>
<link href="http://rctutorials.net16.net/SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />

as you can see, your files even though they may be published, the code above indicates they are on your local computer not on the server.

09-19-2012, 08:49 PM
I tried changing it, but it is still the same :(

09-19-2012, 09:33 PM
did you upload all the files? including CSS and JS

09-20-2012, 01:02 AM
You said you made the change, but on your site I still see

link href="file:///C|/Users/Gert Jan/Desktop/Nieuwe map/Publish/SpryAssets/SpryAccordion.css" rel="stylesheet"

1) In Dreamweaver, open up your content page, contained in the 'templates' folder.
2) highlight, and then delete, the following from your css link

=file:///C|/Users/Gert Jan/Desktop/Nieuwe map/Publish/SpryAssets/SpryAccordion.css

(get rid of the remaining quotes "" too, they don't show up in these html boxes)
3) Now put the = sign after 'href'.
4) Upon doing so, the 'browse button' will appear.
5) Navigate to your css file & select it.
6) Click save. A pop up box will ask you if you want to update files. Choose yes.
7) Upload to server & it'll work jus fine...

09-20-2012, 01:05 PM
Or define your site in DW and it should automatically change the paths relative to the root directory. I can't confim the last part, but that's what I think. If not then you will have to do it manually.

Before you start working on a site in DW, you must define the site first:
menu > site > manage sites
Then you won't have this problem anymore.

09-20-2012, 01:26 PM
Since he had a template I assumed he'd already defined the site. Good point though, that is likely the real problem...

09-20-2012, 06:51 PM
Thanks for all your support!
I got it fixed now.