Alberto meinte:
Still: No classes. Douglas Crockford will tell you about the differences
between classes and prototypal inheritance.
I suppose because of the errors in the code. Pasting it into JSEclipse
gives me:
"missing formal parameter" and "identifier is a reserved word"
Guess what? "class" is a reserved word - at least for IE.
Entering:
javascript:var class="42";aler t(class); into the adress field of IE gives me
"Row 1 character 5 identifier expected ..."
That was easy, wasn't it?
>
Well, not this kind of help of course. As I posted, I was googling,
which also implies looking for info in groups, as this one. I usually
don't need to post in groups asking about this kind of stuff, but
look! Today I had to.
With this attitude, the "problem" and your way to approach it, you sound
like a script kiddie.
You're welcome.
....oh well, you hardly ever use usenet.
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
On 29 abr, 14:54, Gregor Kofler <use...@gregork ofler.atwrote:
>
FALSE, extending the prototype in JS is usually done to simulate OO
behavior. Not real classes, but really useful ones.
>Alberto meinte:
>>
>Classes in JS? No such thing...
>>
>>Hi,
>>I've implemented a customized autocompleter using prototypes and it
>>actually works like a charm in Firefox, but in IE 6/7 it just doesn't
>>work because that infernal thing says that 'Autocomp' (the class i
>>created for the autocompleter) is 'not defined'.
>>It's kind of weird because I tried to show an alert before of the
>>class definition but it is not shown even though the error is thrown
>>at the instantiation of the autocompleter.
>>I've implemented a customized autocompleter using prototypes and it
>>actually works like a charm in Firefox, but in IE 6/7 it just doesn't
>>work because that infernal thing says that 'Autocomp' (the class i
>>created for the autocompleter) is 'not defined'.
>>It's kind of weird because I tried to show an alert before of the
>>class definition but it is not shown even though the error is thrown
>>at the instantiation of the autocompleter.
FALSE, extending the prototype in JS is usually done to simulate OO
behavior. Not real classes, but really useful ones.
between classes and prototypal inheritance.
The confusing thing here is that IE seems to ignore the whole
definition <scriptblock.
definition <scriptblock.
gives me:
"missing formal parameter" and "identifier is a reserved word"
Guess what? "class" is a reserved word - at least for IE.
Entering:
javascript:var class="42";aler t(class); into the adress field of IE gives me
"Row 1 character 5 identifier expected ..."
That was easy, wasn't it?
>Seriously: What kind of help do you expect with such a problem
>description? Using some library (one which is regularly scrutinized in
>this NG) and posting no code whatsoever. Still, most likely the error
>occurs somewhere *before* your instantiation of your autocompleter.
>description? Using some library (one which is regularly scrutinized in
>this NG) and posting no code whatsoever. Still, most likely the error
>occurs somewhere *before* your instantiation of your autocompleter.
Well, not this kind of help of course. As I posted, I was googling,
which also implies looking for info in groups, as this one. I usually
don't need to post in groups asking about this kind of stuff, but
look! Today I had to.
like a script kiddie.
Thanks anyway for posting.
>--http://photo.gregorkof ler.at::: Landschafts- und Reisefotografie http://web.gregorkofle r.com ::: meine JS-Spielwiesehttp://www.image2d.com ::: Bildagentur für den alpinen Raum
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Comment