#189 closed todo (done)

Action working.

Reported by: Mridul Owned by:
Priority: normal Milestone:
Component: uwiki Keywords:
Sub Tickets: Parent Tickets:

Description

Now we are calling action.invoke() method to run an action.

I can see how an action will work,

action.invoke = function(requestData)

--action does its thing

return responseHTML

end

where requestData is the GET, POST etc vars all combined into a request Object

Questions:

  1. Can we assume that all actions will produce html response?
  1. Which is better, passing requestData as a function param to invoke() or reading it from a global table UWIKI?

Change history (2)

in reply to:  description comment:1 by Christian Thäter, at 2009-08-12T00:50:20Z

Replying to mridkash:

Now we are calling action.invoke() method to run an action.

I can see how an action will work,

action.invoke = function(requestData)

--action does its thing

return responseHTML

end

where requestData is the GET, POST etc vars all combined into a request Object

Questions:

  1. Can we assume that all actions will produce html response?

at least some 'http' response, maybe not always a html page (301 Moved Permanently, for distributed wikis for example), but since all actions are initiated by a http request it's completion requires to send a response of some sort.

  1. Which is better, passing requestData as a function param to invoke() or reading it from a global table UWIKI?

pass param

comment:2 by Mridul, at 2009-08-12T11:30:15Z

Resolution: done
Status: newclosed
Note: See TracTickets for help on using tickets.