paramFunction: adding a call with out arguments

2 views
Skip to first unread message

sli...@gmail.com

unread,
May 9, 2008, 1:07:05 PM5/9/08
to mxAjax
Hi all, Im new to mxAjax so Im playing around with examples.

I created an ajaxFacade.cfc that directly interacts with my service
layer to retireve data. But before I can call any of its functions, I
want to call its init() function, not passing it any parameters. I
tried the following syntax, but it errors out.

function param(id) {
oParam = new mxAjax.Param(url,{});
oParam.addCall( {"init":} );
oParam.addCall( {"getContent":
{"tags": "local news,sports"}
});
return oParam;
}

How do I add a call using oParam.addCall with out passing any
arguments like in the second addCall?

James Holmes

unread,
May 10, 2008, 10:37:46 AM5/10/08
to mxa...@googlegroups.com
You can just pass a dummy argument if you can't work it our.

Regardless, how do you intend for the stuff you set in the init call
to remain part of the component? How are you going to do the next call
without the component being re-instantiated?

--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

sli...@gmail.com

unread,
May 12, 2008, 9:18:30 AM5/12/08
to mxAjax
maybe I misunderstood the purpose of this js function calling multiple
cf functions? I assumed it would all be part of a single request
cycle. How then would one initialize the component and then call the
needed function?

On May 10, 9:37 am, "James Holmes" <james.hol...@gmail.com> wrote:
> You can just pass a dummy argument if you can't work it our.
>
> Regardless, how do you intend for the stuff you set in the init call
> to remain part of the component? How are you going to do the next call
> without the component being re-instantiated?
>
> On Sat, May 10, 2008 at 1:07 AM, bpick...@forumcomm.com
Reply all
Reply to author
Forward
0 new messages