PassMark Logo
Home » Forum

Problem with "Jump to highlight"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrickcb
    Junior Member
    • Jun 2009
    • 7

    #1

    Problem with "Jump to highlight"

    My website has over 2,500 pages and is very highly stuctured with about 7 levels.

    I have put "highlight.js" in the same directory as index.html.

    Each page calls up a CSS file called "styles2.css" (original!).

    I have read 7.8 in the manual but am still no wiser (a) what I need to put in the CSS file, (b) what additional command I need to put on each sheet, and (c) if I have reference the command to the specific location of highlight.js, e.g. five levels up.

    Patrick
  • Ray
    Administrator
    • Dec 2004
    • 4357

    #2
    Have you read this support page?
    http://www.wrensoft.com/zoom/support/highlighting.html

    You don't need to put anything in the CSS file (although you can put the ".highlight" definition in there if you want, but it could be separately defined as instructed in the above link as well).

    Your other questions should be explained on the above support page, but let us know if you have further questions.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    • patrickcb
      Junior Member
      • Jun 2009
      • 7

      #3
      Jump to highlight

      Thanks for the suggestions, Ray, but it still doesn't work.

      1) I made sure the .highlight definition is in the CSS file.

      2) Putting the script in the header made the page not display so I put it in the footer instead (as per the support page).

      3) I think I gave the correct location for the highlight.js file:

      <script type="text/javascript" src="../../online/highlight.js"></script>

      Any suggestions?

      Patrick

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        What is the URL to a page on your site where you have included the script? We can then check what you have done.

        Comment

        • patrickcb
          Junior Member
          • Jun 2009
          • 7

          #5
          I've double checked the full URL and it works fine (it's in a subscribers only area so you'd need a user name and password to access the directory).

          The tree structure here is:

          a) /member-only

          b) /cgi-bin

          c) /content

          d) Beaufort.html

          b) /online

          c) highlight.js

          By my reckining the path from Beaufort.html to highlight.js is "../../highlight.js" .

          Patrick

          Comment

          • David
            Administrator
            • Dec 2004
            • 4714

            #6
            Can you give us a test account for a few hours so we can have a look. It is likely it is some simple error or a conflict between multiple Javascript scripts that you might or not not have on the page. If you can't give us access to the page to see the problem then I can only suggest re-reading the FAQ support page above.

            I should also note that the V6 highlight script has less potential for conflict with other scripts compared to V5. So you might want to try V6.

            Comment

            • Ray
              Administrator
              • Dec 2004
              • 4357

              #7
              Originally posted by patrickcb View Post
              The tree structure here is:

              a) /member-only

              b) /cgi-bin

              c) /content

              d) Beaufort.html

              b) /online

              c) highlight.js

              By my reckining the path from Beaufort.html to highlight.js is "../../highlight.js" .
              I'm not sure if I'm reading your hiearchy description correctly but it doesn't seem to correspond to the path you've determined.

              If the files are indeed as I think you mean, that is:

              /member-only/cgi-bin/content/Beaufort.html

              and

              /member-only/online/highlight.js

              Then the path from Beaufort.html to the script should be more like "../online/highlight.js".

              For more information on how relative paths work, check some online references. There's a chapter on this in the Appendix of the Users Guide.
              --Ray
              Wrensoft Web Software
              Sydney, Australia
              Zoom Search Engine

              Comment

              • patrickcb
                Junior Member
                • Jun 2009
                • 7

                #8
                Thanks, Ray, but that didn't work either.

                Patrick

                Comment

                • patrickcb
                  Junior Member
                  • Jun 2009
                  • 7

                  #9
                  Yes, I can set you up as a temporary user.

                  Which files would you want access to?

                  Patrick

                  Comment

                  • Ray
                    Administrator
                    • Dec 2004
                    • 4357

                    #10
                    The file(s) in question would help. Or any file with the highlight script implemented as we're discussing.
                    --Ray
                    Wrensoft Web Software
                    Sydney, Australia
                    Zoom Search Engine

                    Comment

                    • patrickcb
                      Junior Member
                      • Jun 2009
                      • 7

                      #11
                      That's the problem - I'm trying to implement it with one file to see if the highlighting works . Once I know that I can add the code to the other files.

                      If you let me have an email address, I can send the .htm file to you.

                      Comment

                      • David
                        Administrator
                        • Dec 2004
                        • 4714

                        #12
                        Contact details are here.

                        Comment

                        • patrickcb
                          Junior Member
                          • Jun 2009
                          • 7

                          #13
                          Is there an email address I can send the file to?

                          Comment

                          • Ray
                            Administrator
                            • Dec 2004
                            • 4357

                            #14
                            We have corresponded with Patrick via further e-mails and resolved the issue. The problem was due to a typo in his script tags, and the file was not uploaded to the server.
                            --Ray
                            Wrensoft Web Software
                            Sydney, Australia
                            Zoom Search Engine

                            Comment

                            Working...