Welcome! Log In Create A New Profile

Advanced

WEBDEV 23 POPUP

Posted by PETER ZHOU 
PETER ZHOU
WEBDEV 23 POPUP
September 17, 2019 03:20PM
Hi,

In the popup form, is there anyway to disallow the popupclose() command [browser code] until certain condition in the [server code] is meet?

Currently under BROWSER CODE on click of BTN_OK
// Closes the dialog box
PopupClose(POPUP_SCREEN)

//Under SERVER CODE on click of BTN_OK
if EDT_ID <> 1 then
RETURN
end

the moment i click BTN_OK with EDT_ID not equal to 1, it will still close the POPUP SCREEN

Regards,

PETER ZHOU
Re: WEBDEV 23 POPUP
September 23, 2019 10:40PM
PETER


//BROWSER CODE

if EDT_ID <> 1 then
RETURN
else
PopupClose()
end

[infosonline.net]



Edited 1 time(s). Last edit at 09/23/2019 10:43PM by infos.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: