Languages

Menu
Sites
Language
web application link runs in same app

hi,
      News web application using through web links like m.bbba.com and m.xyzz.com these link are directly goes to run mobile browser(also installed opera browser).

i don't know how to run same app these links.

Responses

12 Replies
Alex Dem

Hi,
To do not launch browser you could add into config.xml of web app:

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

But you could not manage transition from remote web page to local web page inside of your app, in any case.
Alexey.

ragu p

hi, 

  Thanks.

Application working inside.But tizen hw back button does not working.

ragu p

hi,

    But index page tizen hardware key back button works.If i was clicked index link page opened then 

i want to move back on the  index page  means Tizen hardware key back button not working inside the application.

Alex Dem

Hi,
Maybe you could try to use iframe inside locally web page.
Alexey.

ragu p

hi,

 Please can you give sample coding in the iframe inside to use web page.

Alex Dem

Hi,
Try to look here: https://developer.tizen.org/documentation/guides/web-application/w3chtml5supplementary-features/security/html5-iframe-element
Alexey.

AVSukhov

Hello,

You can use following:

<iframe src="iframe_cookie_stolen.html" 
        sandbox="allow-scripts allow-same-origin" 
        id="iframe" seamless 
        width="100%" height="350px" 
        style="border: 1px solid #DCDCDC;"></iframe>

For more info refer to documentation:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.tutorials/html/web/w3c/security/iframe_tutorial_w.htm

ragu p

hi,

   trying this code iframe works the web link page(www.abcd.com).But perticular link click means iframe  shows half page only.

Not able to scroll down in the  page also intro content only showing.Full page does not visit to see and scroll.

also tested samsung z1 device frame shows white border in the page fully not convered device.

ragu p

hi,

  Pls help i was following IFRAME tag works.but  the all contents not show.because it does not scroll in the  page while using iframe.

Alex Dem

Hi,
fyi: There is note (in tutorial) what for html 5 'scrolling' and other attributes are no longer supported.
Alexey.

ragu p

hi,

   AnyOther Solution to process the html Page.

ragu p

hi, 

   I'm used below this code but index page shows the inside subpages(index1.html) links.if i click any one link opened.

 it shows only top of the content in subpage.Bcoz of iframe tag doesn't scroll middle and bottom of the contents instead of iframe.

CODE: Here index1.html created separately all the links given inside the code.just call index page for iframe.

This code is index.html

<script>
   function setSandbox() 
   {
      var checkbox = document.querySelector('#chkSandbox');
      var frame = document.querySelector('#iframe');
      var frameInfo = "", flag = "";

      if (checkbox.checked) 
      {
         /* Access to cookies within the same domain is not allowed */                    
         flag = "allow-scripts';
         frameInfo = "<iframe src sandbox="allow-scripts"></iframe>";
      } 
      else 
      {
         /* Access to cookies within the same domain is allowed */                   
         flag = "allow-scripts allow-same-origin";
         frameInfo = "<iframe src sandbox="allow-scripts allow-same-origin"></iframe>";
      }

      frame.setAttribute("sandbox", flag);
      frame.setAttribute("src", "index1.html");
      document.querySelector("#description").textContent = frameInfo;
   }
</script>
<body>
<div class="swiper-scrollbar">
<iframe src="index1.html" 
        sandbox="allow-scripts allow-same-origin" 
        id="iframe" seamless 
        width="100%" height="490px" 
        style="border: 1px solid #DCDCDC;"></iframe>
</div>