This is a migrated thread and some comments may be shown as answers.

Embedding a page content from an url

2 Answers 74 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guizmo
Top achievements
Rank 1
Guizmo asked on 27 Oct 2013, 10:28 PM
If iframe component is not adviced in mobile apps, what can we use to embed the page content of a web site ?

Context : The purpose would be to display the page content into an accordion or a collapsible block. The page content change when user clicks on another url proposed by a list.

2 Answers, 1 is accepted

Sort by
0
Stewart
Top achievements
Rank 1
answered on 30 Oct 2013, 05:37 PM
Each segment of the accordion will have a unique div id, e.g.

<div id="div1">&nbsp;</div>
<div id="div2">&nbsp;</div>
etc...

In your JavaScript use the following to put content into that div:

$("#resultBlock").html(mycontent);

Assuming that var mycontent has been populated by a Ajax call from the remote data source.

Hope this help!

Stewart

0
Guizmo
Top achievements
Rank 1
answered on 30 Oct 2013, 06:14 PM
Thanks a lot Stewart
Tags
General Discussion
Asked by
Guizmo
Top achievements
Rank 1
Answers by
Stewart
Top achievements
Rank 1
Guizmo
Top achievements
Rank 1
Share this question
or