Results 1 to 3 of 3

Thread: Mouse Event within an iframe

  1. #1

    Default Answered: Mouse Event within an iframe

    Hello all,

    I have a Iframe (Ext.ux.Iframe) where the content will be updated oftenly (changing url or reload).
    I want to have a listener a certains dom element within this Iframe.
    (I want to display like a tooltip, for now).

    How can I setup that?
    I try the "delegate" config of the tooltip but this doesn't work.

    As far as I understand, the Iframe as a different context than my actual page. How can I interact with this context?

    Thanks in advance,
    Psycho

  2. Hi,

    This is a complicated process. You will have to manage the events within the frameEl from your main document.
    Our htmleditor is placed inside an iframe and we do the same thing to listen to these events.

    Check the htmleditor source code: http://docs.sencha.com/extjs/6.0/6.0...eld-HtmlEditor

    and see how the initEditor method and read the comments there, it will help.

    Thanks,

  3. #2
    Sencha - Support Team
    Join Date
    Mar 2015
    Location
    Chicago
    Posts
    239
    Answers
    40

    Default

    Hi,

    This is a complicated process. You will have to manage the events within the frameEl from your main document.
    Our htmleditor is placed inside an iframe and we do the same thing to listen to these events.

    Check the htmleditor source code: http://docs.sencha.com/extjs/6.0/6.0...eld-HtmlEditor

    and see how the initEditor method and read the comments there, it will help.

    Thanks,
    Guilherme Lopes
    Sencha Support

  4. #3

    Default

    Thanks Guilherme, I did not thought of the HtmlEditor. I'll dig into the code.

Similar Threads

  1. how to get panel mouse over event
    By sreenatht in forum Ext: Q&A
    Replies: 1
    Last Post: 28 Sep 2012, 2:43 AM
  2. Intercept key event on a mouse event
    By godoi.camper in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 5 Jan 2011, 11:04 AM
  3. Replies: 2
    Last Post: 3 Dec 2009, 4:07 PM
  4. Mouse Click Event
    By deblasio in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 Jun 2009, 7:20 AM
  5. mouse leave event
    By bravesirrobin in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 4 Oct 2007, 11:45 PM

Posting Permissions

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