Announcement

Collapse
No announcement yet.

[SOLVED] Modal form cannot close after executing code.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Modal form cannot close after executing code.

    Hello,

    I have two form applications and one is linked to other such that it opens in a model of 250x200 frame. The linked form has a PHP button named as OK. What I want to do is to close the modal form after clicking the OK button. I used following PHP code on button click.

    PHP Code:
    sc_mail_send($smtp$email$password$email,  
            {
    EmailAddress}, $subject$message"H"
            
    """"$smtpport$sec[$ssl]);
        
    sc_exit(); 
    Yes, this modal form send test email to the email address in a field and it works but problem is that modal does not close, it displays ScriptCase page in the modal. What is wrong with the code.

    --
    Milind Wakale

  • #2
    Maybe it goes with this solution: http://www.scriptcase.net/forum/show...ll=1#post16397
    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

    Comment


    • #3
      Originally posted by RHS View Post
      echo "<script>window.parent.tb_remove();</script>";
      Thanks you RHS, it is working......

      --
      Milind Wakale

      Comment

      Working...
      X