Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   Spry menu's dissappear! (http://www.dreamweaverclub.com/forum//showthread.php?t=43498)

RCTutz 09-19-2012 04:25 PM

Spry menu's dissappear!
 
Hi,
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?

mangofreak 09-19-2012 06:03 PM

the supporting files for css and so on are not referred properly:
Code:

<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:
Code:

<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.

RCTutz 09-19-2012 09:49 PM

I tried changing it, but it is still the same :(

mangofreak 09-19-2012 10:33 PM

did you upload all the files? including CSS and JS

johnMoss 09-20-2012 02:02 AM

You said you made the change, but on your site I still see
HTML Code:


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

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

=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...

gentleone 09-20-2012 02: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.

johnMoss 09-20-2012 02:26 PM

Since he had a template I assumed he'd already defined the site. Good point though, that is likely the real problem...

RCTutz 09-20-2012 07:51 PM

Thanks for all your support!
I got it fixed now.


All times are GMT. The time now is 07:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com