🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ajax i PHP

#39503
From: William
Date: Wed, 19 Apr 2006 12:39
40 lines
2114 bytes
Użytkownik "IT-Manager" <test@owiwo.com> napisał w wiadomości
news:e24r13$4e5$1@inews.gazeta.pl...
> Mam strone ktora jest odswiezana przez advAJAX.
> Przy przeladowaniu sprwdza czy nie ma bledow.
> I jesli blad jest powinna wykonac:
>
> <script type="text/javascript">
>    alert('aaa');
>  </script>
>
> a nic sie nie dzieje. Dlaczego?
>
> Kod:
>  $stop = primary(array($p_nome, $p_quantita, $p_prezzo, $p_vat));
>   if($stop == '1') {
>       $code = '002';
>       print "<script>";
>       print "aaa();";
>       print "</script>";
>       require_once(MSG);
>   } else {
>       array_push($_SESSION['arrp_nome'], $p_nome);
>       array_push($_SESSION['arrp_quantita'], $p_quantita);
>       array_push($_SESSION['arrp_prezzo'], $p_prezzo);
>       array_push($_SESSION['arrp_vat'], $p_vat);
>
>       unset($p_nome);
>       unset($p_quantita);
>       unset($p_prezzo);
>       unset($p_vat);
>
>   }
>   unset($stop);
>

Jesteś pewien, że to co napisałeś to javascript ? A może chciałeś napisać na
grupę pl.comp.lang.php i ci się coś pomylło ? Ewentualnie chciałeś zapytać o
problemy z cacheowaniem dokumentów pobieranaych przez HTTPXMLRequest oraz
określaniem ich content-type na pl.comp.server-side ?
Technical Details
Message-ID: <e25b2h$n8o$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <e24r13$4e5$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "William" <nie@ma.mnie.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Ajax i PHP
Date: Wed, 19 Apr 2006 14:39:43 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 42
Message-ID: <e25b2h$n8o$1@inews.gazeta.pl>
References: <e24r13$4e5$1@inews.gazeta.pl>
NNTP-Posting-Host: natc.coig.katowice.pl
X-Trace: inews.gazeta.pl 1145450385 23832 195.39.217.130 (19 Apr 2006 12:39:45 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 19 Apr 2006 12:39:45 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-User: news8859
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit