webPopup: 2-way communication, and changing the position (and size if possible)

Hi,

sorry if some of these features are already covered but i don’t have a device to test on at the moment and couldn’t see it specifically in the documentation

  1. communication with webPopup: i know a url can be opened with querystring parameters and there is a urlRequest handler for getting information back into Corona but it would be good if information could be passed back and forth easily

eg

[lua]local myWeb

local function listener(event)
if(event==“corona:pageLoaded”) then – from onLoad event in webPopup
myWeb.location = “javascript:doSomething(123)”
end
end

myWeb = native.showWebPopup( 10, 10, 300, 300,
http://www.anscamobile.com”,
{urlRequest=listener} )[/lua]

even better would be something like:
[lua]myWeb.callJS(“myJSFunction”, myParams)[/lua]

  1. changing the position of the webPopup: since the webPopup is outside of the Corona rendering engine, it would be good to be able to move it. eg say I open a webpopup leaving space for a button at the bottom in my actual corona display… let’s call the button “RATE”. when I click the button the native webpopup slides up slightly revealing more of my corona window behind it in order to show my “RATE” interface. really i would want control of x,y, width and height, but most importantly x and y.

[lua]myWeb = native.showWebPopup( 10, 10, 300, 300,
http://www.anscamobile.com”,
{urlRequest=listener} )

myWeb.y = -50[/lua]

if these 2 features were in place it should be possible to implement a kind of very basic browser in order to let the user look through web pages and pass information back to the app?

thanks
J [import]uid: 6645 topic_id: 4518 reply_id: 304518[/import]

i second that - any thoughts on this one?

i need to create a basic browser - so i need a back-button functionality.

i could intercept the urlrequests resulting from the user clicking a link in the webpopup with a listener, and put the URL in a table, but how can i request an URL to be shown in the webpopup from “outside” (=my application), after it has been instantiated?

best,
thomas
[import]uid: 10834 topic_id: 4518 reply_id: 21715[/import]