Embedding a page content from an url

3 posts, 0 answers
  1. Guizmo
    Guizmo avatar
    16 posts
    Member since:
    Oct 2013

    Posted 27 Oct 2013 Link to this post

    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. Stewart
    Stewart avatar
    37 posts
    Member since:
    Oct 2013

    Posted 30 Oct 2013 Link to this post

    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

  3. Guizmo
    Guizmo avatar
    16 posts
    Member since:
    Oct 2013

    Posted 30 Oct 2013 Link to this post

    Thanks a lot Stewart
Back to Top