Re: [tw] using HTML5 localStorage in forms?
Thanks Tizianothat worked. Em quarta-feira, 21 de novembro de 2012 19h20min26s UTC-2, tiziano escreveu: Il 21/11/2012 21:43, skye riquelme ha scritto: Hi All I have been using localStorage extensively in my TW work, but cant seem to get access to the data from within html formsfor eample...why doesnt this simple bit of code set the localStorage item test?? (the wikify at the end is just to check if test got set.) Try this snippet, it should work: html form name=myform action= method=GETEnter something in the box: BR INPUT TYPE=text NAME=inputbox VALUE= INPUT TYPE=button NAME=button Value=Click onClick=testResults(this.form) /form /htmlscript testResults= function(form) { var TestVar = form.inputbox.value; var test=localStorage.setItem(test,TestVar); wikify(localStorage key test = + localStorage.getItem(test)+\n,place ); } /script regards -- tiziano de togni __ http://tizziano.altervista.org/ -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/YdI2sIbUeZIJ. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] using HTML5 localStorage in forms?
Hi All I have been using localStorage extensively in my TW work, but cant seem to get access to the data from within html formsfor eample...why doesnt this simple bit of code set the localStorage item test?? (the wikify at the end is just to check if test got set.) script function testResults (form) { var TestVar = form.inputbox.value; var test=localStorage.setItem(test,TestVar); } /script html form name=myform action= method=GETEnter something in the box: BR INPUT TYPE=text NAME=inputbox VALUE= INPUT TYPE=button NAME=button Value=Click onClick=testResults(this.form) /FORM /html wikify {{localStorage.getItem(test)}} Thanks in Advance Skye -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Re: [tw] using HTML5 localStorage in forms?
Il 21/11/2012 21:43, skye riquelme ha scritto: Hi All I have been using localStorage extensively in my TW work, but cant seem to get access to the data from within html formsfor eample...why doesnt this simple bit of code set the localStorage item test?? (the wikify at the end is just to check if test got set.) Try this snippet, it should work: html form name=myform action= method=GETEnter something in the box: BR INPUT TYPE=text NAME=inputbox VALUE= INPUT TYPE=button NAME=button Value=Click onClick=testResults(this.form) /form /htmlscript testResults= function(form) { var TestVar = form.inputbox.value; var test=localStorage.setItem(test,TestVar); wikify(localStorage key test = + localStorage.getItem(test)+\n,place ); } /script regards -- tiziano de togni __ http://tizziano.altervista.org/ -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.