Tableview Widget opening up to a webpopup

Hello all so I have created a table view with info from parsing a XML file. Now I want to be able to click on a row and open a web popup using a link from the file. I have it pulling the link and printing the link but I just cant get the web popup to appear. Hear is my code from my touch event. Any help is very much appreciated. 

[lua]

local function onRowTouch( event )

        local phase = event.phase

        local rowGroup = event.row

        local row = event.row

        local id = row.index

        local idx = id+0

        if “press” == phase then

            print( “Touched row:”, event.target.index )

        end

        

        if phase == “release” then

              – Do some things when row is touched – this works correctly

              print( “Released row:”, event.target.index )

            local function loadnewsWebPage()

                --local espnnews = stories[idx].child[6].value, 1, 250

                local espnnews = stories[idx].child[4].child[3].child[1].value, 1, 250

                print (espnnews)

                native.showWebPopup(10, 30, 320, 320, espnnews, {hasBackground=false} )

                

            end

            local function networkListener( event )

                if( event.isError ) then

                    print( "Network error: ", event.response )

                else

                    print( "Status Code: " … event.status )

                if event.status == 200 then

                    print( “Loading web page …” )

                    loadnewsWebPage()

                else

                    print( “Web page not loaded!” )

                end

            end

        end

        --network.request( espnnews , “GET”, networkListener )

        network.request( “http://www.espn.com”, “GET”, networkListener )

            

            

        end

    end

[/lua]

Is there a reason you’re not using native.newWebView() instead?

I wanted the page to open in the app.

That’s kinda what native.newWebView does.  The one you are using is being deprecated.

Thanks I will give it a try.

Is there a reason you’re not using native.newWebView() instead?

I wanted the page to open in the app.

That’s kinda what native.newWebView does.  The one you are using is being deprecated.

Thanks I will give it a try.