<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://developers.smarttv-alliance.org/forum/feed.php?f=5&amp;t=141" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2014-06-27T02:25:18-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=5&amp;t=141</id>
<entry>
<author><name><![CDATA[supporter lead_1]]></name></author>
<updated>2014-06-27T02:25:18-07:00</updated>
<published>2014-06-27T02:25:18-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=256#p256</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=256#p256"/>
<title type="html"><![CDATA[How to load local html file?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=256#p256"><![CDATA[
Hi,<br /><br />I think you open your file in offline status (just open html file and load an local html file by ajax). Not only you, but also much others can't do it.<br />To do same thing in offline status, you can use iframe instead of ajax load.<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=5764">supporter lead_1</a> — Fri Jun 27, 2014 2:25 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rjot]]></name></author>
<updated>2014-06-26T01:33:42-07:00</updated>
<published>2014-06-26T01:33:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=251#p251</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=251#p251"/>
<title type="html"><![CDATA[How to load local html file?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=251#p251"><![CDATA[
hi, thanks for ur reply. I'll try with absolute path, but still shows the same errors: \"URL cannot be shown\", i prepare test app with this issue.<br /><dl class="codebox"><dt>Code: </dt><dd><code>&lt;!DOCTYPE html&gt;<br />&lt;html&gt;<br />    &lt;head&gt;<br />        &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"&gt;<br />        &lt;title&gt;Test Load&lt;/title&gt;<br />        &lt;script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.1.1.min.js\"&gt;&lt;/script&gt;<br />        &lt;script type=\"text/javascript\"&gt;    &#91;size=2&#93;&#91;/size&#93;<br />            $(document).ready(function() {<br />                var absoluteLoc = window.location.protocol + '//' + window.location.pathname;<br />                var absolutePath = absoluteLoc.substr(0, absoluteLoc.lastIndexOf(\"/\"));<br />                console.log(absolutePath);<br />                <br />                $('h1').click(function() {                    <br />                    $( \"#dynamicContent\" ).load(\"content.html\");<br />                    <br />                    $( \"#dynamicContent\" ).load( absolutePath + \"/content.html\");<br />                    <br />                    $.get(absolutePath + \"/content.html\", function(response) {<br />                        $('#dynamicContent').html(response);<br />                    });<br />                    <br />                    $( \"#dynamicContent\" ).html( loadPage(absolutePath + \"/content.html\"));<br />                });<br />            });<br />            function loadPage(href) {<br />                var xmlhttp = new XMLHttpRequest();<br />                xmlhttp.open(\"GET\", href, false);<br />                xmlhttp.send();<br />                return xmlhttp.responseText;<br />            }<br />        &lt;/script&gt;<br />    &lt;/head&gt;<br />        &lt;h1&gt;Load content.html&lt;/h1&gt;<br />        &lt;div id=\"dynamicContent\"&gt;&lt;/div&gt;<br />    &lt;/body&gt;<br />&lt;/html&gt;<br /></code></dd></dl><br />in content.html<br /><dl class="codebox"><dt>Code: </dt><dd><code>&lt;h2&gt;Yupii, u make it!!!&lt;/h2&gt;</code></dd></dl><p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=4653">rjot</a> — Thu Jun 26, 2014 1:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-06-25T18:29:32-07:00</updated>
<published>2014-06-25T18:29:32-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=252#p252</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=252#p252"/>
<title type="html"><![CDATA[How to load local html file?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=252#p252"><![CDATA[
Hi,<br /><br />In your case, we suggest you should use absolute path instead of relative path to make sure about it.<br />Maybe, emulator get problem with relative path as you did.<br />Aside, you can check root problem by Console Tab (open by \"Inspect Element\" option in menu context -> Choose Console Tab).<br />Hope this help!<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Wed Jun 25, 2014 6:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rjot]]></name></author>
<updated>2014-06-25T04:52:58-07:00</updated>
<published>2014-06-25T04:52:58-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=250#p250</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=250#p250"/>
<title type="html"><![CDATA[How to load local html file?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=141&amp;p=250#p250"><![CDATA[
Hello,<br />In LG .load() from jQuery works, but in SDK Alliance emulator don't work. I'll try:<br /><dl class="codebox"><dt>Code: </dt><dd><code>1. $( \"#dynamicContent\" ).load( \"./html/currency.html\");<br /><br />2. $( \"#dynamicContent\" ).html( loadPage(\"html/currency.html\"));<br />function loadPage(href) {<br />    var xmlhttp = new XMLHttpRequest();<br />    xmlhttp.open(\"GET\", href, false);<br />    xmlhttp.send();<br />    return xmlhttp.responseText;<br />}<br /><br />3. var url = './html/currency.html';<br />$.get(url, function(response) {<br />    $('#dynamicContent').html(response);<br />})<br /><br /></code></dd></dl>so, how to load local html file?<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=4653">rjot</a> — Wed Jun 25, 2014 4:52 am</p><hr />
]]></content>
</entry>
</feed>