"browserLoadRequest" for Android

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

"browserLoadRequest" for Android

Post by genie » Wed Oct 02, 2013 3:08 am

According to the dictionary, browserLoadRequest is only for iOS. I tried to look for something similar I could use for Android, but I guess there is none.

I have a card with a browser in it. The browser displays a map (an image) and pins. Pins have "href" so when tapped, the browser loads the particular URL. Depending on what the URL contains, the app would then proceed to another card.

Code: Select all

on browserLoadRequest pUrl, pReason
   set the itemDel to "/"
   put the last item of pUrl into theID
   if the first char of theID is not "G" then
      go cd "one"
   else 
      go cd "two"
   end if
end browserLoadRequest
Problem is, I can't have this working for Android because browserLoadRequest handler only works for iOS.

browserFinishedLoading however, works for both iOS and Android, but I do not want to browser to go ahead and continue loading the URL because it isn't really a valid URL. The content on the href just acts like a parameter or some ID for me to know which of the pins is tapped. If I would allow it to load, I would have "webpage not available" when I get back to that card with browser.

Would really help if this becomes available for Android too...

JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Re: "browserLoadRequest" for Android

Post by JosepM » Sun May 03, 2015 8:42 pm

I have the same problem. Any solution?

Salut,
Josep M

Post Reply