Article View: pl.comp.lang.javascript
Article #253Re: eval() i <A HREF>; window.location() ?
From: kraju
Date: Sat, 05 Jan 2002 17:18
Date: Sat, 05 Jan 2002 17:18
20 lines
1551 bytes
1551 bytes
> Wymyśliłem dwa sposoby, ktore teoretycznie powinny działać.
> function reLoad(a) {
> var a,replace ;
>
> 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???
> 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:
<a17cjs$jae$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-mailReferences:
<a15aao$cid$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: "kraju" <rogatyr@poczta.onet.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: eval() i <A HREF>; window.location() ? Date: Sat, 5 Jan 2002 18:18:54 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 25 Message-ID: <a17cjs$jae$1@news.tpi.pl> References: <a15aao$cid$1@news.tpi.pl> NNTP-Posting-Host: pd9.poznan.cvx.ppp.tpnet.pl X-Trace: news.tpi.pl 1010251200 19790 213.76.75.9 (5 Jan 2002 17:20:00 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sat, 5 Jan 2002 17:20:00 +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