🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #254

Re: eval() i <A HREF>; window.location() ?

#254
From: Tantal
Date: Sun, 06 Jan 2002 12:03
36 lines
2025 bytes
> > replace = "index.php?a=" + a + ";" ;
> > eval(replace) ;
> hmm a co ma byc wynikiem wykonania stringa np"index.php?a=xxx;"
> czy nie chodzi ci przypadkiem o window.location=replace???

nocóż tu objawiło się moje nie do końca zrozumienie jeśli chodzi o funkcję
eval().
wyszło mi że po wywołaniu funkcji tekst "javascript:reLoad(costam)" powinien
zostać zastąpiony przeztego stringa, ktorego
definiuje w replace. Tak nie jest.

Co do windows.location() to rzeczywiscie powinno byc windows.location =
sorry jak pisalem pytanie to mi sie pochrzanilo z windows.open

dzieki za odzew
temat jest nurtujacy, przynajmniej dla mnie wiec pozwolilem sobie zadac
kolej pytanie.



> > 2.
> >
> > Funkcja :
> >
> > function reLoad(a) {
> > var a,nowyAdres ;
> >
> > nowyAdres = "index.php?a=" + a + ";" ;
> > window.location(nowyAdres) ;
> a może j.w
>
>
>
>
>
Technical Details
Message-ID: <a19efv$id4$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <a15aao$cid$1@news.tpi.pl> <a17cjs$jae$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Tantal" <r.hryniewiecki@imagix.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: eval() i <A HREF>; window.location() ?
Date: Sun, 6 Jan 2002 13:03:44 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 38
Message-ID: <a19efv$id4$1@news.tpi.pl>
References: <a15aao$cid$1@news.tpi.pl> <a17cjs$jae$1@news.tpi.pl>
NNTP-Posting-Host: pa215.poznan.cvx.ppp.tpnet.pl
X-Trace: news.tpi.pl 1010318656 18852 213.76.72.215 (6 Jan 2002 12:04:16 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sun, 6 Jan 2002 12:04:16 +0000 (UTC)
X-Notice-1: This post has been postprocessed on the news.tpi.pl server.
X-Notice-2: Subject line has been filtered and leading Odp: string removed.
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-Subject: Odp: eval() i <A HREF>; window.location() ?
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit