Re: Sending long parameter via cross-site JSON

2009-10-07 Thread Gintare Ragaisiene
Here I am with the code. 1) Client side GWT code: /** * Saving long content of e-mail. If it shorter than NewMessgeContentPanel.CHARS_COUNT_IN_FRAGMENT, no results will be generated. * @param communicationEventId - ID needed for operations in DB * @param messageText - long

Re: Sending long parameter via cross-site JSON

2009-09-28 Thread Gintare Ragaisiene
I found such solution: 1) split long text into array Arr of shorter strings 2) go through for loop of Arr and send Arr[i] texts with index i as parameter 3) store into database fragmets of text with sequenseNo = i; 4) when you need to get all text get all text from sequenced fragments. Still

Re: Sending long parameter via cross-site JSON

2009-09-28 Thread Hlunboi
Hi Gintare, Can you post sample code for your solution. Regards Hlun On Mon, Sep 28, 2009 at 12:16 PM, Gintare Ragaisiene gintare.ragaisi...@gmail.com wrote: I found such solution: 1) split long text into array Arr of shorter strings 2) go through for loop of Arr and send Arr[i] texts

Re: Sending long parameter via cross-site JSON

2009-09-27 Thread Ben
Is it possible to move this into body instead of put it in parameter? I think that is a good way to go. On Sep 26, 12:57 am, Hlunboi hlungu...@gmail.com wrote: Hi, I have similar requirement. Anyone who implement this? Regards Hlun On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene

Sending long parameter via cross-site JSON

2009-09-24 Thread Gintare Ragaisiene
Hello, I'm developing GWT UI that talks with my server via JSON. I do access of service by passing url like this : http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message1parameter=parameter1 to function: public void callJsonService(String url){ url =