[CLOSED] Javascript syntax error on response with directMethod call in usercontrol

  1. #1

    [CLOSED] Javascript syntax error on response with directMethod call in usercontrol

    Hello,

    I have a usercontrol with 2 directMethods, during runtime create more controls inside this usercontrol and add listeners to call a usercontrol directMethod, it works fine but i received a javascript syntax error with the result of the called directMethod.

    In eval(result.script)
    .callbackRefreshHandler(response, {serviceResponse: {success:true,data:{data:[{"Id":1,"Nombre":"Forfait desechable 1 día"}], total: 0}}}, , o.eventType, o.action, o.extraParams);.callbackRefreshHandler(response, {serviceResponse: {success:true,data:{data:[], total: 0}}}, , o.eventType, o.action, o.extraParams);
    If execute this eval(result.script) in inmediate windows receive same error, I cant see what is wrong.

    Could you see any wrong in this response?

    Thanks
    Last edited by geoffrey.mcgill; Jan 14, 2011 at 7:40 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I dont see an id for the store. It is mean that you did not set ID for the store and call DataBind before adding the store to controls collection.
    Setting ID for the store should the fix the problem (also, if you add the store to Controls or Store property of another widget then call DataBind after adding the store to that property)
  3. #3
    I`ve asign a storeID and execute databind after it added to controls collection and works fine. CLOSED

    Thanks so much Vlad.

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2013, 6:00 PM
  2. Replies: 4
    Last Post: Sep 26, 2011, 2:59 PM
  3. [CLOSED] [1.0] Javascript error when loading usercontrol from code
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 17
    Last Post: Jul 12, 2010, 3:59 PM
  4. [CLOSED] Javascript error when using this usercontrol
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 25
    Last Post: Jun 15, 2010, 5:26 PM
  5. [CLOSED] Javascript Error loading dynamic usercontrol 1.0
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 01, 2010, 3:05 AM

Posting Permissions