Hi, > Can anyone confirm? Is this an error in my understanding of the > documentation, or a bug?
I think the docs are pretty unclear. They say "Depending of whether or not the optional parameter getHash evaluates to true, the result is either an object of the form {name: "johnny", color: "blue"} or a string of the form "name=johnny&color=blue", suitable for parameters in an Ajax request." So although the parameter is "getHash", it's not a Hash object in the Prototype sense. It's just an object, which (because this is JavaScript) is a hash. Looking at the code bears this out. FWIW, IMHO, it's a documentation issue. -- T.J. Crowder tj / crowder software / com On Oct 27, 8:36 pm, Walter Lee Davis <[EMAIL PROTECTED]> wrote: > I have been working on a client-side search engine today (to go on a > CD-ROM) and ran into the following issue in 1.6.0.3: > > var query = Form.serializeElements($('search').getInputs(),true); > alert(query.inspect()) -> error, not a function > alert($H(query).inspect()) -> works > > Can anyone confirm? Is this an error in my understanding of the > documentation, or a bug? > > Thanks in advance, > > Walter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---