How to access scripts on a modal card that is stuck / not visible?
Tom Glod
tom at makeshyft.com
Fri Mar 18 10:12:49 EDT 2022
Hey Keith,
I could probably help you with the first part, but I'd have to take a look
myself at the file. Are you able to share it with me?
Feel free to email.
On Fri, Mar 18, 2022 at 6:29 AM Keith Clarke via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Hi folks,
> Experimenting with OAuth, I built a “Login” card containing a Browser
> widget that allows me to access OAuth to log onto an online service. Once
> authorised, the script on the Browser Widget finished with 'go card “Home”’
> where I’m building out some utilities to work with the web service.
>
> The web service’s access token is short-lived, so I thought I’d convert
> the Login card into a pop-up dialogue on the Home card for convenience. So,
> I added a “Login” button to that card to ‘go card “Login” as modal.
> However, now any attempt to go to the Login card results in either the card
> flashing up and disappearing or the stack locking with the modal card
> inaccessible. I seem to have created some kind of loop that is in play in
> run or edit modes.
>
> I’ve not done much with multiple card stacks and never used modes before.
> So, I have two questions:
>
> 1. What’s the syntax needed to open the script of an un-open object via
> the message box, so I can break out of this loop?
> 2. Can anyone please suggest a worked example or lesson of a pop-up web
> service login dialogue, as I’m clearly doing something basic wrong!
>
> Thanks & regards,
> Keith
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list