PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Calling browser procedures
Calling browser procedures
Iniciado por rafadev, 21,ago. 2014 13:05 - 5 respuestas
Miembro registrado
49 mensajes
Publicado el 21,agosto 2014 - 13:05
Hi everybody

We can call a browser code by the function ExecuteProcess() from the server code.

But there is another way for do that without this function?
Miembro registrado
39 mensajes
Publicado el 21,agosto 2014 - 16:22
What are you trying to acomplish ?

--
Diego Sanchez
Tecnoinformática S.A.
Miembro registrado
49 mensajes
Publicado el 21,agosto 2014 - 16:56
I want to call a BROWSER procedure FROM the SERVER code. If it was the opposite, I will do that with AjaxExecute(). Do you understand me?
Publicado el 21,agosto 2014 - 19:36
Hi

This is not directly possible.

In order to achieve something like that, you need:

---on the BROWSER SIDE----
- a timer on the browser side
- the browser procedure called by the timer checks the content of a
hidden field
- based on the content, the timer will call this procedure or that
procedure using executeprocess (in browser code)

---on the SERVER SIDE-----
- any code with AJAX checked can set a value in the hidden field
- the automatic ajax system will send the value to the browser side
where the timer called procedure will find it and work accordingly

Best regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXShowroom.com is available: Show your projects!
More information on http://www.fabriceharari.com

On 8/21/2014 8:56 AM, rafadev wrote:
I want to call a BROWSER procedure FROM the SERVER code. If it was the
opposite, I will do that with AjaxExecute(). Do you understand me?
Miembro registrado
49 mensajes
Publicado el 22,agosto 2014 - 10:22
Thanks Fabrice, this isn't a clean method.. but effective :merci:
Publicado el 22,agosto 2014 - 13:25
Sorry about that, but I'm not a cleaning lady, so I don't care :-)

And because on the web we are in fact working with two separate
programs, one on the browser, and the other on the server, it's pretty
much always this kind of technique that is used. Ajax is basically doing
the same thing, but at the browser/system level

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXShowroom.com is available: Show your projects!
More information on http://www.fabriceharari.com


On 8/22/2014 2:22 AM, rafadev wrote:
> Thanks Fabrice, this isn't a clean method.. but effective :merci: