I have this url adress: http://www.ghiddecalatorie.narab.ro/adauga
Is a wordpress site, i have the plugin, i have started the app, and i want to load the form from the page above into my app. how can i do that?
Thank you!
I have this url adress: http://www.ghiddecalatorie.narab.ro/adauga
Is a wordpress site, i have the plugin, i have started the app, and i want to load the form from the page above into my app. how can i do that?
Thank you!
Hi @adrian.serghe,
You can display web views inside a Corona app using this feature:
https://docs.coronalabs.com/api/library/native/newWebView.html
Best regards,
Brent
Hi, thank for the reply, but it does not help, i think i have left out some information, from my sidebar menu i want to tap an option and open the content of the page i mentioned in the above post, how should i do it?
I have tried tu use webview scene but i dont know how to parse the url, here is my code:
local worona = require “worona”
local user_config_style = require “worona-config.style”
local function newScene( scene_name )
local composer = require “composer”
local widget = require “widget”
local scene = composer.newScene( scene_name )
local style = worona.style:get(“scene_list”)
local navbar_style = worona.style:get(“navbar”)
local scrollView, no_posts_text, powered_img
local scene_action = {}
worona.lang:load(“worona-core.includes.scene-menu.lang.scene-menu-lang”, “scene-menu”)
local all_posts_text = worona.lang:get(“all_posts”, “scene-menu”)
local favorite_posts_text = worona.lang:get(“favorite_posts”, “scene-menu”)
local adauga_posts_text = worona.lang:get(“adauga”, “scene-menu”)
local about_text = worona.lang:get(“about”, “scene-menu”)
local menu_items_table = worona:do_filter( “filter_menu_list_items_table”,
{
{
text = all_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-list”, effect = “slideLeft”, time = 200, params = { show_posts = “all” } }
}
},
{
text = favorite_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-list”, effect = “slideLeft”, time = 200, params = { show_posts = “favorites” } }
}
},
{
text = adauga_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-webview”, effect = “slideLeft”, time = 200}
}
},
{
text = about_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-about”, effect = “slideLeft”, time = 200 }
}
}
}
)
local function loadSceneList()
worona.log:info(“scene-menu - loadSceneList()”)
worona:do_action( “go_to_scene”, { scene_type = “scene-list”, effect = “slideLeft”, time = 200 } )
end
local function exitApp()
native.requestExit()
end
Worona is a library produced by someone other than Corona Labs. We don’t know how or what it does. Maybe some community members might have some advice, but your best bet is to ask the creator of Worona to help you debug using their library.
Rob
Hi @adrian.serghe,
You can display web views inside a Corona app using this feature:
https://docs.coronalabs.com/api/library/native/newWebView.html
Best regards,
Brent
Hi, thank for the reply, but it does not help, i think i have left out some information, from my sidebar menu i want to tap an option and open the content of the page i mentioned in the above post, how should i do it?
I have tried tu use webview scene but i dont know how to parse the url, here is my code:
local worona = require “worona”
local user_config_style = require “worona-config.style”
local function newScene( scene_name )
local composer = require “composer”
local widget = require “widget”
local scene = composer.newScene( scene_name )
local style = worona.style:get(“scene_list”)
local navbar_style = worona.style:get(“navbar”)
local scrollView, no_posts_text, powered_img
local scene_action = {}
worona.lang:load(“worona-core.includes.scene-menu.lang.scene-menu-lang”, “scene-menu”)
local all_posts_text = worona.lang:get(“all_posts”, “scene-menu”)
local favorite_posts_text = worona.lang:get(“favorite_posts”, “scene-menu”)
local adauga_posts_text = worona.lang:get(“adauga”, “scene-menu”)
local about_text = worona.lang:get(“about”, “scene-menu”)
local menu_items_table = worona:do_filter( “filter_menu_list_items_table”,
{
{
text = all_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-list”, effect = “slideLeft”, time = 200, params = { show_posts = “all” } }
}
},
{
text = favorite_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-list”, effect = “slideLeft”, time = 200, params = { show_posts = “favorites” } }
}
},
{
text = adauga_posts_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-webview”, effect = “slideLeft”, time = 200}
}
},
{
text = about_text,
action = {
name = “go_to_scene”,
params = { scene_type = “scene-about”, effect = “slideLeft”, time = 200 }
}
}
}
)
local function loadSceneList()
worona.log:info(“scene-menu - loadSceneList()”)
worona:do_action( “go_to_scene”, { scene_type = “scene-list”, effect = “slideLeft”, time = 200 } )
end
local function exitApp()
native.requestExit()
end
Worona is a library produced by someone other than Corona Labs. We don’t know how or what it does. Maybe some community members might have some advice, but your best bet is to ask the creator of Worona to help you debug using their library.
Rob