This topic is locked

Open External Link In Popup And Auto Close After 10 Seconds

6/24/2013 6:57:39 AM
PHPRunner General questions
A
angelcause author

I am creating a request system and when the User clicks the save button a Popup window should open and an external link will run (which will send an SMS) and after 10 seconds the popup window should auto close.
Please help how will it be done.

C
cgphp 6/24/2013

You don't need a popup to run an external script. You can use for example the "After record added" event.

A
angelcause author 6/24/2013

Please tell the script. What code do I have to write for it to open the link.

C
cgphp 6/24/2013

We need more info about this external link. Are your working with a third party service API?

A
angelcause author 6/24/2013



We need more info about this external link. Are your working with a third party service API?



The link is www.seher.org/SMSSend.php

The file SMSSend.php holds the script to send the SMS

C
cgphp 6/24/2013

You can include the script in the "After record added" event as follows:

include 'http://www.seher.org/SMSSend.php';;