PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Browser YesNo
Browser YesNo
Started by Zach Allen, Apr., 14 2014 8:45 PM - No answer
Posted on April, 14 2014 - 8:45 PM
Hi all,
I'm trying to get YesNo to work in browser code so that I can run my server code in AJAX.
I don't want to use Cells or Popups because I have multiple buttons that I need to ask Yes No with different text and different server code. ie (Save), (Save and Close) and (Save and Next)

These are some of my attempts so far:
Some of them may not make sense but I'm just trying to get it to popup right now.
My goal is to have the YesNo on the browser code of a button.
When Yes is pressed, the server code of the button will run.
When No is pressed, the button will not run the server code and return.

YesNo(0,"",ReturnToCapture(),"Are You Sure?")

YesNo(0,"","","Are You Sure?")

YesNo(0,RETURN,RETURN,"Are You Sure?")

YesNo(0,"","RETURN","Are You Sure?")


I've put a trace around each attempt ie:
Trace("Start")
YesNo(0,"",ReturnToCapture(),"Are You Sure?")
Trace("End")


Every single attempt has printed out the first trace("Start") and that is it.
No second trace and no popup.

I've also tried all of these options with the first optional parameter(0) omitted as well.
The example in WebDev for YesNo in WWDialog is only for the server code version.
Has anyone been able to get YesNo to work in the Browser?