Yes, you can use XML, which can be hundreds of times slower on the client to parse, or you can make your own customer structured "string blob" than you then parse on the client. Alternately you can verbosely declare JavaScript arrays from strings built up in your ASP code (person = [];person[0] = "tom" etc....)
JSON, because it is a native JavaScript object (does not need to be parsed) is by far the best method for getting data into the client. You are wise to befriend this data format. On Feb 2, 6:38 pm, Fab <fabrice.blonco...@gmail.com> wrote: > Hi, I am a one week old newcomer to AJAX. My intentions are to attempt > to pass a recordset to my page in order to either use it for filling a > drop-down list or other elements of my page or even display it through > a table... That said, my question is, is there a way to be able to > pass the recordset back to my original asp page in order to decide how > to treat it from there? > > idea of design: > default.asp: asp page which contains my html and some asp functions. > back-end.asp: asp page which contains my connection to the DB and > obtains the records returned by which ever stored procedure is called. > > So to try to be as clear as possible, I obtain the recordset in back- > end.asp but want to use it, however it may be, inside of > default.asp... > > Am I day dreaming or is this possible? > So far everything i found seems to point that i have to deal with the > recordset within my "back-end.asp" page and finally send it back... > most of the time it was using JSON... is there any other options then > JSON? > > Thanks in advance for your help! > > Fab -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.