Adding inApp browser inside Div

I work in HTML5 PhoneGap application. I want to embed a website in my application. For this we can use the InApp / ChildBrowser browser. But usually it loads like another window. I want to add InApp Browser/ChildBrowser

inside a Div element

like the above image;

enter image description here

Here the header and footer should be visible and that are part of the application. Inside the Dive element, I want to open the site. Is there any solution?

Or is it possible to use an iframe for this?

I want to develop an application for iPad

.

+3


source to share


1 answer


As far as I know, it is not possible to use inAppBrowser with an attribute inline

.

The last time I did it I did it the way you did it -> with an iFrame. You can use iframe like this:

<iframe src="../../../index.htm" width="90%" height="400" name="SELFHTML_in_a_box">
  <p>Sorry, but your browser can't display iframes <a href="../../../index.htm">SELFHTML</a></p>
</iframe>

      



But I would give up the tag <p>

. So just use an iFrame.

So I hope this helped you. If not, let me know. Then I'll go into more detail on this!

+2


source







All Articles