[Proto-Scripty] Re: Encoding parameters in Ajax Request
Hey, I'll try that! Didn't see the 1.7 announcement. -- 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.
[Proto-Scripty] Prototype ajax based grid control
Hi All! I need to implement an ajax based edit in place grid control for a management console (admin side of a site). Essentially, each row will have fields formatted as: STRING, STRING, BOOL, BOOL, BOOL, DATE, STRING and admins could change any or all of these fields. Any suggestions on an existing grid control thats easy to use? Thanks! Phil -- 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.
Re: [Proto-Scripty] Prototype ajax based grid control
I use tablekit for this sort of thing. Look on Scripteka, too -- I haven't needed this in over a year, so there may be something newer and shinier. Walter On Jan 3, 2011, at 1:19 PM, Phil Petree wrote: Hi All! I need to implement an ajax based edit in place grid control for a management console (admin side of a site). Essentially, each row will have fields formatted as: STRING, STRING, BOOL, BOOL, BOOL, DATE, STRING and admins could change any or all of these fields. Any suggestions on an existing grid control thats easy to use? Thanks! Phil -- 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 prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- 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.
Re: [Proto-Scripty] Prototype ajax based grid control
Hi Phil Please review my project I hope you find it useful http://pabloaravena.info/mytablegrid Pablo On Mon, Jan 3, 2011 at 3:19 PM, Phil Petree phil.pet...@gmail.com wrote: Hi All! I need to implement an ajax based edit in place grid control for a management console (admin side of a site). Essentially, each row will have fields formatted as: STRING, STRING, BOOL, BOOL, BOOL, DATE, STRING and admins could change any or all of these fields. Any suggestions on an existing grid control thats easy to use? Thanks! Phil -- 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. -- 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.
[Proto-Scripty] Ajax - multiple messages on the same connection?
Hi, We are using Prototype Ajax on the client side, consuming messages from a Comet server. We were wondering whether it's possible to keep a connection alive, and pass multiple messages on the same connection (for Server push)? It's something in the lines of: - Client opens an Ajax.request - The server sends a reply message; the client consumes it (onsuccess) - Now usually, the HTTP connection would be closed; if the client expects more messages, it should open a new request and a new connection. - But we'd like to keep the connection alive for a while (on both client and server), so that if the server discovers new data (say 5 minutes later) it can push a new message on the same connection, and hopefully trigger another callback on the client ('onsuccess'). Of course this requires a way of telling when 1 message ends, and another begins... we were hoping this can be done based on some separator (perhaps multipart format?), or content-length. Is this supported on Prototype Ajax? Thanks :) -- 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.
[Proto-Scripty] Re: Encoding parameters in Ajax Request
OK, testing 1.7 and am finding that my encoded parameter is being decoded with decodeURIComponent in toQueryParms: function toQueryParams(separator) { var match = this.strip().match(/([^?#]*)(#.*)?$/); if (!match) return { }; return match[1].split(separator || '').inject({ }, function(hash, pair) { if ((pair = pair.split('='))[0]) { var key = decodeURIComponent(pair.shift()), value = pair.length 1 ? pair.join('=') : pair[0]; if (value != undefined) value = decodeURIComponent(value); if (key in hash) { if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; hash[key].push(value); } else hash[key] = value; } return hash; }); } So, my original value:Sr 16+ Encoded as: Sr+16%2b Is decoded to: Sr+16+ And this is wrong. Any ideas, am I doing something wrong do you suppose? Karl.. -- 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.
[Proto-Scripty] Re: Encoding parameters in Ajax Request
Follow up: walking through the code, where my value is decoded to: Sr+16+, if I update (fix) the value back to Sr+16%2b and then send the request through, when I look at the Post values in the Console the value becomes: Sr 16+. I'm not sure when the value becomes this, and this doesn't work, it has to be Sr+16%2b. Any ideas? Karl.. -- 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.