Jump to content

Auto Answers For Quiz Caches.


Recommended Posts

Posted

I have just set up a puzzle cache where you have to work out the coordinates.

 

I give the first four digits and people have to work out the last three:

 

N 52. 52. ???

W 002. 07. ???

 

Does any one have any .html code or java script that I could put up so that people can check their answer before attempting the cache?

 

This would probably be in 'form format' so if you type in the correct coordinated it says 'well done' or if you type in the wrong ones it says 'try again'.

 

I have loads of online space so I have somewhere to host it.

 

Any help would be appreciated.

 

Thanks

 

Martin

Posted
Does any one have any .html code or java script that I could put up so that people can check their answer before attempting the cache?

Beyond me I'm afraid.

 

Only just found out how the do bold text and links :D:ph34r:

Posted (edited)

I'm sure it is possible using forms, and I expect one of our friendly resident html coders will be along shortly with an answer (just wait for them to finish their coffee).

 

Failing that, there are good html tutorials at www.w3schools.com

 

The other option you could use is an auto-replying email address, so they have to send an email to correct.answer@---.com, and set your isp's server to autoreply with "correct". if they've got it wrong, they'll not get an autoreply. You'll have to check if your isp allows autoreplys in their mail settings - I know ntl do.

Edited by NickPick
Posted

OK, I'm fully caffeinated, so knocked this out while finishing my toast...

http://files.dixo.net/one4zorro.html

 

The answer in the demo 222,222 - to change the answer you edit the script to tell it the real coords, run it, and it will tell you how to modify the code so the answer is hidden.

 

As I couldn't assume the presence of server side support, this is entirely javascript driven, which means the answer must be embedded in the HTML. The code uses a cryptographic hash (MD5) to hide the answer from curious eyes, but with a search space of only a million options, an enterprising geek could discover the answer reasonably quickly. But where's the fun in that eh?

 

Tested on IE6 and Firefox, should be OK on most javascript capable browsers, but could use a little finesse so that people with JS turned off see something else.

 

Enjoy!

Posted (edited)

Thanks very much for your help. This is just what I needed.

 

I have PMd you and closed this thread now.

 

Martin

Edited by one4zorro
Guest
This topic is now closed to further replies.
×
×
  • Create New...