On Oct 10, 6:04 pm, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> Thanks a tonn man... it works sweet. So, :camp, :id in the partial
> becomes 'camp_id' and represents the combo box???
> --
> Posted viahttp://www.ruby-forum.com/.
Yeah, select :camp, :id generates a select tag with an id of "camp_id"
an
Erol Fornoles wrote:
> On Oct 10, 1:54�pm, Jay Pangmi <[EMAIL PROTECTED]>
> wrote:
>> Thanks Erol Fornoles for the answer.. but I just couldn't make any use
>> of it coz it doen't work and I'm using <%=javascript_include_tag
>> "prototype.js"%>. To make clear what I'm doing here is my code:
>
> T
On Oct 10, 1:54 pm, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> Thanks Erol Fornoles for the answer.. but I just couldn't make any use
> of it coz it doen't work and I'm using <%=javascript_include_tag
> "prototype.js"%>. To make clear what I'm doing here is my code:
Try this instead:
<%= submit_tag
Erol Fornoles wrote:
> On Oct 10, 1:54�pm, Jay Pangmi <[EMAIL PROTECTED]>
> wrote:
>>
>> � Campgrounds
>> � <%=select "camp", "id", @resultset %>
>>
>
> Where is the partial rendered? And when should it be rendered? I don't
> see it in your main view.
The file below is the partial which gets r
On Oct 10, 1:54 pm, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
>
> Campgrounds
> <%=select "camp", "id", @resultset %>
>
Where is the partial rendered? And when should it be rendered? I don't
see it in your main view.
--~--~-~--~~~---~--~~
You received this messag
Erol Fornoles wrote:
> <%= submit_tag "Next",
> :onclick => "if($('camp').length - 1 > $('camp').selectedIndex) $
> ('camp').selectedIndex++; return false;" %>
Thanks Erol Fornoles for the answer.. but I just couldn't make any use
of it coz it doen't work and I'm using <%=javascript_include_tag
"
On Oct 10, 12:16 pm, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> Hi, guys thanks for all the help. Here's how I have created the combo
> box:
>
> <%=select :camp, :id, @campsites_list%>
>
> So, how would I reference it and its a partial and its under
> _campsites.rhtml (partial file).
> Thanks.
>
> --
Hi, guys thanks for all the help. Here's how I have created the combo
box:
<%=select :camp, :id, @campsites_list%>
So, how would I reference it and its a partial and its under
_campsites.rhtml (partial file).
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~
Jay Pangmi wrote:
> Hi, I was wondering if anyone can help me with this as I just don't seem
> to figure out how I can refer to a combo box and change its selected
> value to another with a button click.
> Suppose a cambo box has values '1', '2', and '3' and I have a button
> "Next" and that curre
Hi Jay,
Jay Pangmi wrote:
>
> Hi, I was wondering if anyone can help me with this as I just don't seem
> to figure out how I can refer to a combo box and change its selected
> value to another with a button click.
> Suppose a cambo box has values '1', '2', and '3' and I have a button
> "Next" and
10 matches
Mail list logo