[HTML_AJAX-devel] HTML_AJAX.call send an array as an argument?

Joshua Eichorn josh at bluga.net
Wed May 9 09:18:45 PDT 2007


Is the page public anywhere so I can take a look at the javascript side
-josh
Steve Kingsley wrote:
> Hi Laurent,
>
> Thanks for the reply.
>
> First I tried:
> var myArray = new Array('test1','test2');
> HTML_AJAX.call('class', 'method', callback, 'arg1', myArray);
>
> then I tried your suggestion and put the array in-line. The problem I 
> get is that the method I'm calling takes two arguments and the error I 
> get is: missing argument 2. Using firebug to try and see what is going 
> on, it looks as though the array is just not passed.
>
> Cheers for the help, any other ideas?
> Steve
>
> Laurent Yaish wrote:
>> Hi Steve,
>>
>> Sure you can. try something like:
>> HTML_AJAX.call('class','method',callback,[1, 2, 3])
>>
>> Laurent
>>
>> On 5/9/07, *Steve Kingsley * <smk at simplicity-solutions.com 
>> <mailto:smk at simplicity-solutions.com>> wrote:
>>
>>     Hi,
>>
>>     This may be a simple question and I think I know the answer will
>>     be no
>>     but here goes anyway:
>>     When you use the HTML_AJAX.call function, can you send a javascript
>>     built array as an argument?
>>
>>     Cheers
>>     Steve
>>     _______________________________________________
>>     Html_ajax-devel mailing list
>>     Html_ajax-devel at lists.bluga.net
>>     <mailto:Html_ajax-devel at lists.bluga.net>
>>     http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>>
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>   



More information about the Html_ajax-devel mailing list