[Proto-Scripty] Re: проверить подключена ли библиотека Prototype

2013-06-02 Thread Александр Павленко
придумал function assay_prototype() {if(window.Prototype Prototype.Version) console.log(Prototype.Version) else console.log('no') } window.onload=function() {assay_prototype() } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] проверить подключена ли библиотека Prototype

2013-06-01 Thread Александр Павленко
как програмно проверить или подключена Prototype -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Proto-Scripty] Re: IE7

2013-05-12 Thread Александр Павленко
так в других браузерах работает...в том числе IE8...IE7 не работает ...не пойму чему... Jason те ошибки ,что Вы указали проблему не решают -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and

[Proto-Scripty] Re: IE7

2013-05-12 Thread Александр Павленко
все нашел решение ...таблица в ИЕ должна содержать tbody в обязательном порядке. var cont=$('div'); var t=new Element('table',{'width':'200px'}); var tb=new Element('tbody') var tr=new Element('tr'); var td=new Element('td').update('hello'); cont.insert(t); t.insert(tb) tb.insert(tr);

[Proto-Scripty] IE7

2013-05-11 Thread Александр Павленко
Почему не работает такой код IE7 div id='div'/div script src=javascript/ie7.js var cont=$('div'); var t=new Element('table',{'width':'200px'});Element.extend(t); cont.insert(t); var tr=new Element('tr');Element.extend(t); var td=new Element('td').update('hello');Element.extend(t); t.insert(tr);

[Proto-Scripty] Добавить метод

2013-03-14 Thread Александр Павленко
Создаю класс var All=Class.create() Наследник var My= Class.create(All,) вопрос как через My добавить метод родителю All (метод определяется в My а исполняется в All ) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group.

[Proto-Scripty] не работает такая конструкция $('id').$$(tag)

2013-01-26 Thread Александр Павленко
почему не дает результата $('id').$$(tag)я понимаю что можно $('id').getElementsByTagName('tag')...но хочется чисто на prototype -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] innerHTML

2013-01-26 Thread Александр Павленко
есть ли что то похожее на свойство innerHTML в prototypeinsert() только добавляет, а старое содержимое элемента не удаляет -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

Re: [Proto-Scripty] как создавать в классе правильно частные и публичные методы и свойства

2013-01-07 Thread Александр Павленко
а вот так var myClass= Class.create( { initialize:function(str) { this.str=str ; this.msg=function() {alert (privat+this.str);} } , public:function() {alert (public+this.str)} } ) метод msg приватный или нет -- You

Re: [Proto-Scripty] как создавать в классе правильно частные и публичные методы и свойства

2013-01-07 Thread Александр Павленко
понедельник, 7 января 2013 г., 20:59:28 UTC+2 пользователь mikhail написал: No, this method `msg` is public. But if you create var myClass= Class.create( { initialize:function(str) { this.str=str ; msg=function() {alert