<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Some URLs do not render in in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009107#M33323</link>
    <description>&lt;P style="font-size: 12px;"&gt;Some URLs do not render in iFrame due to security issues. You best bet is the InAppBrowser plugin. Here is the link to its documentation:&amp;nbsp;&lt;A href="http://docs.phonegap.com/en/edge/cordova_inappbrowser_inappbrowser.md.html"&gt;http://docs.phonegap.com/en/edge/cordova_inappbrowser_inappbrowser.md.html&lt;/A&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;For example, if you want to display the webpage in the click of a button, this is all you have to do:&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; $(document).on("click", ".uib_w_3", function(evt)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* your code goes here */&amp;nbsp;&lt;BR /&gt;
	&lt;SPAN style="font-weight: 700;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var ref = window.open('&lt;A href="https://software.intel.com/en-us/xdk/articles/android-splash-screens-using-nine-patch-png" style="font-weight: normal;"&gt;https://software.intel.com/en-us/xdk/articles/android-splash-screens-usi...&lt;/A&gt;', '_blank', 'location=yes');&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; });&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2015 19:53:36 GMT</pubDate>
    <dc:creator>Anusha_M_Intel1</dc:creator>
    <dc:date>2015-05-26T19:53:36Z</dc:date>
    <item>
      <title>Open a pdf in a modal</title>
      <link>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009105#M33321</link>
      <description>&lt;P&gt;I am trying to open a pdf document from a html link in intel xdk.&lt;/P&gt;

&lt;P&gt;I am trying to do this by opening the pdf in a modal with an iframe element in it. Unfortunately that isn't working the phones.&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;            &amp;lt;div class="modal outer-element uib_w_20" data-uib="twitter%20bootstrap/modal" data-ver="1" data-backdrop="true" id="popShowHref"&amp;gt;
                &amp;lt;div class="modal-dialog"&amp;gt;
                    &amp;lt;div class="modal-content"&amp;gt;
                        &amp;lt;div class="modal-header"&amp;gt;
                            &amp;lt;button class="close" data-dismiss="modal"&amp;gt;x&amp;lt;/button&amp;gt;
                            &amp;lt;h4 class="modal-title"&amp;gt;
                                &amp;lt;span&amp;gt;&amp;lt;i class="glyphicon glyphicon-cog"&amp;gt;&amp;lt;/i&amp;gt; Notice&amp;lt;/span&amp;gt;
                            &amp;lt;/h4&amp;gt;
                        &amp;lt;/div&amp;gt;

                        &amp;lt;div class="modal-body"&amp;gt;
                            &amp;lt;div class="col uib_col_12 single-col" data-uib="layout/col" data-ver="0"&amp;gt;
                                &amp;lt;div class="widget-container content-area vertical-col"&amp;gt;
                                    &amp;lt;form&amp;gt;
                                        &amp;lt;iframe height="200" width="200" src="http://www.ccs.neu.edu/home/riccardo/courses/cs6750-fa09/talks/Ellis-elliptic-curve-crypto.pdf"&amp;gt;&amp;lt;/iframe&amp;gt;
                                    &amp;lt;/form&amp;gt;
                                    &amp;lt;!--&amp;lt;span class="uib_shim"&amp;gt;&amp;lt;/span&amp;gt;--&amp;gt;
                                &amp;lt;/div&amp;gt;
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;

                        &amp;lt;div class="modal-footer"&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;&lt;/PRE&gt;

&lt;P&gt;The above code isn't working. When I am opening this in XDK emulator, its asking me to download the pdf, but when I am opening this in phone, I do not get any option and the iframe remains blank!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Any solution to this problem ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 09:07:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009105#M33321</guid>
      <dc:creator>Priyabrata_C_</dc:creator>
      <dc:date>2015-05-20T09:07:51Z</dc:date>
    </item>
    <item>
      <title>You should use the In App</title>
      <link>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009106#M33322</link>
      <description>&lt;P&gt;You should use the In App Browser plugin provided in the XDK instead of iframe.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 14:08:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009106#M33322</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-05-20T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Some URLs do not render in</title>
      <link>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009107#M33323</link>
      <description>&lt;P style="font-size: 12px;"&gt;Some URLs do not render in iFrame due to security issues. You best bet is the InAppBrowser plugin. Here is the link to its documentation:&amp;nbsp;&lt;A href="http://docs.phonegap.com/en/edge/cordova_inappbrowser_inappbrowser.md.html"&gt;http://docs.phonegap.com/en/edge/cordova_inappbrowser_inappbrowser.md.html&lt;/A&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;For example, if you want to display the webpage in the click of a button, this is all you have to do:&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; $(document).on("click", ".uib_w_3", function(evt)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* your code goes here */&amp;nbsp;&lt;BR /&gt;
	&lt;SPAN style="font-weight: 700;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var ref = window.open('&lt;A href="https://software.intel.com/en-us/xdk/articles/android-splash-screens-using-nine-patch-png" style="font-weight: normal;"&gt;https://software.intel.com/en-us/xdk/articles/android-splash-screens-usi...&lt;/A&gt;', '_blank', 'location=yes');&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; });&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 19:53:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Open-a-pdf-in-a-modal/m-p/1009107#M33323</guid>
      <dc:creator>Anusha_M_Intel1</dc:creator>
      <dc:date>2015-05-26T19:53:36Z</dc:date>
    </item>
  </channel>
</rss>

