... sleeping on it during the week end helped ... dont even know how i missed that:
this works: {action:"saveDraft",artId:12,"texts['fr']":"du textefrancais","texts['en']":"some > english text"}} my answer was in my question [SOLVED] On Mon, Dec 1, 2008 at 10:10 AM, rr404 <[EMAIL PROTECTED]> wrote: > > Hi, > > it might be very simple but it seems i'm missing something just now. > > I'd like to pass something like that in my ajax request as parameters: > > {action:"saveDraft",artId:12,texts:{fr:"du textefrancais",en:"some > english text"}} > > what i want in my php POST is : > > $_POST['action'] > $_POST['artId'] > > $_POST['texts']['fr'] > $_POST['texts']['en'] > > I have walk around I m just curious to know if it's possible, that'd > be an elegant way for me to do my stuffs. > > in my idea the query string would lok like this > action=saveDraft&artId:12&texts['fr']=du%20textefrancais&texts['en'] > =some%20english%20text > > I've tried and this query string works like i want.. > I've tried having texts as a hash, as a hash.toObject().. nothing > works so far but i feel i'm not far > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---