View Full Version : openURL second parameter optional?
mattekure
May 3rd, 2022, 19:50
In the new openURL function, the documentation indicates that the second parameter for the callback function is optional. But if I try it without a callback function defined, I get an error of invalid parameter 2.
Moon Wizard
May 3rd, 2022, 20:01
Can you try "nil" instead?
JPG
mattekure
May 3rd, 2022, 20:03
Can you try "nil" instead?
JPG
Yeah, that works.
So Interface.openURL("https://someurl.com", nil) works
I tried these which did not work
Interface.openURL("https://someurl.com")
Interface.openURL("https://someurl.com", "")
thanks
Moon Wizard
May 3rd, 2022, 20:06
I'll look at updating the code to check for the parameter existence first, but you can use nil for now.
Regards,
JPG
Moon Wizard
May 6th, 2022, 19:09
Fixed in beta release today.
Cheers,
JPG
travin
March 26th, 2023, 19:10
Sorry to necro this thread, but when processing the callback, all I get is the URL and not the generated response. Did I miss something or is the generated response stored somewhere else?
Moon Wizard
March 26th, 2023, 23:42
The callback will receive two parameters (sURL, sResponse).
Regards,
JPG
travin
March 27th, 2023, 00:34
The callback will receive two parameters (sURL, sResponse).
Regards,
JPG
Thank you!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.