Groups | Search | Server Info | Login | Register
Groups > de.comp.lang.javascript > #5443
| From | Jan Novak <repcom@gmail.com> |
|---|---|
| Newsgroups | de.comp.lang.javascript |
| Subject | Re: Zugruff auf Variable innerhalb document.ready function ... |
| Date | 2023-06-23 06:46 +0200 |
| Organization | MB-NET.NET for Open-News-Network e.V. |
| Message-ID | <u7383s$1d7i4$1@gwaiyur.mb-net.net> (permalink) |
| References | <u71d0v$1nd7q$1@news.nnpt4.net> <u7246s.17s.1@stefan.msgid.phost.de> |
Am 22.06.23 um 18:34 schrieb Stefan Reuther:
> Am 22.06.2023 um 13:58 schrieb Jan Novak:
>> class Test {
>> var o5Session=getSession();
>> constructor() {
>> $(document).ready( function () {
>> $("#info").text(this.o5Session.user.MAIL_ACCOUNT.user);
>> });
>> }
>> }
>
> var me = this;
> $(document).ready( function () {
> $("#info").text(me.o5Session.user.MAIL_ACCOUNT.user);
> });
Ich habe mir im Netz einen Wolf gesucht ... und dann gehts so einfach.
Danke!
Jan
Back to de.comp.lang.javascript | Previous | Next — Previous in thread | Find similar
Zugruff auf Variable innerhalb document.ready function ... Jan Novak <repcom@gmail.com> - 2023-06-22 13:58 +0200
Re: Zugruff auf Variable innerhalb document.ready function ... Stefan Reuther <stefan.news@arcor.de> - 2023-06-22 18:34 +0200
Re: Zugruff auf Variable innerhalb document.ready function ... Jan Novak <repcom@gmail.com> - 2023-06-23 06:46 +0200
csiph-web