[CLOSED] A DirectMethod provides the ability to call controller actions from client-side JavaScript code.

  1. #1

    [CLOSED] A DirectMethod provides the ability to call controller actions from client-side JavaScript code.

    I am trying to run your EXT MVC sample availabe at http://mvc.ext.net/#/Events/DirectMethod/

    However I keep getting this error:
    "Microsoft JScript runtime error: 'App.direct.Events' is null or not an object"

    Here is the screen shot:
    Click image for larger version. 

Name:	ErrorScreenShot.jpg 
Views:	16 
Size:	100.6 KB 
ID:	9771

    Can you please help me what am I doing wrong?
    Thanks
    Fahd
    Last edited by Daniil; Apr 11, 2014 at 4:45 PM. Reason: [CLOSED]
  2. #2
    Hi @Fahd,

    Is there this attribute of the controller?
    [DirectController(AreaName="Events")]
  3. #3
    Yes. I have everything as you have in your sample.
  4. #4
    It looks you don't have any Areas in your MVC project.

    Please remove
    (AreaName="Events")
    and use
    App.direct.SetTimeStamp
  5. #5
    Thanks.
    It is working now!!!

Similar Threads

  1. Replies: 6
    Last Post: Nov 30, 2011, 6:48 PM
  2. Replies: 1
    Last Post: Jun 28, 2011, 10:38 PM
  3. [CLOSED] Wait for DirectMethod to execute client side...
    By tjbishop in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 17, 2010, 10:29 PM

Posting Permissions