From: Matthew W. <mat...@us...> - 2006-03-08 18:24:12
|
Gaetan, It looks like we both may be pursuing the same goal. I have taken your idea and made it more generic. The enclosed shopping_list.pl uses a new "insert_keyboard" function that takes a textbox id as a parameter. To use the virtual keyboard, you need to include the enclosed virtual_keyboard.pl in your code path and activate it within misterhouse. Let me know what you think. Matt Gaetan Lord wrote: > There is 3 section for the keyboard > > The javascript, which is closely related to the input field. In this case, > the name of the field is "item" so, when you look at the javascript > function > named BackSpace and seek, > > They both refer to a variable named document.main.item.value main is the > window/frame name item is the variable from input > > So, you need the javascript section, also the input field for item and > also the table creating the keyboard. Those 3 are required to implement the > keyboard. And after thinking about it, we could probably have this portable > to other code :) > > I'm in vacation this week, so If you wait t'il the end of the day, I > will have > a new version, that I think would me more suitable for PDA. I will also > implement an SSI keyboard that we could be to embed in other script. I will > put this information in the wiki, for other to use. I will ask Bruce to > put the keyboard stuff in the MH distribution. > > Maybe you could give a shot on your TREO. This would be nice to know if > it's > fine, because I'm planning to buy a Nokia 770. > > > Tom wrote: >> I tried this out and accessed it from my Treo. >> It works nice. >> I tried cutting out the keyboard code and putting it in file called > keyboard.pl. >> I then tried to use the include code, but I haven't had any luck using > includes with anything other than actual code like <!--#include > code="&clear_message_light"--> >> I think includes with files are similar to <!--#include > file="keyboard.pl"--> but nothing shows up. >> I'm running MH on CentOS 4.2 if that makes any difference. >> >> thanks, >> tom >> >> Gaetan Lord wrote: >>> I include the changed version, with the javascript keyboard. >>> >>> This version is also sorting the item in each category, so when you > add a new >>> item, it is positioning at the right place >>> >>> It also put the first letter of every word in capital, to have > consistent look on the screen >>> >>> Note, because of the sort, I get rid of any comment(#) and empty line > in the configuration file. >>> >>> I'm currently working on similar script, that do exactly what you do, > use some of your code, >>> but I think, should be better on small display/slow computer. >>> >>> I'm not sure if the keyboard could be implemented as an SSI, you're > probably better than me on >>> that stuff. >>> >>> Finally, it is probably a wise choice to keep a copy of your > shopping_list.txt file, until >>> this has been tested by many people. >>> >>> Matthew Williams wrote: >>>> Gaetan, >>>> >>>> This sounds like something that may be universally applicable to other >>>> places in misterhouse as well. Depending on how you implemented the >>>> functionality, it may be possible to have a server side include > statement to >>>> include a virtual keyboard in any page that might need it. >>>> >>>> If you like, send me your code and we'll see if there's a way to > make it >>>> generic. >>>> >>>> Matt >>>> >>>> Gaetan Lord wrote: >>>> >>>> Hi >>>>> >>>>> I do have a small touch panel to control my house. I came across the >>>>> shopping >>>>> list written by Matthew Williams and I did a small change to put a >>>>> pseudo keyboard >>>>> in the "add item" page. This allow me to enter new item without > using my >>>>> keyboard. I have also this setting on my personal MP3 interface, where >>>>> it has been >>>>> working well for many years. The change is an added javascript, and > few >>>>> tables. Actually, >>>>> it's the only javascript I wrote in my life. >>>>> >>>>> Matthew , let me know if you want to incorporate something like > this in >>>>> your script. For the others, contact me if you want my version. >>>>> >>>>> The look and feel is not perfect, but at least it does the job. >>>>> >>>>> >>>>> >> =1365 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > |