[Prototype-core] Re: writeAttribute and IE7
Alright, but the way trying to set this Element over new Element() also doesn't work. IE7 won´t do it. On Jun 23, 1:44 pm, artemy tregoubenko [EMAIL PROTECTED] wrote: Afaik, IE won't let you change type of an input after input is created. You need to create input with correct type. This can be done like this: var a = new Element('input', {type: 'password'}) On Mon, 23 Jun 2008 14:28:55 +0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So, I have a problem while using writeAttribute for changing the type of an input field. Here is my code: $(id).writeAttribute({type: 'password'}); or $(id).writeAttribute('type', 'password'); Works fine with FF but IE7 tells that this command won´t be supported. Does anyone knows something about it? -- arty (http://arty.name) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Observe events in iframe
Is it possible to observe events in iframe? var iframe = new Element('iframe'); iframe.observe('mouseup', function (e) { ... }); // Not works ;-( I found that in FF, I can iframe.contentWindow.document.addEventListener('mouseup', function (e) {...}, true); // Works But, how to do it with Prototype? tnx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Observe events in iframe
Prototype shortcuts are tailored to work in current window. However you can use generic prototype methods like this: Event.observe(iframe.contentWindow.document, 'mouseup', function (e){}) On Tue, 24 Jun 2008 16:52:28 +0400, AlannY [EMAIL PROTECTED] wrote: Is it possible to observe events in iframe? var iframe = new Element('iframe'); iframe.observe('mouseup', function (e) { ... }); // Not works ;-( I found that in FF, I can iframe.contentWindow.document.addEventListener('mouseup', function (e) {...}, true); // Works But, how to do it with Prototype? tnx -- arty ( http://arty.name ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: writeAttribute and IE7
This is not a discussion suitable for prototype core. But you can do something like the following for IE: var new_input = new Element('input', {'type':'password', 'name': field.getAttribute('name')}); old_field.parentNode.replaceChild(new_input,old_field); On Tue, Jun 24, 2008 at 2:42 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Alright, but the way trying to set this Element over new Element() also doesn't work. IE7 won´t do it. On Jun 23, 1:44 pm, artemy tregoubenko [EMAIL PROTECTED] wrote: Afaik, IE won't let you change type of an input after input is created. You need to create input with correct type. This can be done like this: var a = new Element('input', {type: 'password'}) On Mon, 23 Jun 2008 14:28:55 +0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So, I have a problem while using writeAttribute for changing the type of an input field. Here is my code: $(id).writeAttribute({type: 'password'}); or $(id).writeAttribute('type', 'password'); Works fine with FF but IE7 tells that this command won´t be supported. Does anyone knows something about it? -- arty (http://arty.name) -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Unexpected/unwanted porn here
Receiving unexpected porn ads through this mailing list :-( Owner, thanks for removing the sender adress ([EMAIL PROTECTED]) from this group. Original Message Received: by 10.106.193.17 with SMTP id q17gr2758prf.0; Tue, 24 Jun 2008 15:13:57 -0700 (PDT) X-Sender: [EMAIL PROTECTED] Received: by 10.100.153.6 with SMTP id a6mr177245ane.0.1214345637102; Tue, 24 Jun 2008 15:13:57 -0700 (PDT) Date: Tue, 24 Jun 2008 15:13:56 -0700 (PDT) X-IP: 80.93.116.194 Message-ID: [EMAIL PROTECTED] Subject:[Prototype-core] Escort guide west michigan From: lasvegas [EMAIL PROTECTED] To: Prototype: Core prototype-core@googlegroups.com Reply-To: prototype-core@googlegroups.com Sender: prototype-core@googlegroups.com X-Google-Loop: groups Mailing-List: list prototype-core@googlegroups.com; contact [EMAIL PROTECTED] List-Id:prototype-core.googlegroups.com List-Post: mailto:prototype-core@googlegroups.com List-Help: mailto:[EMAIL PROTECTED] List-Unsubscribe: http://googlegroups.com/group/prototype-core/subscribe, mailto:[EMAIL PROTECTED] X-BeenThere:prototype-core@googlegroups.com Hot porn movies watch cool!!! There is free video. ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---