[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
Ajax.Request and methods that inherit it(like autocompleter) accept JSON encoded objects as parameters (AFAIK) /* Set isMirror to something */ isMirror = myobj.isMirror(); /* OR if this is a server-side determined value echo it */ isMirror = ?php if(something){echo 'true';}else{echo 'false';}

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
myParam:{action:'save',mirror:isMirror, value:myVal} //setup JSON Sorry, should be: myParam = NOT myParam: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread Walter Lee Davis
You can only get value from a form element, not from a text node. If you want to read the raw text out of an HTML element, you'll need to use $('textID').innerHTML for that. Walter On Jan 22, 2009, at 11:34 AM, disccomp wrote: /* Another example, get the value of some text node and pass

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-21 Thread ColinFine
On Jan 20, 4:33 pm, rolfK r...@ibk-kellner.de wrote: Hello, Thank you for your fast response. But unfortunately your suggestion does not solve the problem. Using xyz as query, the following string is transferred: Without option field: query=xyz That is okay and as expected. With your

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-20 Thread rolfK
Hello, Thank you for your fast response. But unfortunately your suggestion does not solve the problem. Using xyz as query, the following string is transferred: Without option field: query=xyz That is okay and as expected. With your suggestion as option field, the following is pushed to the