www.webdeveloper.com
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 24 of 24
  1. #16
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20
    lol, in my book plumbers are experts and make a nice living!

    You have been generous with your time and I appreciate it. This function is very close to working and I believe the "parse" is causing an issue because it is an actual JavaScript method so perhaps the JS engine is Safari is upset that it is being declared as a variable in this function.

    Plus, the actual debugging error in Safari says "Can't find variable: parse"

    So I tried changing the name (to "parced" and "place" but it still says it can't find that variable.

    I then declared it as a variable, var parsed; (undefined), but same result.

  2. #17
    Join Date
    May 2006
    Location
    Russia, Rostov-on-Don
    Posts
    1,127
    try this one (no coockie engaged):
    Attached Files
    Last edited by Padonak; 05-01-2012 at 12:44 PM.
    use [code]YOUR CODE GOES HERE[/code] or burn in Hell

  3. #18
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20

    Thumbs up

    You are a master Plumber! That worked wonderfully on Safari as well as on the iPad! Fantastic!

    You made my week! As geeky as this may sound, I am going to spend the rest of the afternoon studying what you have done and hopefully start my JavaScript apprenticeship in the shadow of such a great plumber (yes, I am actually this corny in real life!).

    And no cookie is used? That's a lot for me to learn!

    Thank you Padonak!

    . . . and as for your English, it's pretty darn good, better than many of my co-workers (I am french canadian but went to English schools).

    I'd love to buy you a beer! subquark at gmail

  4. #19
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20
    lol on the "burn in hell!" =D

  5. #20
    Join Date
    May 2006
    Location
    Russia, Rostov-on-Don
    Posts
    1,127
    lol )) i can explain every line to you there's no need to waste time on it )) so wait for the explanations <wink>

    p.s. i do not drink at all ))))))))))
    use [code]YOUR CODE GOES HERE[/code] or burn in Hell

  6. #21
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20
    That would be great! And what a neat JavaScript trick you did for the images! =)

    I gave up drinking two years ago, the only thing I miss is the ritual of having a vodka martini on a Friday evening but it's all good! And I sleep much better too!

    Thanks again, and if you do write up an explanation, I'd love it.

    If you have a blog, I think you'd get traffic over this one - we do eLearning and have left Flash behind. We needed some form of low level assessment and can't count on having any server-side scripting available, so this simple quiz was okay for us. Separating the answers into a separate JS file was good enough because if our users figured that out, they should do well on the quizzes! =)

    I searched for a good week on something like this - JS, XML, AJAX, JQuery, anything at all and most solutions were poor. Plus it has to be HTML5 for us and work on almost anything.

    Your code allows for that and I think many other corporate eLearning departments are in the same boat.

    Not able to use SQL or a scripting language really limits this for us (on my own time I do a bit in MySQL, Apache, PHP for http://simonastick.com ).

    Thanks again Padonak, you are truly appreciated.

  7. #22
    Join Date
    May 2006
    Location
    Russia, Rostov-on-Don
    Posts
    1,127
    check mail ))

    by the way, i think it is possible to build the first array (correct answers) so that it will not be easily seen in the code to confuse cheaters
    Last edited by Padonak; 05-01-2012 at 03:56 PM.
    use [code]YOUR CODE GOES HERE[/code] or burn in Hell

  8. #23
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20
    A secret way to build the array? Now you have aroused my curiosity! This could be handy if it doesn't confuse me as how to assign those right answers!

    wow, I just searched JavaScript obfuscation and holy cow! Lots of tools out there! I will exoplore some and see what I find, thanks!
    Last edited by subQuark; 05-03-2012 at 09:27 AM. Reason: added info

  9. #24
    Join Date
    Apr 2012
    Location
    Porstmouth, NH
    Posts
    20
    I think I may just do the following which will be a little confusing but not hard.

    Our target audience is pretty good about not cheating and this quizzing does not impact their job and is offered as a self-guidance tool.

    Making two arrays of odd and even answers and concatenating them will work for us (latin terms for odd and even used):

    var impar = new Array('a','c','b','b','b');
    var etiam = new Array('a','a','b','d','a');
    var answers = impar.concat(etiam);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles