<?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=6&amp;t=58" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2013-12-23T06:48:47-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=58</id>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-23T06:48:47-07:00</updated>
<published>2013-12-23T06:48:47-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=153#p153</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=153#p153"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=153#p153"><![CDATA[
The problem may be that you are using jQuery version 1.8 or newer in which synchronous ajax calls are deprecated. Please review the jQuery.ajax () documentation for the async property. A solution could be to move the call to vid_samp_url into the success function of getadv and setting async to true or removing it. <br /><br />Please avoid synchronous requests, as they may potentially hang the browser for a long time.<br /><br />Regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Mon Dec 23, 2013 6:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-23T04:27:06-07:00</updated>
<published>2013-12-23T04:27:06-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=152#p152</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=152#p152"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=152#p152"><![CDATA[
Hi,<br /><br />Sorry. I am not getting the solutions yet. I will clearly explain my issue with example. Using the ajax call i am calling one url in a function.<br /><br />function getadv(){<br />var url;<br />$.ajax({<br />type: &quot;GET&quot;,<br />url: &quot;www.staging.com/MPFullScreenAds?date=2013-10-31&amp;resolution=1080p&quot;,<br />async: false,<br />success: function(message){<br />var url=message.data.url;<br />}<br /><br />});<br />vid_samp_url(url);<br />}<br /><br />Using the first ajax call i am getting the xml url which i have to parse as the url for the second ajax call. I am getting the xml url dynamically. My application hosted server and the first ajax url are in the same server.<br /><br />function vid_samp_url(xml_url){<br />$.ajax({<br />type:&quot;GET&quot;,<br />url: xml_url,<br />async: false,<br />success: function(xml){<br />console.log(&quot;xml call succeed&quot;);<br />vid_url=$(xml).find(&quot;MediaFiles&quot;).text();<br />}<br />}<br />From the second ajax i have to get the video path but it is not calling the xml url which is in the another server. I am not using php in my app.<br /><br />Can you please help me in this<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Mon Dec 23, 2013 4:27 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-20T01:46:47-07:00</updated>
<published>2013-12-20T01:46:47-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=151#p151</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=151#p151"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=151#p151"><![CDATA[
Hi Priya,<br /><br />What you require is to place a PHP (or other server-side script) on your own server where your app is hosted. This script will retrieve the XML file from the other domain and pass it on to your app in the same domain. Numerous examples of such scripts exist on the web. For example:<br /><br /><!-- m --><a class="postlink" href="http://benalman.com/projects/php-simple-proxy/">http://benalman.com/projects/php-simple-proxy/</a><!-- m --><br /><!-- m --><a class="postlink" href="http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/">http://www.abdulqabiz.com/blog/archives ... -requests/</a><!-- m --><br /><br />Best regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Fri Dec 20, 2013 1:46 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-19T23:23:04-07:00</updated>
<published>2013-12-19T23:23:04-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=150#p150</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=150#p150"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=150#p150"><![CDATA[
Hi,<br /><br />I read the document. There they mentioned like i have to do some changes in the server side. But in my case i am getting the xml file dynamically so dont know from which server it is coming and cant able to change anything in the server. How can implement this. <br /><br />Can you please help me in this.<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Thu Dec 19, 2013 11:23 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-03T02:26:58-07:00</updated>
<published>2013-12-03T02:26:58-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=144#p144</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=144#p144"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=144#p144"><![CDATA[
Hello,<br /><br />When using AJAX to retrieve data from another domain you will always run into security issues. Please review section 3.3.3 - CORS of the Developer Guidelines. This deals with cross domain AJAX. <br /><br />Alternatively you can use a cross domain proxy script (e.g. PHP) to retrieve the data from the other domain. There are many examples of this on the web.<br /><br />Regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Tue Dec 03, 2013 2:26 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=590#p590</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=590#p590"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=590#p590"><![CDATA[
The problem may be that you are using jQuery version 1.8 or newer in which synchronous ajax calls are deprecated. Please review the jQuery.ajax () documentation for the async property. A solution could be to move the call to vid_samp_url into the success function of getadv and setting async to true or removing it. <br /><br />Please avoid synchronous requests, as they may potentially hang the browser for a long time.<br /><br />Regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=589#p589</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=589#p589"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=589#p589"><![CDATA[
Hi,<br /><br />Sorry. I am not getting the solutions yet. I will clearly explain my issue with example. Using the ajax call i am calling one url in a function.<br /><br />function getadv(){<br />var url;<br />$.ajax({<br />type: \"GET\",<br />url: \"www.staging.com/MPFullScreenAds?date=2013-10-31&resolution=1080p\",<br />async: false,<br />success: function(message){<br />var url=message.data.url;<br />}<br /><br />});<br />vid_samp_url(url);<br />}<br /><br />Using the first ajax call i am getting the xml url which i have to parse as the url for the second ajax call. I am getting the xml url dynamically. My application hosted server and the first ajax url are in the same server.<br /><br />function vid_samp_url(xml_url){<br />$.ajax({<br />type:\"GET\",<br />url: xml_url,<br />async: false,<br />success: function(xml){<br />console.log(\"xml call succeed\");<br />vid_url=$(xml).find(\"MediaFiles\").text();<br />}<br />}<br />From the second ajax i have to get the video path but it is not calling the xml url which is in the another server. I am not using php in my app.<br /><br />Can you please help me in this<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=588#p588</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=588#p588"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=588#p588"><![CDATA[
Hi Priya,<br /> <br /> What you require is to place a PHP (or other server-side script) on your own server where your app is hosted. This script will retrieve the XML file from the other domain and pass it on to your app in the same domain. Numerous examples of such scripts exist on the web. For example:<br /> <br /> \"http://benalman.com/projects/php-simple-proxy/\"<br /> \"http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/\"<br /> <br /> Best regards,<br /> STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=587#p587</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=587#p587"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=587#p587"><![CDATA[
Hi,<br /><br />I read the document. There they mentioned like i have to do some changes in the server side. But in my case i am getting the xml file dynamically so dont know from which server it is coming and cant able to change anything in the server. How can implement this. <br /><br />Can you please help me in this.<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=582#p582</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=582#p582"/>
<title type="html"><![CDATA[Re: how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=582#p582"><![CDATA[
Hello,<br /><br />When using AJAX to retrieve data from another domain you will always run into security issues. Please review section 3.3.3 - CORS of the Developer Guidelines. This deals with cross domain AJAX. <br /><br />Alternatively you can use a cross domain proxy script (e.g. PHP) to retrieve the data from the other domain. There are many examples of this on the web.<br /><br />Regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=581#p581</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=581#p581"/>
<title type="html"><![CDATA[how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=581#p581"><![CDATA[
Hi ,<br /><br />I am checking my application by putting the app in my server. when i am trying to access some xml file in other domain (using ajax) it is not calling that but when i tried to access the json with the same domain name it is calling that. How i can make calls to the data which is hosted in some other domains<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-03T02:02:42-07:00</updated>
<published>2013-12-03T02:02:42-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=143#p143</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=143#p143"/>
<title type="html"><![CDATA[how to implement cross domain]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=58&amp;p=143#p143"><![CDATA[
Hi ,<br /><br />I am checking my application by putting the app in my server. when i am trying to access some xml file in other domain (using ajax) it is not calling that but when i tried to access the json with the same domain name it is calling that. How i can make calls to the data which is hosted in some other domains<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Tue Dec 03, 2013 2:02 am</p><hr />
]]></content>
</entry>
</feed>