Results 1 to 3 of 3

Thread: Component html this property can not execute the script

  1. #1
    Sencha User sailei1's Avatar
    Join Date
    Jul 2011
    Location
    BeiJing China
    Posts
    43

    Default 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 User AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395
    Answers
    148

    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


  3. #3

    Default

    I have a question . Is this possible ,i mean putting script tag in html: property, because when i tried it it didn't worked.

Posting Permissions

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