I added some of the vars you specified at the top. This should work!

-PS


<?php
  $showDate = 'show date ';
  $system_message = array('message' => 'some message');
 
  $message = "<script type=\"text/javascript\">
     function openAlert() {
      Dialog.alert(\"$showDate{$system_message['message']}\",  { 
'windowParameters' : { 'className':\"alphacube\" } } );
    }
  openAlert();
</script>";
 
 print $message;

?>




--------------- Original Message Follows ------------------
From: [EMAIL PROTECTED] (Edward Wang)
Date: 2/27/2007 06:46 PM (Mountain Standard Time)
To: [email protected] (javawin)
Subject: [Javawin] PHP work with Alert Box

How would i intergrate php with the alert box? heres my code:

    function openAlert() {
      Dialog.alert(
        "$showDate$system_message[message]"; ?>",
        { 'windowParameters' : { 'className' : "alphacube" } }
      );
    }
  
?>

It gives me an error


_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to