[CLOSED] XScript X script

  1. #1

    [CLOSED] XScript X script

    What is the difference between using
    <script type="text/javascript">
    <ext:XScript runat="server">
    or to put the functions in java script?

    <script type="text/javascript">
    .
    .
    .
    </ script>
    <ext:XScript runat="server">
             <script type="text/javascript">
    .
    .
    .
    </ script>
         </ ext: XScript>
    Last edited by Daniil; Jun 07, 2011 at 11:32 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    XScript tags let you use
    #{myGridPanel}
    syntax to obtain an object reference - same as doing
    Ext.get('myGridPanel')
    . If you had IDMode=Explicit you don't need that though.
  3. #3
    Hi all,

    Yes, Peter, you are right, <ext:XScript> allows to use #{} syntax withing <script> tags.

    But I have to correct you. In the case with grid, #{} syntax will return just a grid's client id.

    For example,
    #{myGridPanel}
    can return
    UserControlID_myGridPanel
    If the thing within #{} is not a widget, then it will return Ext.get(...).
  4. #4
    Quote Originally Posted by Daniil View Post
    Hi all,

    Yes, Peter, you are right, <ext:XScript> allows to use #{} syntax withing <script> tags.

    But I have to correct you. In the case with grid, #{} syntax will return just a grid's client id.

    For example,
    #{myGridPanel}
    can return
    UserControlID_myGridPanel
    If the thing within #{} is not a widget, then it will return Ext.get(...).
    Thanks for the extra info :)
  5. #5
    No problem:)
  6. #6
    Quote Originally Posted by Daniil View Post
    No problem:)
    Ok, thanks

Similar Threads

  1. [CLOSED] XScript primer?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 02, 2012, 1:22 PM
  2. [CLOSED] XScript as server control
    By betamax in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 11, 2012, 1:05 PM
  3. [CLOSED] XScript explained?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 04, 2011, 8:53 AM
  4. [CLOSED] Xscript
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 19, 2011, 8:27 PM
  5. Replies: 2
    Last Post: Jul 29, 2009, 1:57 PM

Posting Permissions