iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-25-2005, 11:27 PM
Memoire's Avatar
WebProWorld Member
 
Join Date: Sep 2003
Location: Tokyo, Japan
Posts: 45
Memoire RepRank 0
Default Invisible CSScriptlib

Hi,

While I specify specifically in the page code the location of the CSScriptLib.js, example; <link href="http://www.mysite.com/CSScriptLib.js" rel="stylesheet" type="text/css">, once I save the page to my HD the code changes automatically to, example; ../HD/users/preferences/golive/scripts/CSScriptLib.js.

I looked under preferences in Golive 6 but can't find any option other than to write the CSS code directly into the page, which could I assume make the page more bulky.

What I want is to be able to write in the page code the location of the CSS file, example; <link href="http://www.mysite.com/master_style.css" rel="stylesheet" type="text/css">.

So.... If anyone has a solution to this, or indeed any ideas at all, it would be great to have your comments, before I go crazy would help!
__________________
Thanks for your reply
Cheers
Steven
http://stevenredhead.com

"Life is not measured by the number of breaths we take...but by the moments that take our breath away."
Reply With Quote
  #2 (permalink)  
Old 09-01-2005, 02:45 AM
WebProWorld Pro
 
Join Date: Aug 2003
Location: California,USA
Posts: 294
drummin RepRank 0
Default

Hi Memoire,
Not sure if you're asking how to link to JS or a CSS file.
The URL you listed looks like a JS file that you're calling up as a CSS file.
SO, here's both types of links.

<script src="YourJSfile.js" language="javascript" type="text/javascript"></script>
<link href="YourCSSfile.css" rel="stylesheet" type="text/css">

Yes, you can change to full URL paths if you wish or back out of folders with ../../

Not sure if this was what you were asking for...
Reply With Quote
  #3 (permalink)  
Old 09-02-2005, 07:08 AM
Memoire's Avatar
WebProWorld Member
 
Join Date: Sep 2003
Location: Tokyo, Japan
Posts: 45
Memoire RepRank 0
Default Wrong Perception

Well to repeat: In Golive I set the file location as my site folders main folder <link href="http://www.mysite.com/CSScriptLib.js" rel="stylesheet" type="text/css">

WHen I save the file to my HD the file location in the code automatically changes to: ../HD/users/preferences/golive/scripts/CSScriptLib.js. This is a location on my HD.

So when I upload the file it can no longer find CSScriptLib.js as the code is telling the page to look on my HD which it can't from the site server.

Any help how to set Golive to resolve this would be most welcome.

Cheers
__________________
Thanks for your reply
Cheers
Steven
http://stevenredhead.com

"Life is not measured by the number of breaths we take...but by the moments that take our breath away."
Reply With Quote
  #4 (permalink)  
Old 09-02-2005, 07:23 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

Quote:
Well to repeat: In Golive I set the file location as my site folders main folder <link href="http://www.mysite.com/CSScriptLib.js" rel="stylesheet" type="text/css">
This looks completely wrong as you are pulling in the GoLive JS library as a CSS file, I would normally expect to see something like:
Code:
<csscriptdict import="import">
<script type="text/javascript" src="../GeneratedItems/CSScriptLib.js"></script>
</csscriptdict>
I always use a relative path and I've never seen the problem you're having, not that I use their JavaScript any more.

Have you tried talking to Adobe they are quite helpful.
Reply With Quote
  #5 (permalink)  
Old 09-02-2005, 01:46 PM
WebProWorld Pro
 
Join Date: Aug 2003
Location: California,USA
Posts: 294
drummin RepRank 0
Default

Hi Memoire,

When I make a site, I usually setup the folders before hand. So I might have a folder for images, pages and CSS for example. Then when I make a CSS page (extension .css), I would click, "save as" then find the css folder and click save.

As I'm not familiar with the program you're using I can't address this per-say, but if you make each page and save it to the folder you want... you should be able to hand code your links accordingly.

There are times, especially when adding images that you need to physically move them to the folder you want. Otherwise the path will point to your system instead of an image folder you have setup.

I would suggest, trying to save each file as intended... CSS in css folder, etc. If you can't for some reason, copy and paste.

As several posts have mentioned, be sure to save CSS pages as .css

How this helps.
Drummin
Reply With Quote
  #6 (permalink)  
Old 09-03-2005, 10:32 PM
Memoire's Avatar
WebProWorld Member
 
Join Date: Sep 2003
Location: Tokyo, Japan
Posts: 45
Memoire RepRank 0
Default

Hi Drummin.

Yes you basically stated what I already do. The problem is the CSScriptLib.js file that Golive generates is sent to a fixed location on my HD automatically - I wanted to change this default to the website folder of the site I am working on. As I mentioned the route is: ../HD/users/preferences/golive/scripts/CSScriptLib.js.

I usually get this file and put it in a 'generated-items' folder within the site folder I am working on, which would be loaded to the server. In the code I point to this folder: <link href="http://www.mysite.com/generated-items/CSScriptLib.js. " rel="stylesheet" type="text/css">

This is all fine.

The problem comes when I save the html file it automatically reverts the link back to: <link href="../HD/users/preferences/golive/scripts/CSScriptLib.js.
" rel="stylesheet" type="text/css">

What I want to do is stop Golive doing that.
__________________
Thanks for your reply
Cheers
Steven
http://stevenredhead.com

"Life is not measured by the number of breaths we take...but by the moments that take our breath away."
Reply With Quote
  #7 (permalink)  
Old 09-03-2005, 10:36 PM
Memoire's Avatar
WebProWorld Member
 
Join Date: Sep 2003
Location: Tokyo, Japan
Posts: 45
Memoire RepRank 0
Default What is the alternative

[quote]I always use a relative path and I've never seen the problem you're having, not that I use their JavaScript any more. [/quote

Would be interested in what you do as a replacement for JavaScript?
__________________
Thanks for your reply
Cheers
Steven
http://stevenredhead.com

"Life is not measured by the number of breaths we take...but by the moments that take our breath away."
Reply With Quote
  #8 (permalink)  
Old 09-04-2005, 03:55 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

I'm confused!

When you are talking about the file CSScriptLib.js is that the JavaScript library that GoLive auto creates and should be automatically creating with in the current project tree?
Quote:
<link href="http://www.mysite.com/generated-items/CSScriptLib.js. " rel="stylesheet" type="text/css">
Why are you including JavaScript as CSS?

Have you create a GoLive site project, or are you loading and editing the files outside of GoLive's project management?
If the latter then try creating a site project and moving all your files into it.

Have you tried the GoLive forum at http://www.adobe.com/support/forums/main.html
Quote:
Quote:
I always use a relative path and I've never seen the problem you're having, not that I use their JavaScript any more.
Would be interested in what you do as a replacement for JavaScript?
CSS in the main, if I need JavaScript I roll my own as it has less baggage usually.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:24 AM.



Search Engine Optimization by vBSEO 3.3.0