Displaying 18 results from an estimated 18 matches for "afterupdateel".
Did you mean:
afterupdate
2005 Dec 08
4
AutoCompleter afterUpdateElement
Any ideas how I can submit say, a person ID instead of the person''s name
on an autocompleter input field? Surely this is a common need.
Thanks!
Daniel
2006 Apr 02
13
autocompletion: hooking ''afterUpdateElement'' in Rails
Hi everyone,
I need to trigger a Rails action after the autocompletion is completed
(when the user has selected an option).
From the scriptaculous doc, I figured out ''afterUpdateElement'' is the
place to be but I wonder if/how and where I can hook my javascript code
to this event in Rails code (I''d like to keep using the helper, if
possible)?
I tried passing many variations of
:after_update_element=>
"alert(''after_u...
2007 Sep 07
0
Autocomplete Questions (Umlaut,AfterUpdateElement)
...9;t work. Is there a way to edit .js files, and where. ex: if
i use the general AJAX.Request with "postbody: ''name''+escape(var)" it
will work cause of the escape function, but then i had to write the
whole autocomplete function by myself.
the second is, the option "AfterUpdateElement". this option
automatically send the vars "text" and "li" to the called function. Is
there a way to send one or more vars to the function like "number".
Because i have a side with 8 livesearchs, and if possible i didnt want
make for all 8 searches a seperate...
2006 Feb 16
2
Autocompleter question
...the "informal" class, but how
can I associate the contact''s ID with the LI item and have that value be
recorded into a hidden field when selected?
Is there an easier way than just putting a hidden, non-standard
"contactId" attribute on my LI tags and then using the afterUpdateElement
option?
Thanks in advance,
Joe
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2005 Sep 26
1
[Fwd: [Rails] Re: Autocomplete - setting a second value?]
...auto_complete" id="supplier_name_auto_complete"/>
<script type="text/javascript">
new Ajax.Autocompleter(''supplier_name'', ''supplier_name_auto_complete'',
''/products/auto_complete_for_supplier_name'',
{afterUpdateElement: function(element, selectedElement) {
$(''product_supplier_id'').value =
selectedElement.id.substring(1);}});</script>
app/views/products/auto_complete_for_supplier_name.rhtml:
<ul>
<%= render :partial => ''supplier'', :collection =>...
2005 Sep 22
6
Autocomplete - setting a second value?
I''m using the autocomplete function, and need a way to grab a second
value from the ajax request... an example would probably speak better:
This is my HTML:
<input name="CustomerName" id="CustomerName" type="text" />
<div id="CustomerList"></div>
<input name="CustomerID" id="CustomerID"
2006 Jun 21
11
scriptaculous question
Hello everybody.
I''m wondering if there is away with scriptaculous to update multiple form
fields with data after finishing an autocomplete request.
Heres an example.
Joe BlowSchmoe fills in his name and starts to type in the customer number,
he selects the approprate customer number from autocomplete list, and bam
the address associated with the customer number is populated into the
2006 Apr 01
1
piggybacking an action on an autocompleted field
Hi everybody,
I''d like to add a custom action to be triggered after/when an
autocompleted field has been/is beeing updated by the autocompletion
process.
I tried the obvious - a field observer -, but it doesn''t work (see code
below). I know I could write the autocompletion code myself, but I
wonder if there is a simpler/more elegant way?
Any idea?
TIA
Alain
The
2007 Mar 13
0
Ajax.Autocompleter with paging
hi,
i''d like to create an Ajax.Autocompleter with paging...
my basic idea is to use the
afterUpdateElement
to check if the selected item has a attribute telling it to
make a new ajax call...
my problem is, that i have no clue how to trigger the
getUpdatedChoices
of my ajax.autocompleter from within the afterUpdateElement function,
nor how to set an additional paging para...
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all,
Is there a known bug with Ajax.Updater not working in
IE6? I''m having
trouble with a Autocompleter control that calls a
function that contains
an Ajax.Updater as an AfterUpdateElement callback. It
works fine in
firefox, but I don''t think Ajax.Updater gets called
under IE.
http://pastebin.com/563889
1.
function updater(input, item) {
2.
var item_data =
item.getElementsByTagName(''span'')[0];
3.
var pars = '&...
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
...[Rails-spinoffs] [Prototype] onSuccess
Event and Ajax.Updater bugin
> IE
>
> Hi all,
>
> Is there a known bug with Ajax.Updater not working
in
> IE6? I''m having
> trouble with a Autocompleter control that calls a
> function that contains
> an Ajax.Updater as an AfterUpdateElement callback.
It
> works fine in
> firefox, but I don''t think Ajax.Updater gets called
> under IE.
>
> http://pastebin.com/563889
>
> 1.
> function updater(input, item) {
> 2.
> var item_data =
> item.getElementsByTagName(''...
2006 Mar 29
0
auto_complete_on_select don''t work correctly
...uot;comune" class="autocomplete" id="autocomplete"
size="20" type="text" onkeyup="new Ajax.Autocompleter(''autocomplete'',
''autocomplete_choices'', ''list.php'',
{minChars: 2,afterUpdateElement:
auto_complete_on_select} );"/>
<br/> lati: <input id="inputlat" type="text" value="-" />
<br/> long: <input id="inputlong" type="text" value="-" />
Thanks in advance
max
--
Poste...
2006 Jan 10
0
Changes to Autocomplete?
..."overflow:auto"></div>
<script type="text/javascript">
new Ajax.Autocompleter(
'clientSearch',
'divAutoCompleteList',
'/path/to/script.aspx?Call=ClientSearch',
{
paramName: 'search',
minChars: 2,
afterUpdateElement: handleClientSearchSelect
}
);
</script>
__________________________________________________________
--
Cam McVey
cam.mcvey@gmail.com
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http...
2007 Feb 17
2
Quick question regarding updateElement
How do you pass the selected value to the function?
new Ajax.Autocompleter(''text'', ''auto'', ''file'',
{paramName:''autocomplete'', updateElement:sayhi});
function sayhi(???){
alert(???);
}
I''ve tried element and element.value but that didn''t work.
--~--~---------~--~----~------------~-------~--~----~
You
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
2005 Dec 06
9
script.aculo.us AutoComplete Woes
I was wondering if someone could help me with an autocomplete problem. I
have the autocomplete div receiving a <UL> that looks like:
<ul>
<li>Name<br>Email</li>
</ul>
When the user hits enter and the value is filled into the text field
it''s putting both the name and email in the field. I just want the name.
Funny this works in Firefox but not IE. I
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...var bounds = this.getTokenBounds();
if (bounds[0] != -1) {
var newValue = this.element.value.substr(0, bounds[0]);
@@ -257,7 +257,7 @@ Autocompleter.Base = Class.create({
}
this.oldElementValue = this.element.value;
this.element.focus();
-
+
if (this.options.afterUpdateElement)
this.options.afterUpdateElement(this.element, selectedElement);
},
@@ -269,20 +269,20 @@ Autocompleter.Base = Class.create({
Element.cleanWhitespace(this.update.down());
if(this.update.firstChild && this.update.down().childNodes) {
- this.entryCount =...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server