1. #1
    Sencha User sailei1's Avatar
    Join Date
    Jul 2011
    Location
    BeiJing China
    Posts
    43
    Vote Rating
    0
    sailei1 is on a distinguished road

      0  

    Default Unanswered: Component html this property can not execute the script

    Unanswered: Component html this property can not execute the script


    Ext.define("Sencha.view.Main", {
    extend: 'Ext.Panel',
    config : {
    html:"dsfds<script>console.log('loglgo');</script>"
    }
    });

    Ext.Viewport.add(Ext.create('Sencha.view.Main'));
    Chinese

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Answers
    148
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Please provide us more info on what you are trying to accomplish so we can help you.
    Putting the "script" tag into a component "html" property is not a good example of best uses.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


Thread Participants: 1