| |
| Publicado el 20,julio 2016 - 18:16 |
Hi All
WB21 - Classic site with Ajax
I have a button which executes some server side code and then I want it to execute a URL somewhere else. I don't need anything to be returned from the URL called and there is no user display for it. It is just a script I want to run which is in a different language. I will pass it some parameters and then it must just do whatever it does. Is this possible? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,julio 2016 - 18:43 |
Hi JP
of course it's possible...
httprequest is your friend
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,julio 2016 - 09:07 |
Hi Fabrice
Yes, I knew it even - was too code-blind to think straight My question is this though - will this function wait for a response from the URL called or will it continue with code execution immediately? I ask because I want to make the call and ignore any reply.
In any case, I have thought of a simpler solution in the meantime but I am curious about the above. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,julio 2016 - 14:27 |
Yep, it will wait... I do not think that there is any function calling a URL and NOT waiting for the answer (how would you know if your url is even correct?).
But if you found a way, I'm curious 
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,julio 2016 - 16:13 |
Fabrice,
Sorry, I don't have a solution to calling a URL but not have to wait for the reply I meant I have thought of another way of doing what I need to do. Thanks for the feedback! |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,julio 2016 - 20:13 |
I just had an idea, if it's really important:
- you create a small windev program - it receives the URL in the command line - it does the httprequest - you call it from your webdev code without waiting for its end
and hop, it's done |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,julio 2016 - 21:01 |
Fabrice,
Yes, that is basically what I did. The called program does a few other things as well. |
| |
| |
| | | |
|
| | |