Results 1 to 3 of 3

Thread: iframed page is showing noscript content

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    40
    Vote Rating
    0
      0  

    Default iframed page is showing noscript content

    hello all. to show external urls I am taking a panel and dynamically adding an iframe tag as the html value. However if the child page has a no script tag it is showing the content. How can we show a no script tag content in a JavaScript based app?

    this is a mobile site and a native app using touch 2.0

    thanks

    Jeff

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    I would try to stay away from iframes as certain interactions, most notably scrolling, won't work. If it's plain HTML then you can do an Ajax request and then insert that HTML into a component using the setHtml method.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    40
    Vote Rating
    0
      0  

    Default

    Mitchell,

    Thanks for writing back.we unfortunately have no other option but to use iframes. Out mobile site as well as out native app both have external links to privacy policies and other important information. Since Sencha does not have a means to spawn a native browser to open these links we are forced to use the iframe to show the content and use a toolbar with a back to app that will then destroy the panel with the iframe and return the user to the app. This method was actually suggested by Sencha's support team they explain it is a hack but if we use Sencha to build our app we are pretty much pegged in to this situation.
    \
    As for the no script we did some more testing and found the issue. we are using the new html 5 sandbox attribute for iframe. This covers scripting, forms domain permissions and navigation. normally if you leave the attribute value as empty it applies all permissions. however in this iframe some things were not getting communicated in to the child frame so we needed to spell out all the permissions to turn on such ass allow-scripting.

    So for now we are all set. However I need to find a good way to allow left to right scrolling in the iframe.

    Does anyone have any suggestions?

    Jeff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •