iframe is not working android inbuild browser how can resolve issue?

17,835

Android browser supports iframe. I suspect it's one of the other attributes that may be causing an issue. I know scroll attribute can cause the iframe to not appear. Try a simpler version of the iframe with just the href and a width and height and see if it appears.

Select One

Select Two

Share:
17,835
Narasimha
Author by

Narasimha

I work on mobile applications using Java, C#, VB and XML as the graphical front end. Very interested in using Web Services for mobile applications.

Updated on June 04, 2022

Comments

  • Narasimha
    Narasimha almost 2 years

    I am working on a cross platform mobile application using phonegap (html,javascript) problem is selected item related image not display in iframe and this image display another page please see below code

    <html>
    <head>
    <script>
    function onchangeevent(mySelect) 
    { 
    PageIndex2=mySelect.selectedIndex; 
    { 
    if  
    ( 
    mySelect.options[PageIndex2].value != "none" 
    ) 
    { 
    frames['iframe2'].location.href = mySelect.options[PageIndex2].value; 
    } 
    
    } 
    } 
    </script> 
    </head> 
    <body> 
    <form name="form"> 
      <p><select NAME="selectimage" SIZE="1" onChange="onchangeevent(this.form.selectimage)"> 
        <option VALUE="none" SELECTED>Select a page and go</option> 
        <option VALUE="ic_launcher.png">one</option> 
         <option VALUE="icon.png">two</option> 
      </select> </p> 
      <p> 
        <iframe src="" name="iframe2" height="100%" width="100%">You need a Frames Capable browser to view this content.</iframe>
     </p> 
    
    </form> 
    </body> 
    </html> 
    

    iframe tag not working android inbuild browser how can resolve the issue ? please tell any alternative tags supported all browsers. enter image description here enter image description here