PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Browser YesNo
Browser YesNo
Iniciado por Zach Allen, 14,abr. 2014 20:45 - No hay respuesta
Publicado el 14,abril 2014 - 20:45
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?