Displaying 20 results from an estimated 2000 matches similar to: "on change of drop down showing a new textfield"
2006 Jun 18
3
on change of drop down a textfield emerging
hi,
i have a situation where i have a list of options from which a user selects
his options if its not in the list he/she selects Others/Not Present and a
new textfield should pop up and the data entered there should be considered
instead of dropdown.
i have done this using javascript/dhtml but i was wondering how this can be
done using pure rails i.e using some of the RoR apis?.
i would
2006 Jun 01
6
real time search results
I am new to ruby and rails and am unsure how to accomplish the
following:
I''d like to have a page where the user enters a value in a form field
and have results stream into a results div on the page. Additionally, I
want to:
- Not limit the result set
- Allow user to get immediate feedback on what they have entered
- Allow user to change field contents as results are appearing
- Have
2006 Jul 21
10
why validation on server side
hi,
i have noticed that the validations in RoR happen at server side
mostly what sites do is using javascript they validate user information
there...
whats the point of doing it at the server side
is it that loading of javascript file in a browser makes a response to
client slow
and validation at server side offsets that....?????
any sugeestions????
is it that i am missing something as
2006 Nov 04
4
live search
hi all,
i have implemented live search using scriptulous and i am getting the list
the problem is that when i select an item from the list white spaces gets
appended in front " item" of the selection in firefox and in opera
front and behind " item "
i printed the value in console and saw it gives "item" but in textbox after
selection whitespaces gets appended
2006 Jul 21
20
Struts vs RoR
hi,
I recently attended one of the ruby meetings that we have in my city.
There one of the speaker said that google,amazon .. are working on RoR
but still the performance of RoR is not at par with J2EE others....
he meant that though google,amazon working o it they will not bring it as
front applications only parts
the reason ruby is slow in comparison to other languages....
and in real time
2006 Nov 04
2
sql query in active record
hi all,
if i want to write a query select * from a,b where a.b_id=b.id in active
record
using joins,condition how can i write that
in docs i found for conditions you do by giving "?" and then the parameter
eg. a.b_id=?
but it takes b.id as string i.e a.b_id=''b.id''
i dont want that
any suggestions
thanks in advance
regards
gaurav
-------------- next
2006 Jun 29
3
stylesheets
hi,
all
i have been playing around with rails for sometime,
i have seen most not all of the rails sites have similar look and feel (good
one)
i want to know how to use the stylesheets provided by the RoR framework if
any
or is it that we have to define on our own from scratch.
basiclly i need information regarding how can i make my view better
looking(the visuals)
Thanks in advance
warm
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and
endate)
<div>
<label for="startdate">Booking Start Date</label><br />
<%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass,
:readonly => "readonly", :maxlength => "25"} ) %>
<%= observe_field("startdate",
2006 Feb 03
3
overloading dragdrop.js
Hi everybody-
First time poster, please be gentle.
I have written a little rails app where you can create
divs and move them around via Thomas'' wonderful
dragdrop.js. I would like to be able to fire an AJAX
event to update the top and left of the dragged object
upon release. I see many AJAX link_to_remote and
observe_field.
What is the proper way to observe that the position
(not
2006 May 11
2
Rendering
I want to do something like this:
<%= link_to "Attack!", :action => "attack", :id => session[:user].id,
:op_id => users.id, :update => "attk-div",:postion => "top" %>
But, What should I user link_to will redirect on click so what action do
I do?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 08
2
(no subject)
Can anyone point me in the direction of a good tutorial on visual
effects in rails? I''ve searched and I''ve asked but I can''t seem to find
any good documentation on ajax visual effects, combining of effects, or
queued effects.
Charlie Bowman
http://www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 25
2
web services client problem
hi all,
i have been trying to study web services using rails so far i succesful
with server implementations in REST,SOAP,XML-RPC but the client code is
troubling me.
i have done most of the coding as per the rails book agile web development
i.e implementations of the servers and when i invoke them they give result
but when i try to acces them through another controller it gives time out
error
2006 Jul 30
8
Method_missing from Ruby for Rails book
I''m having a problem getting this example from the book to work:
class Cookbook
attr_accessor :title, :author
def initialize
@recipes = []
end
def method_missing(m, *args, &block)
@recipes.send(m, *args, &block)
end
end
cb = Cookbook.new
cb << recipe_for_cake
cb << recipe_for_chicken
beef_dishes = cb.find_all {|recipes| recipe.main_ingredient ==
2006 May 22
6
how HTML_Option works?
Hi all,
all the form helpers can take a serie for options but I cant find any
documentation about them. Any one can point me toward one?
Or at least tell me how I can for example add a function that would be
call with the onblur event from a input box?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2009 Aug 13
10
default value if textfield is empty
Hey all,
im not sure where to set a default value if a textfield is empty?
For now i do it in the controller, and check if the submitted parameter
is blank.
But this seems not to be the best solution...
Thanks for your help!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 22
7
AJAX Support and Rails
Hello there,
This is my first post to the Ruby group. I am also new to the language
and the Rails framework, it is an amazing place to be now. Coming from
a PHP/ASP background I am glad something like Rails finally made it
into web development.
Now to my question. I have been readying a lot about AJAX, and I
wondered what kind of support is built-in into Rails for it. I read
somewhere that
2006 Feb 09
0
pass values with autocomplete textfield
Hi all,
I have a simple app that has an autocomplete textfield in my view. I now want
to be able to pass the value of a select to my controller when my
auto_complete_for_location_name is called. My goal is to be able to filter the
autocomplete results by the value of the select.
My view code looks like this:
<%= form_remote_tag :update => "search_results",
:url => {
2005 Dec 29
0
textfield helper - formatting the displayed text
Is there a way to have a textfield helper format the displayed field? I''d
like to invoke the number_to_currency method on the number that get''s
displayed, but I can''t figure out how to do it. I tried:
<%= text_field ''product'', number_to_currency(''price'') %> and that didn''t
seem to work...
Will I just have to use
2008 May 08
1
Textfields
Hey everybody,
I've just merged my TextField hacking into master. It's basically a
big refactoring and test addition thing, to get signals and variables
report something sane. It's not complete yet, but I wanted to have it
in, so we don't get too many merge conflicts when Pekka fixes the HTML
parsing bugs. Here's a partial list of what's missing so far:
- vertical
2008 Jun 02
0
Ajax.InPlaceEditor <br>-Tags in a textfield
Hey,
i''ve got a problem using the InPlaceEditor as a textarea with the
current version of Script.aculo.us and prototype. I have some formated
text (using <br>) in the div.
After i updated scriptaculous today it doesn''t convert the <br> to \n
for correct formating in the textarea if i click into for editing.
Instead of this i can see the <br>-tags in the