Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread green
Yes there is a problem with IE that copied input is not accessible. I use clone(true) to copy the div including label and input, and then insert the div at top of the form. This problem is not relevant to pMask() actually, so calling new pMask() is not the root cause of the problem. calling new pM

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread lars_stecken
I actually thought that the copied input box was the one at the bottom, but now I figured it's the one on top of the sample file. So it's the copied input field which is not accessible. Also, it doesn't make a difference if you call pMask() a second time after copying - the effect is the same. Chee

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread lars_stecken
Hi Green, thanks for the fix. Tested it on IE 7 and the error is gone. However, I noticed that in your sample.html the original input file is not selectable in IE7/8 - neither by mouse nor by tab. Very strange, but it doesn't bother me much. I guess it's more a problem of the cloning... Greets, S

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-23 Thread green
Hi Stefan, I give up Event.prototype extension mechanism and make Event.prototype.key() a normal function in pMask.js. Can you try it in your IE7? I am using windows7 and IE7 can't be installed in this machine. But anyway I suppose this new version should work. thx, Green On Tue, Mar 23, 2010 at

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-22 Thread lars_stecken
Hi Green, I was an idiot (again) - I still had the IE 7 emulation meta tag in my HTML head, that's why I still got the error. I had put this tag in before in one of my efforts to find a work around for the error. Even so, I just checked your example file against a real IE 7 and it fails (Event.pr

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-21 Thread green
Hi Pranav, Thank you very much for this information. I will add support to "data-mask" for HTML5. In the mean time "alt" will continue to be supported in order to support old HTML/XHTML versions. BRs, Green On Mon, Mar 22, 2010 at 2:16 AM, Pranav wrote: > Hi Green, > > Not sure if I'm too late

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-21 Thread Pranav
Hi Green, Not sure if I'm too late with this suggestion, but have you considered using a data attribute e.g. data-mask for specifying the mask? http://www.javascriptkit.com/dhtmltutors/customattributes.shtml You might mess up screen readers by using the alt attribute. Cheers On Mar 21, 5:24 am,

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-21 Thread green
hi Stefan, This is the result of removing "prototype" from "Event.prototype.key". Please DO NOT DO it if you want to keep the tool working. I have tried T.J.'s suggestion about the IE problem, it's already gone. However there is another problem in IE8: I tried to clone the form input and found i c

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Ok, I figured that now I am getting errors in FF on buttons which are caught with the default case in the _chrFromEvent. The mask is still working though - I could just comment this line "chr = event.key();" , right? Am I breaking any functionality by doing this? On 19 Mrz., 12:07, green wrote:

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Hm, that's odd, because I could reproduce the error on my page with IE 8. I have all the requirements (DOCTYPE and all) in my code and still got the error. How could removing the "prototype" have helped in my case? On 19 Mrz., 12:07, green wrote: > Hi Stefan, > > IE problem has been cleared by T.

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Hey Green, I am not an expert in JS coding, but maybe this helps: I removed the "prototype" from Event.prototype.key and now IE 8 seems to work properly. With one exception: it is not possible to initialize the copied form fields - Firefox still works fine. Maybe you can have another look into the

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread green
Hi Stefan, IE problem has been cleared by T.J. Crowder in this thread: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/840c2418c566b624?hl=en. It's actually a problem of my test html page, not relevant to the javascript.

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-18 Thread lars_stecken
Hey Green, thanks a bunch for this quick answer. I'll try it out today and will also look into the IE problem - maybe I can help. Greets from Berlin, Stefan On 19 Mrz., 00:36, green wrote: > Hi Stefan, > > Thanks for reporting this problem. I have a quick fix enable you to call new > pMask() mul

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-18 Thread green
Hi Stefan, Thanks for reporting this problem. I have a quick fix enable you to call new pMask() multiple times without impact fields that is already initialized. I have tested it on firefox (3.6) and Chrome (4.0). Running this script on IE8 failed due to Error: "Event.prototype is null or not an o

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-18 Thread lars_stecken
Hey good work with the script. Ran into a little problem: I am copying form elements which have a pmask applied to. Unfortunately the new elements do not get recognized by pMask and calling new pMask() again will result in malfunction of the already initialized fields while the new fields work fine

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-09 Thread Hariz Soleminio
COOLLL!!!... Thanx men more power From: buda To: Prototype & script.aculo.us Sent: Wednesday, March 10, 2010 4:31:07 Subject: [Proto-Scripty] Re: pMask: a tool to mask input data good work! thanks On 6 мар, 15:06, green wrote: > Hi, > >

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-09 Thread buda
good work! thanks On 6 мар, 15:06, green wrote: > Hi, > > I have port Fabio Zendhi Nagao's > iMasktool to prototype with > changes (or, you can say, enhancements). You can > download it athttp://github.com/greenlaw110/pMask/ > > Thx, > Green -- You received