Post by ranilwallace on Apr 9, 2016 22:46:35 GMT 10
i need to load multiple external HTML pages as apps in my webapp. What architecture must i create inorder to create a new window div for a app that was clicked and have an all apps view where you can switch between them. Thanks
Ranil, Lauve Tech
|
|
Post by Nathan Lecompte on Apr 9, 2016 23:54:49 GMT 10
Soooo....basically just using a lot of iFrames, I guess?
|
|
Post by ranilwallace on Apr 10, 2016 12:18:23 GMT 10
No iframes please
Ranil, Lauve Tech
|
|
Post by altair on Apr 11, 2016 4:41:52 GMT 10
You can load the external pages using jQuery...
<script>$("#testLoad").load("http://www.somesite.com/somepage.html");</script> <div id="testLoad"></div> //would this help
Hope this helps....
|
|
Post by altair on Apr 11, 2016 4:43:07 GMT 10
Or you can use PHP....
<?php print file_get_contents("http://foo.com")?>
|
|
Post by altair on Apr 11, 2016 4:44:26 GMT 10
Or you can use the object tag...
<!--[if IE]> <object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="http://www.google.be"> <p>backup content</p> </object> <![endif]-->
<!--[if !IE]> <--> <object type="text/html" data="http://www.flickr.com" style="width:100%; height:100%"> <p>backup content</p> </object> <!--> <![endif]-->
|
|
Post by ranilwallace on Apr 11, 2016 11:37:07 GMT 10
Will look into the jquery solution. is it faster than iframes
Ranil, Lauve Tech
|
|
Post by ranilwallace on Apr 12, 2016 8:57:31 GMT 10
I've decided to use iframes because i realized that firefox os uses iframes.. But thanks for the responses. They will be useful. Also if anyone would like to be apart of the team. pm me
Ranil, Lauve Tech
|
|
Post by Deleted on Apr 18, 2016 6:16:30 GMT 10
Last Edit: Apr 18, 2016 6:17:14 GMT 10 by Deleted
|
|