can you show the rjs code you use, and perhaps some more of the surrounding
html.
TIA
On Tue, Dec 1, 2009 at 5:59 PM, Chris Habgood chabg...@gmail.com wrote:
top posting?
On Tue, Dec 1, 2009 at 10:57 AM, Colin Law clan...@googlemail.com wrote:
2009/12/1 Chris Habgood chabg...@gmail.com:
RJS:
page[:name_customer...@company.c_id}].replace_html @cus
Most of the page :
%= f.label 'me' %
%= f.text_field_with_auto_complete :name, {:child_index = @company.id},
:with = 'cus[id]=' + #...@company.id} + 'mopid=' + #...@mop.id} +
'site[name]=' + element.value,
:after_update_element =
I guess @cus is a customer name then try this rjs code:
page[:name_customer...@company.c_id}].value = @cus
On Wed, Dec 2, 2009 at 6:33 PM, Chris Habgood chabg...@gmail.com wrote:
RJS:
page[:name_customer...@company.c_id}].replace_html @cus
Most of the page :
%= f.label 'me' %
%=
Thanks that worked, got my head up my butt again, DOH.
On Wed, Dec 2, 2009 at 1:48 PM, C+++ christiaan.vandenp...@gmail.comwrote:
I guess @cus is a customer name then try this rjs code:
page[:name_customer...@company.c_id}].value = @cus
On Wed, Dec 2, 2009 at 6:33 PM, Chris Habgood
Shouldn't it be more like this:
input id=name_customer_5 type=text size=6 name=name[customer_5]
value=NF063
On Mon, Nov 30, 2009 at 10:30 PM, Chris Habgood chabg...@gmail.com wrote:
ok this code in the view:
%= text_field :name,customer...@company.id},:size = '6' %
I do an rjs.replace_html
It's still pretty unclear exactly what you are trying to achieve...
Personally I do not use RJS all that much. It tends to get messy.
On Tue, Dec 1, 2009 at 3:24 PM, Johan De Klerk johandk...@gmail.com wrote:
Shouldn't it be more like this:
input id=name_customer_5 type=text size=6
Yes I know that is why I am here.
Is there something incorrect about this code?
%= text_field :name,customer...@company.id},:size = '6' %
The html output is below in firebug.
input id=name_customer_5 type=text size=6 name=name
[customer_5]
input/
NF063
/input
On Tue, Dec 1, 2009 at 7:24
2009/12/1 Chris Habgood chabg...@gmail.com:
Yes I know that is why I am here.
You know what? By top posting we don't know what you are referring to.
Colin
Is there something incorrect about this code?
%= text_field :name,customer...@company.id},:size = '6' %
The html output is below in
top posting?
On Tue, Dec 1, 2009 at 10:57 AM, Colin Law clan...@googlemail.com wrote:
2009/12/1 Chris Habgood chabg...@gmail.com:
Yes I know that is why I am here.
You know what? By top posting we don't know what you are referring to.
Colin
Is there something incorrect about this code?
anybody?
On Nov 29, 2:11 pm, Me chabg...@gmail.com wrote:
This is what firebug is showing for the text_field:
input id=name_customer_5 type=text size=6 name=name
[customer_5]
input/
NF063
/input
Code:
%= text_field :name,customer...@company.id},:size = '6' %
Why is there a /input.
2009/11/30 Me chabg...@gmail.com:
anybody?
On Nov 29, 2:11 pm, Me chabg...@gmail.com wrote:
This is what firebug is showing for the text_field:
input id=name_customer_5 type=text size=6 name=name
[customer_5]
input/
NF063
/input
Code:
%= text_field :name,customer...@company.id},:size
ok this code in the view:
%= text_field :name,customer...@company.id},:size = '6' %
I do an rjs.replace_html on the div and I get nothing in the text field.
When I go to firebug I see this:
input id=name_customer_5 type=text size=6 name=name
[customer_5]
input/
NF063
/input
As you can see
12 matches
Mail list logo