PassMark Logo
Home » Forum

Problem with "Jump to highlight"

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Ray
    replied
    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.

    Leave a comment:


  • patrickcb
    replied
    Is there an email address I can send the file to?

    Leave a comment:


  • David
    replied
    Contact details are here.

    Leave a comment:


  • patrickcb
    replied
    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.

    Leave a comment:


  • Ray
    replied
    The file(s) in question would help. Or any file with the highlight script implemented as we're discussing.

    Leave a comment:


  • patrickcb
    replied
    Yes, I can set you up as a temporary user.

    Which files would you want access to?

    Patrick

    Leave a comment:


  • patrickcb
    replied
    Thanks, Ray, but that didn't work either.

    Patrick

    Leave a comment:


  • Ray
    replied
    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.

    Leave a comment:


  • David
    replied
    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.

    Leave a comment:


  • patrickcb
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • patrickcb
    replied
    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

    Leave a comment:


  • Ray
    replied
    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.

    Leave a comment:


  • patrickcb
    started a topic Problem with "Jump to highlight"

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