언어 설정

Menu
Sites
Language
The WebControl can't display the even alert of JS

I write the .js and .html as below,and then call LoadUrl("the url.....................");in the file of .cpp.    

But I can't get the the even Pop-up box of alert("Tizen2");alert("Tizen4");alert("Tizen6");

Hope get some opiniones from this forum,thank you very much!

//loadurl.js
function loadurl(){
alert("Tizen1");
alert("Tizen2");
alert("Tizen3");
alert("Tizen4");
alert("Tizen5");
alert("Tizen6");
alert("Tizen7");
}

//ll.html

<html>
<head>
       <title>"load url" </title>
       <script language="javascript" type="text/javascript" src="loadurl.js"></script>
</head>
<body>
      <script language="javascript" >
         loadurl();
      </script>
</body>
</html>

//.cpp

    if (null == mpWeb) {
        Tizen::Graphics::Rectangle bound = GetClientAreaBounds();
        mpWeb = new (std::nothrow) Tizen::Web::Controls::Web();
        r = mpWeb->Construct(Tizen::Graphics::Rectangle(0, 0, bound.width, bound.height));
        Tizen::Web::Controls::WebSetting setting;
       setting.SetJavascriptEnabled(true);
        r = AddControl(mpWeb);
        mpWeb->LoadUrl(L"http://192.168.7.210/XXX/ll.html");
        return r;
    }

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
basu

This is really interesting. I tested the same and it shows alternative popups in tizen but same thing works properly in normal desktop webbrowsers.

Alex Dem

Hi,
For Tizen Web apps it works properly (I have checked). Looks like there is a bug  somewhere in Tizen Web control implementation for Native.
Alexey.

Chintan Gandhi

Hello souravb, alexdem,
I checked it and I found out it works wrong on Tizen 2.2.1 SDK.
This issue doesn't occur on a target(real device)
We will fix it on next SDK if there is a plan to release a patch version.
(Currently, we don't have it)
I apologize for your nconvenience.
I will keep this issue as postpone for future.
Thank you