[CLOSED] Xscript

  1. #1

    [CLOSED] Xscript

    Hi,

    I thought that XScript was to output javascript code to js file and linked it to aspx.

    am I wrong?
    Last edited by geoffrey.mcgill; Jan 23, 2011 at 4:00 AM. Reason: [CLOSED]
  2. #2
    Hi,

    XScript replaces #{} tokens only. It doesn't output script inside file
  3. #3
    Hi,

    You might be looking for the .InitScriptMode property on the <ext:ResourceManager>.

    Setting to "Linked" will dynamically create an external js file where all the initialization script will be loaded from.

    Example

    <ext:ResourceManager runat="server" InitScriptMode="Linked" />
    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4
    I should clarify, setting .InitScriptMode="Linked" does not combine or minimize scripts included within <ext:XScript> blocks.

    The .InitScriptMode only applies to the initialization script which is used to create the components.
    Geoffrey McGill
    Founder

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 X script
    By majunior in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 07, 2011, 11:31 AM
  4. [CLOSED] XScript explained?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 04, 2011, 8:53 AM
  5. [CLOSED] XScript server error
    By armadalabs in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 17, 2010, 8:28 AM

Posting Permissions