About:blank page
Posted: Mon Dec 15, 2014 12:24 pm
Hi all,
I've used this lesson http://lessons.runrev.com/m/4069/l/2283 ... er-control
to connect my app to the internet.
I've tested it on the emulator and 5 different smartphones. all works fine in all of them except for 2 devices: samsung galaxy note, both. where I've the strange, same behavior:
first, in a card I set the url and put it into a global "gUrl" to make a reserch with google search:
then opening another card, create the browser control:
at this point I see all the google search results, and selecting one of them, when testing on the galaxy note, a white page with "about:blank" into the url address is open.
any idea about it?
best
franco
I've used this lesson http://lessons.runrev.com/m/4069/l/2283 ... er-control
to connect my app to the internet.
I've tested it on the emulator and 5 different smartphones. all works fine in all of them except for 2 devices: samsung galaxy note, both. where I've the strange, same behavior:
first, in a card I set the url and put it into a global "gUrl" to make a reserch with google search:
Code: Select all
put empty into gUrl
put the selectedText of fld "fldPiattiAbbinati" into tRicettaDaCercare
replace " " with "+" in tRicettaDaCercare --sostituisce lo spazio tra le parole con il car. +
put "http://www.google.it/search?q=ricette+"& tRicettaDaCercare into gUrl
go to card "cdWeb"
Code: Select all
on preOpenCard
if the environment is not "mobile" then
exit preOpenCard
end if
-- Create our browser control and store the id
mobileControlCreate "browser"
put the result into sBrowserId
-- Native controls start off invisible
mobileControlSet sBrowserId, "visible", "true"
-- Set up a suitable initial url
mobileControlSet sBrowserId, "url", gUrl
-- Make sure everything is the right size
resizeStack
end preOpenCard
any idea about it?
best
franco