Re: [Rails-spinoffs] [prototype] how i send Dynamic form field values??

2006-03-09 Thread Todd Ross
On 3/9/06, Renso Vargas <[EMAIL PROTECTED]> wrote: > with prototype i fill the dynamicFields DIV with and > tags, but when i submit the form the values of dynamic fields are not send. I'd start by making sure that all of the fields you're adding dynamically, that are meant to be submitted to a

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Jeremy Kitchen
On Thursday 09 March 2006 08:58, Ben Anderson wrote: > Hi, > Is it possible to submit my form (or part of my form) with an ajax > request? I had been using dojo to do this, but having just read up on > the prototype library, I think I'd rather use prototype. The one > thing I don't see (maybe I'm

RE: [Rails-spinoffs] extending an existing DOM object in aprototypeway

2006-03-09 Thread Ryan Gahl
..lol... and I screwed up the option... one more time... var myActiveSpanBase = new ActiveSpan({color: "red"}); Object.extend($('someSpan'), myActiveSpanBase); $('someSpan').setup(); Or, more concisely... Object.extend($('someSpan'), new ActiveSpan({color: "blue"}); $('someSpan').setup(); --

RE: [Rails-spinoffs] extending an existing DOM object in a prototypeway

2006-03-09 Thread Ryan Gahl
Gosh darn Outlook seems to have stripped some newlines from my response... last few lines should read... var myActiveSpanBase = new ActiveSpan({"red"}); Object.extend($('someSpan'), myActiveSpanBase); $('someSpan').setup(); Or, more concisely... Object.extend($('someSpan'), new ActiveSpan({"bl

RE: [Rails-spinoffs] extending an existing DOM object in a prototype way

2006-03-09 Thread Ryan Gahl
This is a good (and common) practice. A good rule I try to stick to is, if more than 1 element needs some specific behaviors/functionality, make a separate class for that, and extend the element with it when needed. There are a couple things to keep in mind. One is, you almost always will need to

Re: [Rails-spinoffs] extending an existing DOM object in a prototype way

2006-03-09 Thread Jeremy Kitchen
On Thursday 09 March 2006 13:12, Jeremy Kitchen wrote: > var ActiveSpan = Class.create(); > ActiveSpan.prototype = { > initalize: function(span) { > Object.extend(span, this); actually, that would be $(span), but you get the idea ;) (I hope!) -Jeremy -- Jeremy Kitchen ++ [EM

[Rails-spinoffs] extending an existing DOM object in a prototype way

2006-03-09 Thread Jeremy Kitchen
I want to take an existing DOM object and extend it with some functionality. I know there's a way to do this with prototype. Unfortunately, I'm not entirely sure how to do this. Basically, I want to take an existing DOM object and turn it into a 'widget' by adding some functionality. say we have

Re: [Rails-spinoffs] Comet support?

2006-03-09 Thread Kenneth Lee
Hmm.. does the AWS allow you to flush the output buffer to the HTTP client from time to time? That would help for the "forever iframe" type of comet implementations. I quickly glanced at the docs and don't see anything that lets you access the lower level guts of the HTTP response. Of course, Ap

Re: [Rails-spinoffs] [prototype] how i send Dynamic form field values??

2006-03-09 Thread Deco Rior
I think that the input values need "names" Also check that you did not introduce a On Mar 9, 2006, at 11:31 AM, Robin Haswell wrote: I've definitely made this work before, I think you should inspect your application closer for bugs. Got a demo? -Rob Renso Vargas wrote: I want to know how

Re: [Rails-spinoffs] [prototype] how i send Dynamic form field values??

2006-03-09 Thread Robin Haswell
I've definitely made this work before, I think you should inspect your application closer for bugs. Got a demo? -Rob Renso Vargas wrote: I want to know how can i send the values of form fields build dynamic with prototype. i have the form as follow: with prototype i fill the dynamicFie

Re: [Rails-spinoffs] Comet support?

2006-03-09 Thread Robin Haswell
I think he's talking about HTTP/1.1 persistent connections with multiple parts, which is about as portable as you get. I don't think the client can send any more data to the server after the initial request though. My understanding of this method is that it uses something like multipart MIME t

[Rails-spinoffs] [prototype] how i send Dynamic form field values??

2006-03-09 Thread Renso Vargas
I want to know how can i send the values of form fields build dynamic with prototype. i have the form as follow: with prototype i fill the dynamicFields DIV with and tags, but when i submit the form the values of dynamic fields are not send. Renso Vargas

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Ben Anderson
oh, I didn't see the Form object. Yes, that'll do it. Thanks Siegfried! On 3/9/06, Siegfried Puchbauer <[EMAIL PROTECTED]> wrote: > you have to do smth like this > > $('myform').onsubmit=function(evt) { > > var form = $('myform'); > > new Ajax.Request(form.action, { > method: form.method, > p

RE: [Rails-spinoffs] Comet support?

2006-03-09 Thread Ryan Gahl
If you're thinking about going down that route, I'd say using a Java applet would be more useful (and slightly more portable). I say more useful because you'd then also have access to the rest of the JRE libraries (threading, etc..). Scripting the DOM from an applet (and vice versa) is quite easy.

Re: [Rails-spinoffs] Comet support?

2006-03-09 Thread Richard Thomas
You could use a small flash object on the page to do the communication to a socket server. Not sure about how easy it is to pass stuff between flash and javascript thought. Richard Thomas - CEO Cyberlot Technologies Group Inc. 507.398.4124 - Voice Roberto Saccon wrote: all I know is that th

Re: [Rails-spinoffs] Comet support?

2006-03-09 Thread Roberto Saccon
all I know is that there is a rails project which implements something Comet-like (with an additional server for the persistent connections). What I have read somewhere is that Campfire does polling, but not sure about that.  On 3/9/06, Jim Geurts <[EMAIL PROTECTED]> wrote: Just out of curiosity,

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Siegfried Puchbauer
you have to do smth like this$('myform'). { var form = $('myform'); new Ajax.Request(form.action, {method: form.method, parameters: Form.serialize(form),onSuccess: updateFunction });Event.stop(evt); return false;} have a look at http://www.sergiopereira.com/articles/prototype.js.html for the whole

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Robin Haswell
Event.observe(form, "submit", function(ev) { el = Event.element(ev); data = Form.serialize(el); new Ajax.Request(el.getAttribute("action"), { method:"post", postBody:data }); Event.stop(ev); }); Something like that. -Rob Ben Anderson wrote: >Hi, >Is it possible

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Nicolas Terray
On 3/9/06, Ben Anderson <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to submit my form (or part of my form) with an ajax > request? I had been using dojo to do this, but having just read up on > the prototype library, I think I'd rather use prototype. The one > thing I don't see (maybe I'm j

[Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Ben Anderson
Hi, Is it possible to submit my form (or part of my form) with an ajax request? I had been using dojo to do this, but having just read up on the prototype library, I think I'd rather use prototype. The one thing I don't see (maybe I'm just missing it) is the ability to submit my form (actually ju

[Rails-spinoffs] Comet support?

2006-03-09 Thread Jim Geurts
Just out of curiosity, is there a plan to support Comet (name coined by the dojo guys) w/ prototype?  Comet represents persisting an http connection for low latency data operations.  It also represents a nice alternative to polling. Jim ___ Rails-spinoffs

Re: [Rails-spinoffs] maintaining application state/urls

2006-03-09 Thread Sam Foster
Also Backbase has a nice working implementation of this. Their demos use it.. pretty slick. E.g. http://www.backbase.com/demos/RSS/#aid=148504[1] Sam Bill Moseley wrote: Here's another example with demo I have bookmarked. http://www.robertnyman.com/ask/ _

[Rails-spinoffs] [FEATURE] Effect.Accordion

2006-03-09 Thread Robin Haswell
Hey guys Attached is probably the final version of my Effect.Accordion. I don't know how it compares to the previous Effect.Accoridon submitted. It still flickers a bit, however there is a hack which fixes the container's height, so it doesn't flicker the rest of the elements on the page. It's al

Re: [Rails-spinoffs] Runtime Error

2006-03-09 Thread Todd Ross
On 3/9/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > If "record_id" refers to any sort of TABLE, TR, TD and so on element, > this won't work in IE. You need to use table-specific DOM > manipulation commands > in that case. I believe you /can/ use innerHTML on a TD/TH in IE. Another problematic el

Re: [Rails-spinoffs] Runtime Error

2006-03-09 Thread Ignacio Sandejas
Thomas, You got it right. It refers to a . Looks like I have some rewriting to do! Thomas Fuchs wrote: Guess: If "record_id" refers to any sort of TABLE, TR, TD and so on element, this won't work in IE. You need to use table-specific DOM manipulation commands in that case. -Thomas Am 09

Re: [Rails-spinoffs] Runtime Error

2006-03-09 Thread Thomas Fuchs
Guess: If "record_id" refers to any sort of TABLE, TR, TD and so on element, this won't work in IE. You need to use table-specific DOM manipulation commands in that case. -Thomas Am 09.03.2006 um 05:17 schrieb Ignacio Sandejas: Hi all, Can anyone tell me why this line of code works in FF