Internal Webbrowser and/or <articles> to External Site

15 views
Skip to first unread message

phreaqo

unread,
Dec 30, 2014, 2:22:49 AM12/30/14
to chocolat...@googlegroups.com

I am creating an iOS app with Chui. Is there anyway to create a page ("article") where its contents are that of an external page (like yahoo.com) but the page remains internal to my app and does not redirect to safari?

For example, in the facebook app, if a user clicks a link to buzzfeed.com, a page that is internal to the facebook app displays the buzzfeed site, the facebook app never moves to the background and the user can easily navigate to the facebook page that originally displayed the buzzfeed link.

phreaqo

unread,
Jan 2, 2015, 10:58:24 PM1/2/15
to chocolat...@googlegroups.com
I figured it out: just use an iFrame between article. This allows for an external page's contents to be displayed in the Chui layout. Below is an example:

<article  class='next'>   
     <iframe src="http://www.yahoo.com"></iframe>
</article>

Robert Biggs

unread,
Mar 6, 2015, 1:21:59 PM3/6/15
to chocolat...@googlegroups.com
Yes, that will work. However I'd put it inside a section tag inside the article tag so that you get the default scrolling that ChUI provides:
<article class='next'>
   <section>
      <iframe src="http://www.yahoo.com"></iframe>
   </section>
</article>

Another thing you could do, if the site permits, is to scrape it and just output the contents of the page that you want into the section tag of a ChUI article.

--
You received this message because you are subscribed to the Google Groups "ChocolateChip-UI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chocolatechip-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages