Announcement

Collapse
No announcement yet.

linking to javascript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    linking to javascript

    Hi

    In my DW-built external design (in D:/Web/xyz/) I have:

    <script src="includes/cssmenus2/js/cssmenus.js" type="text/javascript"></script>
    <script src="includes/cssmenus2/js/animation.js" type="text/javascript"></script>

    I have put these folders in Site1 but the previewed pages end up with:

    <script src="file:///D:/Web/xyz/includes/cssmenus2/js/cssmenus.js" type="text/javascript"></script>
    <script src="file:///D:/Web/xyz/includes/cssmenus2/js/animation.js" type="text/javascript"></script>

    Actinic is happily pointing to css files, and I have made sure the includes folder is in PreviewHTML.

    Any clues, please?

    #2
    Either

    Use full src="http://www.mysite.com/includes/cssmenus2/js/cssmenus.js" type URL's (which won't work on the Preview).

    Or (much cleaner)

    Keep these files in Site1 and use

    src="cssmenus.js"

    Actinic puts all files involved in the site into the single acatalog directory on yuour server. It doesn't expect any files to be in sub-directories.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks

      Norman

      Thanks.

      What a lot of clutter a single folder will have! (In the same vein, I don't like having 'work' files in the Programs folder - it's like sticking cheese in the cutlery drawer; easy when you want to cut some cheese, but tends to make the spoons stink.)

      Comment


        #4
        Yep. You do get a pretty big acatalog directory on the server.

        It's only "system" type files that need to be in Site1.

        For images it may be tidyer to keep them in a sub-folder of Site1 (images say).

        This isn't as clean as keeping them on a separate data drive but has the major simplicity of having everything involved in a site inside the Site folder, making it very easy to back-up the entire site.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X