[Proto-Scripty] Passing parameters as a variable

2009-04-23 Thread Arpan Dhandhania
Hi, I want to pass the value of 'parameters' to the Ajax.Request method as a variable like in the example below: function SendRequest() { var params = param1: 'value 1', param2: 'value 2' ... ; new Ajax.Request(URL, { method:'post', parameters:

[Proto-Scripty] Re: Passing parameters as a variable

2009-04-23 Thread Arpan Dhandhania
software / com Independent Software Engineer, consulting services available On Apr 23, 10:02 am, Arpan Dhandhania arpa...@gmail.com wrote: Hi T J, If I understand you correctly, you are telling me to read 'value 1', 'value 2' etc from the text field and then build the object and pass

[Proto-Scripty] Re: Passing parameters as a variable

2009-04-23 Thread Arpan Dhandhania
Hi T J, If I understand you correctly, you are telling me to read 'value 1', 'value 2' etc from the text field and then build the object and pass is. Is that right? Now the problem is that the parameters are not pre-determined. I am basically building an API and this form will work as a testing

[Proto-Scripty] Re: Passing parameters as a variable

2009-04-23 Thread Arpan Dhandhania
Hi T J, Thanks for those links. I had tried that evalJSON() method earlier, but it didn't work. The problem was that I was using v1.5 and evalJSON () is supported only from v1.6 onwards. Anyway thanks for you help. regards, Arpan D. --~--~-~--~~~---~--~~ You