Tag Archives: Go

Colour Coded Mobile Form With Onsubmit Captcha Tutorial

Yes, am sure lots of you could have told me about yesterday’s Colour Coded Form With Onsubmit Captcha Tutorial … But what about mobile? Well, it’s your turn to say … Told you so. It’s the scenario whereby there is an onsubmit event logic defined and the user gets any chance at the “keyboard”, if they use the “go” button (at least on iOS) that was circumventing the Captcha logic we’d introduced. In the remedy, we got so very close to totally using, for the first time, the relatively recent … “inert” attribute (thanks to this great link and this interesting link and this stupendous link) … after unsuccessfully reactivating textboxes after the application of, on mobile … “disable” attribute … and/or … “readonly” attribute … but what we found better (though inert was good for about 71/2 out of 8 scenarios (and with all the mobile scenarios)) was to use, occasionally, the rather crude … if you want to discourage keyboard usage ahead of arranging the Captcha image and span … for whatever reason … go, as soon as possible … [formElement].style.visibility=’hidden’; … until … the Captcha image and span have been appended to the [formElement].innerHTML (perhaps display:block; or perhaps display:none;) and any overlaying input type=button applied … then … as required, go … [formElement].style.visibility=’visible’; … in a further changed colour_code_captcha.js external Javascript helping out colour_code_captcha.htm testing HTML with onsubmit already defined (or below) or testing HTML with no onsubmit already defined (or below). Previous relevant Colour Coded Form With Onsubmit Captcha Tutorial is shown below. We suspected there would be difficulties when, elaborating on yesterday’s Colour Coded Form Captcha Tutorial‘s start … dynamically adding Captcha Colour Code logic (via the use of external Javascript) to an HTML webpage form … which had no form onsubmit event defined … when today we tested that logic for a form with existant onsubmit event logic (and needed) … new dynamically adding Captcha Colour Code logic (via the use of external Javascript (still via the use of external Javascript … <script type=’text/javascript’ src=’//www.rjmprogramming.com.au/colour_code_captcha.js’ defer></script> ) for an HTML webpage form … which had an existant form onsubmit event defined Recreating onsubmit logic panned out to be the wrong approach, and the KISS (“keep it simple signorina”) approach much more the go. We ended up … recognising the existence of an onsubmit event show the Colour Coded Captcha image and “span” question near … Continue reading →

Posted in eLearning, Event-Driven Programming, iOS, Tutorials | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Go Webserver Primer Tutorial

Did you wake up wanting to write your own Web Server? No? Well, what are WE to do with YOU? “Lefty? Mugsy? Priscilla? Let ’em ‘av it? Yes, the web server, you ‘eard what oi said! Sorry, you’re having lunch?” … four hours later … “Mugsy, what’s that triangular piece of paper … never mind … have you got that web server?” (Metallic tinkering sound) “You do know what a web server is, don’t you? What’s that you’ve got there on that silver thing behind your back?” (Metallic tinkering sound) … replaced by (Metallic sounds that are tinkering) “Lefty, do you know what is behind Mugsy’s back … and why have you got one of those triangular pieces of pap … oh, never mind. Is that a link you want me to click?” . . . . . . . . V Welcome to Mugsy’s and Lefty’s personalized link Da da da da! … or should that be … Do do, do do, do do, do do! Our tutorial today builds on previous Go Install Primer Tutorial as shown below. Link to downloadable Go programming source code for a rudimentary webserver (about animals) could be called webserver.go as you wish. Link to Go “spiritual home” at Google. Link to really good Go tutorials at Google. Link to Go 1.1 Google Open Source Blog is here. Link to really good Go web information at Google. Previous Go Install Primer Tutorial is shown below. Go (by Google) gave me that feeling like you are just seeing the tip of the iceberg, again. A friend kindly put me onto this as a programming language which is an alternative to OOP but not just a function call type of language. Here we just install it (on a Mac 64bit laptop with Mac OS X 10.7.5) and do the old “Hello World“, but we will explore more in tutorials to come, and in any case here we do 4 x “hello world” with 3 different programs. Meanwhile, have a read from Wikipedia about it, below: Go, otherwise known as Golang, is an open source, compiled, garbage-collected, concurrent system programming language. It was first designed and developed at Google Inc.[7] beginning in September 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.[3] The language was officially announced in November 2009 and is now used in some of Google’s production systems.[8] Go’s “gc” compiler targets the Linux, … Continue reading →

Posted in eLearning, Tutorials | Tagged , , , , , | 1 Comment