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

Steve Kingsley smk at simplicity-solutions.com
Wed May 9 09:47:30 PDT 2007


Hi Josh,

No the page is not live at the moment, it's still on the local 
development server. I could try and get it online but I'm short on time 
at the moment. If I know that it should work then I can persevere with 
it. I couldn't find any documentation to say that it should be possible.

I'll check I'm using the latest version, and I got an example from 
Laurent where it worked so I'll give that a go.

Cheers for the reply
Steve

Joshua Eichorn wrote:
> 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
>>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://bluga.net/pipermail/html_ajax-devel/attachments/20070509/e22f2437/attachment.html


More information about the Html_ajax-devel mailing list