Page 2 of 88 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 879

Thread: [3.0.x, 3.1.1] ux.ManagedIFrame 2.x

  1. #11
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Thumbs up MIF 2 RC2..

    is up and ready for download.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  2. #12
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
      0  

    Default

    Hi
    I'm trying to use ManagedIFrame, but I have an issue.

    I want to load manually an IFrame using the update function

    Code:
    var vContent = "<html><head><script>function test(){alert('hello');}</script></head><body><button onclick='test();'>click me</button</body></html>";
    var vIFrame = new Ext.ux.ManagedIFrame.Panel({frame: true, autoScroll: true} );
    vMainPanel.add(vIFrame);
    vMainPanel.doLayout();
    vIFrame.getFrame().update(vContent );
    I can see into the IFrame the "click me" button, but when I push it I receive "test" is not defined.
    Why?

    Maybe I make same mistakes... or this extension is not the right way to do it.

    Thanks

    Roberto

  3. #13
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
      0  

    Default

    I'm sorry..
    I found my mistake....

    Code:
    vIFrame.getFrame().update(vContent );
    must be

    Code:
    vIFrame.getFrame().update(vContent, true );

  4. #14
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    646
    Vote Rating
    12
      0  

    Default

    I tried running the demos listed in your first post but they all seem to have problems with the mask. Using FF3

  5. #15
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    Quote Originally Posted by zombeerose View Post
    I tried running the demos listed in your first post but they all seem to have problems with the mask. Using FF3
    @zombeerose -- Try clearing your browser cache, and then try. You may have an older version still cached in there.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  6. #16
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    646
    Vote Rating
    12
      0  

    Default

    Nope same problem.

    For the Window demo, I get this error:
    Code:
    _gat is not defined
    http://demos.theactivegroup.com/startup.js?_dc=1246899649475
    Line 206
    I also tried with Chrome.
    Attached Images Attached Images

  7. #17
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    Quote Originally Posted by zombeerose View Post
    Nope same problem.

    For the Window demo, I get this error:
    Code:
    _gat is not defined
    http://demos.theactivegroup.com/startup.js?_dc=1246899649475
    Line 206
    I also tried with Chrome.
    Pesky Google Analytics stuff. Try it again.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  8. #18
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    646
    Vote Rating
    12
      0  

    Default

    Perfect - thanks!

  9. #19
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    646
    Vote Rating
    12
      0  

    Default

    Here is a test case that no longer works when I include MIF in my project.

    Code:
    var msgCt = Ext.DomHelper.insertFirst(document.body, {id:'test',style:'position:absolute;z-index:10000'}, true);
    
    var m = Ext.DomHelper.append(msgCt, {html:'<div class="my-msg">Message</div>'}, true);
    
    msgCt.alignTo(document, 't-t');
    
    console.log(m);
    I get
    Code:
    TypeError: el.style is undefined
    Any ideas?

  10. #20
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    @zombeerose -- There have been some internal changes to Ext/Core 3.0 RC3, but in general, alignment and centering is based upon the target's (centering) style object. document has no style object.

    You should be using :
    Code:
    msgCt.alignTo(document.body, 't-t');
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Page 2 of 88 FirstFirst 12341252 ... LastLast

Tags for this Thread

Posting Permissions

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