Languages

Menu
Sites
Language
Problem - Loading external page

Hi,

I am trying to load http://www.bom.gov.au/products/IDR663.loop.shtml in a page the radar loop image does not display. Any help would be appreciated.

I have the following in the config.xml file:

<access origin="http://www.bom.gov.au" subdomains="true"/>
<tizen:allow-navigation>*.bom.gov.au</tizen:allow-navigation>

 

The following in index.html:

<!DOCTYPE html>
<html>
<head>

<meta charset="utf-8" />
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
 <meta name="description" content="Tizen Wearable basic template generated by Samsung Wearable Web IDE"/>

 <title>Tizen Wearable Web IDE - Tizen Wearable - Tizen Wearable basic Application</title>
 <link rel="stylesheet" type="text/css" href="css/style.css"/>
 <script src="js/main.js"></script>
 <style>

</style>
</head>

<body>
  <div class=contents>
<iframe  src="http://www.bom.gov.au/products/IDR663.loop.shtml"  border="0" scrolling="no" allowtransparency="true" width="360px" height="360px" style="border: 0; width: 360px; height: 360px;"> </iframe>
  </div>
</body>
</html>

View Selected Answer

Responses

5 Replies
Iqbal Hossain

Add these 

<tizen:privilege name="http://tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"></access>

 

Smith

Hi Iqbal

Sorry I already had the following in the config.xml

<tizen:privilege name="http://tizen.org/privilege/internet"/>

I have added

<access origin="*" subdomains="true"></access>

but the page loads but the image loop does not show, the rest of the page loads but not the radar loop image.

Can you try and see if you get the same result as me.

 

 

Smith

Hi,

The external page in a desktop browser looks like this:

The code I have posted makes the page on the Gear S3 look like below, the radar image section is missing?

Mark as answer
Smith

Okay fixed it

When loading external source info you need to consider content security policy I added the following to the config.xml:

<tizen:content-security-policy>self</tizen:content-security-policy>

 

 

André Reus

Great. It will be better if you give the full config.xml here. It will help other developer if they face same problem again.