User Profile

Collapse

Profile Sidebar

Collapse
systomx
systomx
Last Activity: Feb 26 '12, 01:27 PM
Joined: Nov 21 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • systomx
    started a topic Reverse Solidus (Backslash) Necessary?

    Reverse Solidus (Backslash) Necessary?

    I am using strict HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    in my website. validator.w3c.o rg gives me lots of errors within my javascript code, such as:
    '<B>a</B>...Line 24, Column 40: end tag for element "B" which is not open'

    The validator does not recognize the start tag <B>, just the end tag </B>....
    See more | Go to post

  • systomx
    replied to Foiling the cheaters
    drhowarddrfine

    I looked up the reference you suggested. It didn't quite meet my needs. One issue is that many of my answers are numeric, with students allowed to submit answers that are within a percentage of the correct answer. For example, if the answer is 100, and there is a 3% window, answers between 97 and 103 are accepted as correct.
    See more | Go to post

    Leave a comment:


  • systomx
    replied to Foiling the cheaters
    Thanks, Richard. That would be great. It could save me a lot of work in hand-encoding the answers.

    Systomx
    See more | Go to post

    Leave a comment:


  • systomx
    replied to Hiding a part of an html page
    Rabbit --

    You said "You can disable the context menu but they can just click on view > source in their toolbar."

    Well, yes and no. Using the tools menu/view source on Chrome, Firefox, and Safari shows the parent page (the frameset page), which doesn't have the answer.

    Still, I realize that what I've got is not really a fix for the problem, but more of a deterrent.

    (sigh) I may have...
    See more | Go to post

    Leave a comment:


  • systomx
    replied to Hiding a part of an html page
    Thanks for your posts.

    What I have now done is to include the following javascript code in an include file. The include file is called in the HEAD of each of the tutorial pages.
    Code:
    //Code to block access to context menu
    window.oncontextmenu = function() {return false;}
    This blocks right click for Google Chrome, Firefox, and Safari. It does not not work for IE8 or IE9. (Any comments on that?)
    ...
    See more | Go to post

    Leave a comment:


  • systomx
    started a topic Hiding a part of an html page

    Hiding a part of an html page

    I provide online tutorials for my students. Each page contains a question, which the student must answer. The answer is in javascript like this example:
    Code:
    corAns = 17
    I'd like to make it more difficult (I know I can't make it impossible) for the students to look at my code and extract the answer.

    I could encrypt the entire page, but that seems like overkill. Is there a slick way to encrypt one line of...
    See more | Go to post

  • systomx
    replied to Foiling the cheaters
    Once again, thanks to all who have responded. Aside from server-side maneuvers, many of you have been suggesting encrypting. I don't need to encode an entire page, I just have to encode the answer. Is there an easy way to do that?
    See more | Go to post

    Leave a comment:


  • systomx
    replied to Foiling the cheaters
    Thanks for your responses, Rabbit and Zorgi. I'm hoping for something a bit simpler than you have suggested. I've experimented with modifying the body tag as shown below:
    Code:
    <body "oncontextmenu = return false;">
    This is nice and simple, and it seems to prevent most browsers from using right click or the drop-down menus to view my code, but I've been told that this technique is insulting to users.
    ...
    See more | Go to post

    Leave a comment:


  • systomx
    started a topic Foiling the cheaters

    Foiling the cheaters

    I teach electrical engineering, and I have a series of 20 or so html/javascript tutorials for my students. Each page of each tutorial asks a question, which the student must answer. The answers are in the javascript, like this:
    Code:
    //Define variables:
     //Correct answer (use quotes for alpha-numeric, no quotes for numeric):
     var corAns = 5;
    Some of the students right click and select "view frame...
    See more | Go to post
No activity results to display
Show More
Working...