придумал
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
как програмно проверить или подключена 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
так в других браузерах работает...в том числе 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
все нашел решение ...таблица в ИЕ должна содержать 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);
Почему не работает такой код 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);
Создаю класс
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.
почему не дает результата $('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
есть ли что то похожее на свойство 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
а вот так
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
понедельник, 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
10 matches
Mail list logo