Displaying 20 results from an estimated 20 matches for "updateelement".
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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To...
2008 Aug 25
1
prototype.js Ajax is slow
...se);
request.send(null);
document.getElementById(''responseTxt'').innerHTML =
request.responseText;
}
</script>
<script src="/javascripts/prototype.js" type="text/javascript">
</script>
<p><a href="#" onclick="updateElement()">Update element </a></p>
<p id="response"></p>
<script type="text/javascript">
function updateElement() {
new Ajax.Request(''/jstest/server_response'', { onSuccess: function
(request) {
$(''response'...
2005 Aug 15
5
Customized Autocompletion
In the customized autocomplete demo, how does it know what content to
use as the value of the autocomplete?
The returned UL has the name, email address and an image. Yet only the
name is used.
How does it do this? I''ve been trying to get something similar going all
morning with little success.
Also, what does :skip_style=>true do? I couldn''t seem to find a mention
of it
2005 Aug 23
0
[script.aculo.us][Patch] Autocompleter.selectEntry()
I made a small patch to controls.js. I moved the line
this.element.focus()
from the end of selectEntry() to the end of updateElement(). The
rationale is that if the user uses the options hash to override
updateElement, he/she can choose which element to focus next, instead
of being forced to the default. You can see an example on the wiki
page (still under construction)
http://wiki.rubyonrails.com/rails/show/
HowToUs...
2005 Aug 11
7
script.aculo.us V1.5_pre1 released
...ely on any stuff in util.js for now)
* Allow to choose the parameter name for Ajax.Autocompleter [Cameron
Braid]
* Added unittest.js to distribution
* Changed default revert duration for Draggables to distance-
dependent algorithm [suggested by San]
* Fix double unescaping in Autocompleter
* Add updateElement option to Autocompleter [Rob Sharp]
* Added Ajax.InPlaceEditor to controls.js [Jon Tirsen]
* Fixes a bug with Droppables not recognizing a drop if no hoverclass
is given [thanks drewie]
* Changed Effect.Opacity to better handle 100% opacity
* Added ghosting option to Draggables and Sortables
* Ad...
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
2005 Sep 15
4
Scrolling Tables/Divs?
Is anyone working on a scrolling table or div such as the openrico
livegrid demo? I''m looking to develop (much like smashbox''s scrolling
images) a collection of thumbnails that you can scroll horizontally.
I''ve got a non-prototype.js example but I wanted to check to see if
anyone was closer than I to this.
BTW, I will be finishing up my slider code shortly and
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 Mar 08
0
Autocompletion for <SELECT>
...e to find
within the distribution (sigh!!). The Ticket was closed (resolution
set to worksforme) - does this control exist?
If not, I can put one together - can anyone suggest how this might be
constructed? - select box populated via an ajax call? Could I use an
Ajax.Autocompleter with an updateElement to load the data? (will the
autocompleter watch a select?.
Thanx for your thoughts.
Congrats Mr. Fuchs(and contributors) on a great lib.
Jod
2006 Jan 10
0
Customizing autocomplete to update more than one value upon vaule select
...de then the values for the
product description, buy price, and unit weight should be updated
automatically.
To try and achieve this I have implemented the following:
view:
<td rowspan="2" align="center"><%= text_field_with_auto_complete( :product,
:product_code, {}, { :updateElement => ''function(selectedElement){
alert("Element Selected: " + selectedElement.id);}'' }) %></td>
<td rowspan="2" align="center"><input type="text" id="description_#{@counter}"
size="40"></td>
&l...
2008 Jan 05
0
Patch Review #10712: Auto Complete Option
I''ve posted a patch for support the AutoCompleter updateElement option
allowing the auto_complete plugin to customize the behavior of the
auto completion. I required this to fix my app and it is deployed in
production. Patch is dead simple and should be a quick sign off for
anyone using the plugin.
--
Gabe da Silveira
http://darwinweb.net
--~--~---------~-...
2006 Mar 06
0
Autocompletion for <SELECT>
...e to find
within the distribution (sigh!!). The Ticket was closed (resolution
set to worksforme) - does this control exist?
If not, I can put one together - can anyone suggest how this might be
constructed? - select box populated via an ajax call? Could I use an
Ajax.Autocompleter with an updateElement to load the data? (will the
autocompleter watch a select?.
Thanx for your thoughts.
Congrats Mr. Fuchs(and contributors) on a great lib.
Jod
2008 Apr 10
1
help on ajax autocompleter
...is off a werbrick sample...
# http://www.jhl.it/Courses/LUGPC7.html
document.observe(''dom:loaded'', function() {
new Ajax.Autocompleter(''search'', ''results'', ''/words'', {
method: ''get'',
minChars: 2,
updateElement: function(item) { /* no update */ }
});
});
sample code in camping would be very helpful.
thanks!
2006 May 17
3
Autocomplete GetToken??
Hi, I needing to modify the control.js file and am confused about what the
purpose of the getToken function is. I read the docs section below and still
don''t understand why it doesn''t just access the form.value directly.
Docs say:
This method should get the text for which to provide autocompletion by
invoking this.getToken(), NOT by directly accessing this.element.value. This
is
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 May 18
1
RE: Rails-spinoffs Digest, Vol 12, Issue 29
Issue 1: <%= @pic %> instead of <% @pic %>
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of
rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Sent: Wednesday, May 17, 2006 11:13 PM
To:
2006 Jun 29
11
Autocompleter without a default choice
Hi,
I have an ajax auto completer for a text field in a form. All''s good.
Unfortunately, I also want the form to be submitted when the user hits
''return'' in the text field.
This combination of circumstances means that if the user is typing his
entry and then hits return to submit it is possible that dang auto
completer will pop up and complete his entry for even if he
2005 Sep 25
14
script.aculo.us 1.5 release candidate 1
...ggables not clickable with
Firefox #2129
* Make effects "stateless" by cleaning up element.style after finish
of effect #2133 [[Martin Bialasinski]
* Add "internal" events to effects, to make them more easily
extendable [Martin Bialasinski]
* Controls.js Autocompleter.Base.updateElement() hook #2116 [Rob Wills]
* Refactoring to use the Prototype enumerable extensions
* Update to Prototype 1.4.0_pre4
Please test, test, test, write patches, contribute documentation,
etc. etc. :)
Thomas
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...tEntry(this.index).scrollIntoView(false);
},
-
+
getEntry: function(index) {
return this.update.firstChild.childNodes[index];
},
-
+
getCurrentEntry: function() {
return this.getEntry(this.index);
},
-
+
selectEntry: function() {
this.active = false;
this.updateElement(this.getCurrentEntry());
@@ -244,7 +244,7 @@ Autocompleter.Base = Class.create({
if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select);
} else
value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');
-
+
var bounds...
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