语言

Menu
Sites
Language
App Unable to access internet

Hi,

I am trying to develop my first Tizen app and my app is unable to access internet

I have provided the internet privilege

https://github.com/mohittripathi/tizentestapp/blob/master/config.xml

I am unable to load third party/remote javascript in my app

here is the sample code

https://github.com/mohittripathi/tizentestapp

thanks

Mohit Tripathi

 

 

 

 

 

响应

26 回复
AVSukhov
mohit kumar

Hi,

I have solved the problem.Thank you.

Seoghyun Kang

Hello,

You need to define network resource permissions at config.xml.

Please refer the following codes.

 

<access origin="http://www.tizen.org" subdomains="true"/>

 

or

 

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

 

 

mohit kumar

Hi,

I have done with XML file accouding to what you say,but it is not working.

 

please help me

 

 

Vikram

Hello,

I've checked your code and it's working fine here after I added below thing only into config.xml


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

 

Can you still observe same issue?
 

mohit kumar

Hi,

I have done xml file according to what you said,but i am having problem with certificate of page which i want to access with my app.

please help me

 

Seoghyun Kang

Hello

 

I attached the full code of the config.xml in the sample using the network. (NewsFeed sample)

Please refer the following code. This code works well.

 

If there is no difference from your config.xml, I recommend to check your javascript code or internet connection.

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/NewsFeed" version="1.0.0" viewmodes="maximized">
    <access origin="https://www.tizen.org" subdomains="true"></access>
    <tizen:application id="OvW0q4A0s0.NewsFeed" package="OvW0q4A0s0" required_version="2.3"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <icon src="icon.png"/>
    <name>NewsFeed</name>
    <tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:profile name="wearable"/>
</widget>

 

AVSukhov

Hello,

You also wrote that you have provided the internet privilege

If you have not already done so, add this privilege, as described in the comment above.

mohit kumar

Hi,

I have solved the problem.Thank you.
 

mohit kumar

Hi,

Thank you for help.Its great TIZEN.

 

mohit kumar

Hi,

still it is not working with my Emulator,jquery function of my app is not work because it not access online library.I have developed five application each application having same problem.My all application work well with chrome browser and mozilla,please help me.

 

 

 

thanks and regards

mohit kumar

 

 

Marco Buettner
<access origin="http://www.tizen.org" subdomains="true"/>

to

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

 

Marco Buettner

The origin defines which online resources can be used... if you set it up http://www.tizen.org - your application can ONLY access all webresources of tizen.org!

The wildcard (*) allows to use ALL internet resources, it make sense of application which use different online resources (like a news feed reader)...

If you know all resources and you wanna restrict your application you can define multiple access-childs with all needed urls

mohit kumar

Hi,

I have changed the path of origin.It display message there is problem with security certificate with the site.How can i resolve the security certificate problem.

please help me

mohit kumar

Hi,

I have solved the problem.Thank you.

mohit kumar

Hi,

I have used <input type="button" id="b1" value="X"> it works well with basic web application of tizen.

How to set the value of button in TIZEN UI BUILDER.I have problem with TIZEN UI BUILDER button value attribute.

please help me.

 

 

thanks and regards

Mohit Kumar

 

Palitsyna

Hello,

 

Drop the "Submit Button" element from "Form Elements" tab into the page screen. Then type the required value into its Text attribute and press 'Enter'.   The result is:

<input type="submit" id="submit1" value="Text">


You can also choose a "Button" element from "Buttons" tab. Then type the required value into its Text attribute and press 'Enter'.  The following code will be generated:

<div data-role="button" id="button1">Text</div>

 

For more info please refer to documentation:

https://developer.tizen.org/documentation/getting-started-tizen/application-development-process/web-application/creating-application-uis-ui-builder

mohit kumar

Hi,

If i drag a submit button and drop it into page screen then it generate code

<div data-role="button" id="button1">Show page "two"</div>

but i want to test condition like

if(document.getElementById("button1").value==" ")

{

alert("hello");

}

It is not working.How can I do it please help me

 

 

Thanks

Mohit Kumar

Marco Buettner

Because u have a DIV-tag as button not a input field sooo... a div-tag has not the property "value"... 

mohit kumar

Hi,

I will try.Thank you.

 

Palitsyna

Hi,

Use 'textContent' to get the text of the button:

    var button = document.getElementById("button1");
	if(button.textContent == "") {
		alert("Hello");
	}

 

To change the text use the following code
 

button.innerHTML = "Hello";

 

mohit kumar

Hi,

I have done all the things accounding to what you said.It work fine.Thank you.

 

thanks and regards

Mohit Kumar

mohit kumar

Hi,

i am developing animal game.I want to insert image on button,when button is click,this is in UI builder.If you have any other way please help me.

 

 

thanks and regards

 

Marco Buettner

At first you should use a extra topic for other questions.

Second Imo the UI builder isnt very useful if you develop a game... UI builder is useful to develop apps which looks native...
I never used the UI builder, imo its more complicate as developing with UI framework without the UI builder..

mohit kumar

Hi,

To develop game which of the following is best to use

Basic

Tizen web UI builder TAU

Tizen web UI framework

JQUERY mobile

 

 

thanks and regards

Mohit Kumar

 

Marco Buettner

I will choice 'Basic'