RE: [flexcoders] making simultaneous javascript calls from flex using FABridge

2006-12-19 Thread Tom Lee
Hi Thiru,

 

I haven't used the Flex/Ajax bridge.  However, I have done a lot of work
with Flash/JavaScript communication.  One thing I've learned is that if you
make multiple calls too rapidly, they have a tendency to fail at random in
certain browsers.  If possible, I would suggest that you combine your two
JavaScript calls into one call, or put some delay between them.

 

-tom

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thiru vengadam
Sent: Tuesday, December 19, 2006 3:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] making simultaneous javascript calls from flex using
FABridge

 

Hi Friends

 

I am working on communicating between flex and JavaScript, when I am trying
to call 2 JavaScript method simultaneous my first call fails, I like to know
how to make 2 calls at a same time, or is there any way we can make 2 calls
to JavaScript. 

 

 Regards 

Thiru

 



Re: [flexcoders] making simultaneous javascript calls from flex using FABridge

2006-12-19 Thread thiru vengadam

Hi Tom



Thanks for your replay, I have done the same, I converted 2 calls into one
and we makeup that in DWR level by making 2 business calls and DWR returns
back it as array collection to AJAX which we are using in FLEX.



Then one more this, initially I was trying to send array objects to
JavaScript instead of parameters which we are doing now, when I am getting
that values in JavaScript I am getting as a string, not as a array object,
if it is a single dimension array we split it and add to another object, but
if it is 2 dimensional array we are losing the data.
Any idea.


On 12/19/06, Tom Lee [EMAIL PROTECTED] wrote:


   Hi Thiru,



I haven't used the Flex/Ajax bridge.  However, I have done a lot of work
with Flash/JavaScript communication.  One thing I've learned is that if you
make multiple calls too rapidly, they have a tendency to fail at random in
certain browsers.  If possible, I would suggest that you combine your two
JavaScript calls into one call, or put some delay between them.



-tom


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *thiru vengadam
*Sent:* Tuesday, December 19, 2006 3:58 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] making simultaneous javascript calls from flex
using FABridge



Hi Friends



I am working on communicating between flex and JavaScript, when I am
trying to call 2 JavaScript method simultaneous my first call fails, I like
to know how to make 2 calls at a same time, or is there any way we can make
2 calls to JavaScript.



 Regards

Thiru







--
Thanks  Regards
Thiru