PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Calling browser procedures
Calling browser procedures
Started by rafadev, Aug., 21 2014 1:05 PM - 5 replies
Registered member
49 messages
Posted on August, 21 2014 - 1:05 PM
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?
Registered member
39 messages
Posted on August, 21 2014 - 4:22 PM
What are you trying to acomplish ?

--
Diego Sanchez
>Tecnoinformática S.A.
Registered member
49 messages
Posted on August, 21 2014 - 4:56 PM
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?
Posted on August, 21 2014 - 7:36 PM
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 onhttp://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?
Registered member
49 messages
Posted on August, 22 2014 - 10:22 AM
Thanks Fabrice, this isn't a clean method.. but effective :merci:>
Posted on August, 22 2014 - 1:25 PM
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 onhttp://www.fabriceharari.com


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