Using innerHtml is making problems in Android

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aptara
    New Member
    • May 2012
    • 2

    Using innerHtml is making problems in Android

    Hi, I'm using InnerHtml (I could not use iframe aswell)to load a page into a DIV. But it's making problems when i have a video/scrolls inside the page. (Child page).

    Can anyone have solution for this.? Please suggest, Since I'm really frustrated by this issue.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Post your code. What kind of problems?

    Is this in a phone or tablet or all Android devices/browsers?

    Comment

    • Aptara
      New Member
      • May 2012
      • 2

      #3
      My code to load a page from the main page:

      document.getEle mentById('conta iner').innerHTM L = '<'+'object id="loader" name="loader" type="text/html" data="'+pageUrl +'"><\/object>';

      The problem is: When i check this from Android Tablet (Motorola Xoom) the child page elements are getting misaligned/goes to Offcenter of the page. When i say page elements that are specific to scrollable DIVs and video panels.

      So i could not have scrollbars and videos in my pages. Can you suggest?

      Comment

      Working...