Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.javascript > #7982

Re: oggetto.nomeFunzione("stringa").operaSullaFunzione()

X-Received by 10.98.79.143 with SMTP id f15mr13158420pfj.6.1453661153476; Sun, 24 Jan 2016 10:45:53 -0800 (PST)
X-Received by 10.50.30.201 with SMTP id u9mr331939igh.4.1453661153443; Sun, 24 Jan 2016 10:45:53 -0800 (PST)
Path csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!h5no8776598igh.0!news-out.google.com!kr2ni8028igb.0!nntp.google.com!o2no5777376iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups it.comp.lang.javascript
Date Sun, 24 Jan 2016 10:45:53 -0800 (PST)
In-Reply-To <dgka5vFb88lU3@mid.individual.net>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2.230.73.160; posting-account=cq4grQoAAAAyQd4GSKCm6SON0ktlHosm
NNTP-Posting-Host 2.230.73.160
References <12069110-6044-4930-9e22-4304304ea799@googlegroups.com> <dgjb1pF5cgoU1@mid.individual.net> <3855b4c6-80be-4975-a9a2-e38e2fae4cc5@googlegroups.com> <dgk25sFb88lU1@mid.individual.net> <752d8b83-5456-41af-b8ed-4fd7043cd51b@googlegroups.com> <dgk4haFb88lU2@mid.individual.net> <fd65564f-14a2-4638-9727-d09f149e5c89@googlegroups.com> <dgka5vFb88lU3@mid.individual.net>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <64620880-75cb-4a43-bb17-82a05aed76f1@googlegroups.com> (permalink)
Subject Re: oggetto.nomeFunzione("stringa").operaSullaFunzione()
From albaserver@gmail.com
Injection-Date Sun, 24 Jan 2016 18:45:53 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com it.comp.lang.javascript:7982

Show key headers only | View raw


Il giorno domenica 24 gennaio 2016 16:50:25 UTC+1, Alessandro Pellizzari ha scritto:
> Non mi ricordo mai cosa va qui. Forse window al posto di document.
> In pratica serve a dire "se l'utente non ha usato new".

Ah vero, ovvio è window. Inizio a capirci qualcosa. Il problema è che ora, restituendo un oggetto, quando faccio

document.write(mioOggetto.stringa("bla bla").operaSullaStringa());

Ottengo ovviamente:

[object Object]

Proprio perché non restituisce più una stringa ma un oggetto a cui posso, come detto anche da 4ndre4, concatenare altre funzioni operaSullaString() e simili.

E' tutto corretto? Se voglio stampare a video qualcosa devo per forza scordarmi di poter concatenare funzioni?

Grazie ad entrambi.

Back to it.comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

oggetto.nomeFunzione("stringa").operaSullaFunzione() alcaseltzer <albaserver@gmail.com> - 2016-01-23 13:17 -0800
  Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() Alessandro Pellizzari <shuriken@amiran.it> - 2016-01-24 06:59 +0000
    Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 02:06 -0800
      Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 02:26 -0800
      Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() Alessandro Pellizzari <shuriken@amiran.it> - 2016-01-24 13:33 +0000
        Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 05:48 -0800
          Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() Alessandro Pellizzari <shuriken@amiran.it> - 2016-01-24 14:14 +0000
            Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 06:28 -0800
              Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() 4ndre4 <4ndre4@4ndre4.com.invalid> - 2016-01-24 14:52 +0000
              Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() Alessandro Pellizzari <shuriken@amiran.it> - 2016-01-24 15:50 +0000
                Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 10:45 -0800
                Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() 4ndre4 <4ndre4@4ndre4.com.invalid> - 2016-01-24 19:08 +0000
                Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() albaserver@gmail.com - 2016-01-24 12:33 -0800
  Re: oggetto.nomeFunzione("stringa").operaSullaFunzione() 4ndre4 <4ndre4@4ndre4.com.invalid> - 2016-01-24 13:56 +0000

csiph-web