🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Ajax i PHP

#39502
From: IT-Manager
Date: Wed, 19 Apr 2006 08:05
31 lines
1648 bytes
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);
Technical Details
Message-ID: <e24r13$4e5$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "IT-Manager" <test@owiwo.com>
Newsgroups: pl.comp.lang.javascript
Subject: Ajax i PHP
Date: Wed, 19 Apr 2006 10:05:49 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 33
Message-ID: <e24r13$4e5$1@inews.gazeta.pl>
NNTP-Posting-Host: chello087206222248.chello.pl
X-Trace: inews.gazeta.pl 1145433955 4549 87.206.222.248 (19 Apr 2006 08:05:55 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 19 Apr 2006 08:05:55 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.3790.2663
X-User: damian.puchalski
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit