Displaying 20 results from an estimated 3000 matches similar to: "Auto refresh the drop-down"
2006 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things
that is incredibly difficult to search for.
How can I disable an ''Ajax.Autocompleter'' element from working ''on the
fly''? I have a page where I''m using two (I know it''s crazy)
Ajax.Autocompleter elements and once one of them has got a result I
want the other field
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
2006 Jan 06
12
Auto refreshing a page based on select change
Hi all,
I have a select helper form on a web page which contains a list of dates. When
the user selects a date, one of the other forms on the page needs to be updated
based on the newly selected date.
Is there a way to catch this event in Rails? Are we talking Ajax here? Or is
there a simpler way?
Thanks,
Dan
2008 Mar 05
6
Prototype Observe Links (Mouseover)
Hi all,
I''am new to Prototype and after a 2 hours of research I didn''t find a
solution for the following question:
I have the following list:
<ul id="navi">
<li><a href="/about/">Home</a></li>
<li><a href="/about/" class="dropdown"
onmouseover="showSubnavi(this)">About</a>
2010 Mar 16
3
collection_select has_many
hi
i have two models:
GeoRegion & GeoRegionSub
which have a has_many relation to each other.
how can include the has_many relation in the collection_select helper? i
want to have that dropdown where the parent is in black and the children
indented.
<%= collection_select :dl,:parent_id, GeoRegion.all.????, :id, :title %>
thx
--
You received this message because you are subscribed
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying.
In javascript, I''m using the ajax.updater, and it (obviously) writes
back out to a div. I want to then compare what was echoed out into
this div (which came from the php file I listed in ajax.updater) with
a string.
test should equal "SomeString" because that is what is being echoed
out to
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi,
I''m using prototype within ruby on rails.
One limitation I''d like to overcome is the restriction of beeing able to
update just one html elements content using from_remote_tag or
link_to_remote.
AFAICS this is just a restriction of the form_remote_tag/link_to_remote
implementation and it''s underlying Ajax.Updater class. Right?
In theorie there should be no problem,
2012 Dec 13
7
Thin server giving Stack level too deep error
Hi,
I am using thin web server in my rails project. But it gives stack level
too deep error. Couldn''t find any appropriate solution to this.
I have tried updating the ruby but didn''t help.
Regards,
Sumit
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Jun 29
3
Rails double submit -> double post -> duplicate data
Hi,
We are encountering occasions where users post twice or more a
form, basically we have detected two situations:
a) The user push twice enter
b) The user push double click on button "save" or "submit"
We consider that this becomes a problem when creating (because we
duplicate data) and we think that in some context it could become a
security issue
2009 Jun 14
3
Rails I18n
Hi,
I am trying to use i18n in rails. I want the language to be set first
from params[:locale] (probably already in the url) then from the browser
http header and lastly from the default_locale. Everything is fine. Now
the problem starts, when I want to add a dropdown list to allow the user
to change the locale. How do I force the page to reload with the new
Locale? FYI, I tried using .js and
2006 Feb 08
5
debugging 500 Internal Server Error when dispatch.fcgi run?
I''m trying to get my Ruby on Rails application to work under Apache. It
works fine when run as WEBrick ("ruby script/server").
As suggested in
http://www.ocssolutions.com/support/ruby/troubleshooting-ruby-on-rails.php
, I tried running dispatch.fcgi on the command line. When I run it, no
matter where I run it, it outputs:
500 Internal Server Error
Both the #! (shebang)
2019 Aug 07
8
samba-tool PTR with /16 network
Yes, offcourse, the 172.19 is a "bad" example.
I suggest we use the official RFC 1918 zones.
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
And for example 192.168.0.0/24 as extra, or people get confused. ;-)
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland penny via samba
> Verzonden: woensdag 7
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2006 Jan 06
3
image replacement (new Effect.*****) problem
Here''s what I''m trying to do. I have two divs, one holds about 20 small
images of products and the other holds a single large image of one of
the products. I''m trying to use the jazzy "new Effect." way of changing
images but I can''t seem to get it too work. My script is replacing the
image and then making the element disappear. What
2007 Jun 17
1
correlation comparison one more time
I would like ask again,
because I cant find the answer
I have such problem:
My data containing 4 variables (A,B,C,D) and are completed from 4 samples.
Each of matrix is such:
A B C D
A 1 ab ac ad
B ab 1 bc bd
C ac bc 1 cd
D ad bd cd 1
My hypothesis are that
ad is the strongest correlation for A and for D (sign doesn't matter)
bc is
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
I am making an ajax call from js to call a method (assocboxchange) in
my controller (AssociatesController), using XMLHttpRequest. I know
the XMLHttpRequest works fine because I use it in other places with
success. My problem is my URL I am using for this request doesn;t
access the method in my controller which I (think) I am specifying. I
am having it post to /channels/assocboxchange/" with
2012 Sep 12
8
Round off method in 1.8.7
Hi all
i am trying to use round method if have a value 2.08 i want it as 2.1 and
it worked in 1.9.2 but not in 1.8.7 is there any other way of doing it.
USING 1.9.2
1.9.2p320 :001 > 2.08.round(1)
=> 2.1
1.9.2p320 :002 > 2.04.round(1)
=> 2.0
USING 1.8.7
irb(main):001:0> 2.08.round
=> 2
irb(main):002:0> 2.08.round(1)
ArgumentError: wrong number of arguments (1 for
2008 Apr 29
6
Intercepting an onClick file download
Hi,
I''m having some trouble downloading a .csv file from a particular
website. The file isn''t part of a url, you need to click on a link in
order to get the file sent. I don''t know how to get mechanize to
correctly identify that.
Here is the link to the file I''m trying to retrieve:
<td style="vertical-align: bottom; text-align: center;">
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to
send the form data.
<%= submit_tag ''Save'', :class => ''submit'', :onclick =>
"document.getElementById(''save_button'').disabled=true;", :id =>
"save_button" %>
This code sends the form data and a record is created,
2010 Nov 08
1
API Google MAPS
Hello everybody,
I''m working with Version 3 of Google Maps JavaScript API, and I have
the next code:
In a layout of my application:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?