1. #1
    Ext User
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    35
    Vote Rating
    0
    nagir is on a distinguished road

      0  

    Default Using util.CSS for embed (iframe) document

    Using util.CSS for embed (iframe) document


    Hi,

    I want to use CSS.updateRule for the document that is located in iframe.
    (I cannot include ExtJS to that iframe).
    AS far as I can see looking at the code it's not possible because of this:
    PHP Code:
    Ext.util.CSS = function(){
           var 
    doc document
    Since doc is private and there are no any getters/setters util.CSS always uses current document.
    Any suggestions? What my options are?

    In this case I would like to write code like this:
    PHP Code:
    var css = new Ext.util.CSS(documentOfIframe); // DONT TRY IT! It's just a meta-lang!
    css.updateRule("h1""color""red"); 
    Cheers,
    Dmitriy.

  2. #2
    Sencha User edykstra's Avatar
    Join Date
    Feb 2009
    Posts
    98
    Vote Rating
    2
    edykstra is on a distinguished road

      0  

    Default


    Hey Dmitriy,

    I am trying to do pretty much the exact same thing.

    Did you ever figure out how to achieve this?

    Thanks,

    Eric

Thread Participants: 1