Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    62
    Vote Rating
    0
    ljadrbln is on a distinguished road

      0  

    Default Help with DomHelper.append function

    Help with DomHelper.append function


    Hello,

    I need to ask a little help with DomHelper object.
    I want to create a tag script.

    Code:
                var t = Ext.DomHelper.append(Ext.getBody() , {
                    language: 'javascript',
                    tag:  'script',
                    type: 'text/javascript',
                    src : 'Index1.js'
                });
                alert(t);
    In FF alert returned [Object HTMLScriptElement],
    But in IE message is [Object HTMLDivElement].

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    62
    Vote Rating
    0
    ljadrbln is on a distinguished road

      0  

    Default


    Any ideas?

  3. #3
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    220
    Vote Rating
    6
    cnelissen is on a distinguished road

      0  

    Default


    There is a strange issue with IE when you insert script into the dom. IE treats script tags as NoScope element, similar to comments and style tags. Also, any scripts you inject must have defer set, don't ask me why. I tested this in IE and it works fine.

    Code:
    var t = Ext.DomHelper.insertHtml('beforeEnd', Ext.getBody().dom, '<input type="hidden"/>' + unescape('%3Cscript type="text/javascript" src="Index1.js" defer="defer"%3E%3C/script%3E'));
    You could replace the hidden input with a div, or some other element, it just needs it for insertion to work.

    With that said, it seems odd that you would need to inject a script tag in this way, why not just include it when you load the file?
    - Clint Nelissen

Thread Participants: 1

Tags for this Thread