Announcement

Collapse
No announcement yet.

Snapshot/SRC error

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

    Snapshot/SRC error

    This isn't the usual problem with images that are outside of the Site1 folder, it's a new one on me! (sorry, this is a bit long).

    Because a client wanted a menu with rollover buttons that was exactly the same on all pages, I had re-created the brochure page menu in Act_Primary.html, using Adobe Golive's way of making rollover menus. This uses embedded CS Objects with some example code as follows:

    Code:
    <csobj al="Birthday" h="27" ht="birthday1.gif" t="Button" w="63">
    <a href="Birthday.html" onmouseover="return CSIShow(/*CMP*/'button2',1)" onmouseout="return CSIShow(/*CMP*/'button2',0)" onclick="return CSButtonReturn()">
    <img src="birthday1.gif" width="63" height="27" name="button2" border="0" alt="Birthday"></a></csobj>
    Actinic didn't like this very much and it stopped working, so I dumped that method (making sure all the GoLive code was stripped out), and switched to a Javascript instead. This is an all-in-one script, i.e. no script within <head></head>, as the following example:

    Code:
    <script language="JavaScript">
    <!-- // start hidden code
    birthday = new Image();
    birthday.src = "birthday2.gif";
    // done with hidden code -->
    </script>
    <a href="../Birthday.html" onMouseOver="button2.src=birthday.src;"
    onMouseOut="button2.src='birthday1.gif';">
    <img name="button2" src="birthday1.gif" width="63"
    height="27" alt="Birthday" border="0"></a>
    Here's the point of this post - Using the GoLive version, I was getting errors when doing a snapshot as follows:

    (File ExportFiles.cpp, Line 528) - The file C:\Program Files\Actinic Ecommerce v6\Sites\Anniversary House\Birthday.html was not found System error 2 - The system cannot find the file specified.

    ... followed by 10 more errors, one for each button.

    After I changed to the Javascript version the errors have changed to:

    (File ExportFiles.cpp, Line 528) - The file C:\Program Files\Actinic Ecommerce v6\Sites\Anniversary House\birthday.src was not found System error 2 - The system cannot find the file specified.

    The initial error message, before getting the above details, was:

    Warning: The HTML templates specify source files (with "SRC=" commands) that reside in directories other than the acatalog directory on the web site. Actinic Ecommerce cannot handle these files and they are being omitted from the list of files to upload.

    Everything works fine when previewing and after uploading.

    I'm used to seeing this message after I've imported clients' snapshots, and they've accessed image files from elsewhere in their hard drives, but I've not seen it related to HTML in a template before. Does anyone know how I can fool Actinic into ignoring the xxxxxx.src references in the Javascripts?

    Malcolm
    ¤ The world wide web needn't cost the earth
    ¤ ARTISAN INTERNET LTD
    ¤ www.artinet.co.uk

    #2
    You don't need the hidden birthday.src= bit.

    Just use "button2.src=birthday2.gif" for the OnMouseOver bit in your link.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Originally posted by olderscot
      You don't need the hidden birthday.src= bit.
      Just use "button2.src=birthday2.gif" for the OnMouseOver bit in your link.
      I think I did that correctly but the rollover's not working now! Here's the script as I amended it:

      Code:
      <script language="JavaScript">
      <!-- // start hidden code
      birthday = new Image();
      // done with hidden code -->
      </script>
      <a href="../Birthday.html" onMouseOver="button2.src=birthday2.gif;"
      onMouseOut="button2.src='birthday1.gif';">
      <img name="button2" src="birthday1.gif" width="63"
      height="27" alt="Birthday" border="0"></a>
      Is that what you meant?

      Malcolm
      ¤ The world wide web needn't cost the earth
      ¤ ARTISAN INTERNET LTD
      ¤ www.artinet.co.uk

      Comment


        #4
        Yes, although you probably need the single apostrophes around the button2.gif, i.e.

        "button2.src='birthday2.gif'"

        Is use this code on all my pages so it should work OK.

        Mike

        PS. All the javascript related to the hidden code can be removed. It doesn't do anything.
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          Thanks once again, Mike, my code is now as follows:

          Code:
          <script language="JavaScript">
          <!-- // start hidden code
          birthday = new Image();
          // done with hidden code -->
          </script>
          <a href="Birthday.html" onMouseOver="button2.src='birthday2.gif'"
          onMouseOut="button2.src='birthday1.gif';">
          <img name="button2" src="birthday1.gif" width="63"
          height="27" alt="Birthday" border="0"></a>
          (I've not stripped out lines 2-4 yet, I want to get it all working properly first!)

          The buttons now work OK, but or error messages on uploading and creating a snapshot (10 errors, 1 for each button) have now reverted to the following...

          "(File ExportFiles.cpp, Line 528) - The file C:\Program Files\Actinic Ecommerce v6\Sites\Anniversary House\Birthday.html was not found System error 2 - The system cannot find the file specified."

          ... which was the error I was getting before switching to the simple Javascript buttons!

          I can't see why a straightforward link reference should cause problems for Actinic, any ideas?

          If it helps, the url of an example page is http://act1.artinet.co.uk/acatalog/S...Ensembles.html

          Malcolm
          ¤ The world wide web needn't cost the earth
          ¤ ARTISAN INTERNET LTD
          ¤ www.artinet.co.uk

          Comment


            #6
            Hi Malcolm

            For the href link, have you tried to put a full url there instead, eg "http://www.domain.com/acatalog/Birthday.html". Try that please, and then do a snapshot.

            Kind Regards
            Nadeem Rasool
            SellerDeck Development

            Comment


              #7
              Now why didn't I think of that? Many thanks, Nadeem, that did the trick

              Malcolm
              ¤ The world wide web needn't cost the earth
              ¤ ARTISAN INTERNET LTD
              ¤ www.artinet.co.uk

              Comment

              Working...
              X