alert popup box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Furman

    #1

    alert popup box

    I can't find a way to create an alert popup box for debugging, is this
    possible in php? I guess I'm thinking of visual basic where that was so
    easy, in php I normally use *print* for this but it can be hard to find.

    thanks
  • Kimmo Laine

    #2
    Re: alert popup box

    "Paul Furman" <paul-@-edgehill.netwro te in message
    news:mygKh.7272 $Um6.5399@newss vr12.news.prodi gy.net...
    >I can't find a way to create an alert popup box for debugging, is this
    >possible in php? I guess I'm thinking of visual basic where that was so
    >easy, in php I normally use *print* for this but it can be hard to find.

    No, it's not possible. Alertbox's don't exist in php. (Only way to make a
    popup would be echo some javascript which would generate the popup.

    <?php

    $foo = bar;
    echo "<script type='text/javascript'>ale rt('$foo')</script>";

    ?>

    --
    "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
    http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
    spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)


    Comment

    • Steve Belanger

      #3
      Re: alert popup box

      one thing i could suggest is to try a IDE program with an integrated
      debugger. This way you can check content of a variable as you run the script
      on a step by step mode. We are working on a pretty decent one that can also
      debug javascript if need be.

      read more about it here: http://www.jcxsoftware.com/

      Steve.

      "Kimmo Laine" <spam@outolempi .netwrote in message
      news:_2rKh.1742 2$m72.2935@read er1.news.saunal ahti.fi...
      "Paul Furman" <paul-@-edgehill.netwro te in message
      news:mygKh.7272 $Um6.5399@newss vr12.news.prodi gy.net...
      >>I can't find a way to create an alert popup box for debugging, is this
      >>possible in php? I guess I'm thinking of visual basic where that was so
      >>easy, in php I normally use *print* for this but it can be hard to find.
      >
      >
      No, it's not possible. Alertbox's don't exist in php. (Only way to make a
      popup would be echo some javascript which would generate the popup.
      >
      <?php
      >
      $foo = bar;
      echo "<script type='text/javascript'>ale rt('$foo')</script>";
      >
      ?>
      >
      --
      "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
      http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
      spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)
      >

      Comment

      • Paul Furman

        #4
        Re: alert popup box

        Kimmo Laine wrote:
        "Paul Furman" <paul-@-edgehill.netwro te in message
        news:mygKh.7272 $Um6.5399@newss vr12.news.prodi gy.net...
        >
        >>I can't find a way to create an alert popup box for debugging, is this
        >>possible in php? I guess I'm thinking of visual basic where that was so
        >>easy, in php I normally use *print* for this but it can be hard to find.
        >
        >
        >
        No, it's not possible. Alertbox's don't exist in php. (Only way to make a
        popup would be echo some javascript which would generate the popup.
        >
        <?php
        >
        $foo = bar;
        echo "<script type='text/javascript'>ale rt('$foo')</script>";
        >
        ?>
        Great, thanks. I guess because it just isn't an html possibility either
        & php simply produces html... or javascript ;-)

        Comment

        • Paul Furman

          #5
          Re: alert popup box

          Steve Belanger wrote:
          one thing i could suggest is to try a IDE program with an integrated
          debugger. This way you can check content of a variable as you run the script
          on a step by step mode. We are working on a pretty decent one that can also
          debug javascript if need be.
          >
          read more about it here: http://www.jcxsoftware.com/
          Yeah that would be nice, I learned php after a prerequisite course in VB
          & that's handy stuff. I've also used similar with LISP. I'm currently
          using PSpad as my editor & it doesn't offer that AFAIK.

          Comment

          Working...