Re: [OFF-TOPIC] Javascript
| From: | Cecilio | Date: | Thu, 25 Jan 2001 23:05:05 +0000 |
| Subject: | Re: [OFF-TOPIC] Javascript | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-6227@lists.php.net to get a copy of this message | ||
Gracias Josevi por tu respuesta.
En la biblia de js ya he mirado, pero no veo nada. De todas formas, creo que
con lo que me envias, ya me apaño (sólo necesito un poco de tiempo).
Esto lo quiero pq estoy imlementando unas páginas de estadísticas, y
precisamente quiero eso, saber de dónde proceden los visitantes a la página
(y ésto creo que en PHP no se puede hacer). También se podría hacer con el
'history' de js, pero a mi gusto, queda mejor con el 'referrer' (soy un poco
caprichoso :-).
Saludos.
----- Original Message -----
From: "Jose OLIVEIRA" <Jose.Oliveira@steria.com>
To: <lista@phpes.com>
Sent: Thursday, January 25, 2001 1:45 PM
Subject: Re: [PHP-ES] [OFF-TOPIC] Javascript
> > ¿Alguien me puede decir una lista javascript buena en español (o en su
> > defecto, en inglés)?
> >
> a ver si alguien te contesta, seria muy interesante, yo no lo se... :-)
>
> yo he encontrado cosas interesante alguna vez en:
> http://tech.irt.org/articles/script.htm
> http://www.javascript-page.com/
> http://www.webreference.com/js/
>
> > Quiero preguntar (a lo mejor alguien lo sabe), sobre la función js
> > 'document.referrer', ya que no encuentro info por ahi.
> >
> > Tengo un script que actua asi:
> >
> > document.write('<IMG
> > SRC="http://estadisticas.ii/cuenta?id=yomismo&ref='
+
> > escape(document.referrer) + '>');
> >
> para ese tipo de cosas echale un vistazo a la biblia de
javascript-netscape:
>
> http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm
>
> ----------
8< ---------------------------------------------------------------
> referrer
> Specifies the URL of the calling document when a user clicks a link.
> Property of document
>
> Read-only
>
> Implemented in Navigator 2.0
>
> Security
> Navigator 3.0: This property is tainted by default. For information on
data tainting, see "JavaScript Security".
>
> Description
> When a user navigates to a destination document by clicking a Link object
on a source document, the referrer property contains the
> URL of the source document.
> referrer is empty if the user typed a URL in the Location box, or used
some other means to get to the current URL. referrer is also
> empty if the server does not provide environment variable information.
>
>
> Examples
> In the following example, the getReferrer function is called from the
destination document. It returns the URL of the source
> document.
>
> function getReferrer() { return document.referrer}
> ----------
8< ---------------------------------------------------------------
>
>
> saludos,
> josevi
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>