Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Alex Duffield
Wonderful!!  Now I owe you a beer to! Thanks :-) __ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com  On 5-Aug-06, at 10:43 AM, Eric Anderson wrote:Alex Duffield wrote: Eric, thanks for the answ

[Rails-spinoffs] Re: setting a select box (in IE)

2006-08-05 Thread Eric Anderson
Alex Duffield wrote: I use $('b_country').value = $F('c_country'); new Effect.Highlight($('b_country')); This works great on everything on Firefox, but fails on the select box in IE. Perhaps: $$('#b_country option[value='+$F('c_country')+']')[0].selected = true; The above code is just of

[Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Eric Anderson
Alex Duffield wrote: Eric, thanks for the answer. I was hoping to be able to get the options (parameters in particular) that where used in the origian request. Oh well. Ill find another solution. H I guess I was not very clear. The following statement was the primary answer to your

Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Alex Duffield
cheers! I owe you a beer. __ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com  On 5-Aug-06, at 9:37 AM, Michael Peters wrote:Alex Duffield wrote: That looks like it will work.. or I could just p

Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Michael Peters
Alex Duffield wrote: > That looks like it will work.. > > or I could just pass the prams on to my complete function.. NO? > > onComplete: function(response) { > yourOnComplete(response,prams); > } Exactly. That's using the closure. -- Michael Peters Developer Plus Three, LP ___

Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Alex Duffield
That looks like it will work.. or I could just pass the prams on to my complete function.. NO?onComplete: function(response) {    yourOnComplete(response,prams);} __ Alex Duffield . Principal . InControl Solutions . http://www.inco

Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Michael Peters
Alex Duffield wrote: > Eric, thanks for the answer. I was hoping to be able to get the options > (parameters in particular) that where used in the origian request. Oh > well. Ill find another solution. You could just use a closure: new Ajax.Request( url, { parameters: params, ...

Re: [Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Alex Duffield
Eric, thanks for the answer. I was hoping to be able to get the options (parameters in particular)  that where used in the origian request. Oh well. Ill find another solution.  __ Alex Duffield . Principal . InControl Solutions . h

[Rails-spinoffs] setting a select box (in IE)

2006-08-05 Thread Alex Duffield
I am working on a Form, where there is customer and billing info, In a lot of cases, these would be the same, so I have a "Copy from above" button that copies the customer info into the billing info fields. I use  $('b_country').value = $F('c_country'); new Effect.Highlight($('b_country'));This wor

[Rails-spinoffs] Re: onComplete: handleSuccess - What gets passed?

2006-08-05 Thread Eric Anderson
Alex Duffield wrote: I am curious what gets passed back from an completed Ajax.Request call? All of the Ajax.Request event handlers receive two arguments. The first is the XMLHttpRequest object used to make the Ajax request. This is often referred to as the transport in the Prototype library.