[CLOSED] How to get custom config parameters into JS function?

Page 3 of 3 FirstFirst 123
  1. #21
    I just tried your example. You'r right, function is called on load (???) and clicking on button didn't launch alert.

    Vey strange.

    On my side I put an alert in my code, and it didn't show on load, but, my application is a desktop one and not a simple example as yours, perhaps it impacts.
  2. #22
    Quote Originally Posted by feanor91 View Post
    I just tried your example. You'r right, function is called on load (???) and clicking on button didn't launch alert.

    Vey strange.
    Well, it became rather clear if look at the rendered scripts. There is something like this in the Ext.onReady.

    listeners: {
        click: {
            fn: onClick('test')
        }
    }
    So, it is just executed at the same time when the Ext.onReady script is.

    Quote Originally Posted by feanor91 View Post
    On my side I put an alert in my code, and it didn't show on load, but, my application is a desktop one and not a simple example as yours, perhaps it impacts.
    I can investigate a sample if you can provide.
  3. #23
    No I can't all is intricated into 30000 lines of code apsx js and vb, to much complicated to produce a working sample for now, and by the way, for me it works well so, it is all I want, thanks.
  4. #24
    Ok, but be careful:)
  5. #25
    Don't worry, debug is my life
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 2
    Last Post: Jan 09, 2012, 7:18 AM
  2. Replies: 1
    Last Post: Sep 28, 2011, 3:50 AM
  3. Replies: 4
    Last Post: May 31, 2011, 11:54 AM
  4. [CLOSED] Custom config for Coolite controls
    By thaianhduc in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 10, 2010, 7:11 AM
  5. Custom function in User Controls
    By pearl in forum 1.x Help
    Replies: 2
    Last Post: Apr 08, 2009, 12:56 AM

Posting Permissions