Displaying 20 results from an estimated 900 matches similar to: "Event.Observer - (was: Ajax.Autompleter not working on IE)"
2006 Mar 07
0
Ajax.Autompleter not working on IE
I have IE 6.0.2 on an old Win 98 machine (that sounds like a vacuum
cleaner when running), but I''m developing with FireFox and on Mac and
Linux where things seem to work fine.
On IE my Ajax.Updater code and my scriptaculous effects are working
fine, but my autocomplete fields are not. I assume I''m doing
something wrong in setting up the field:
I use this on my form:
<input
2006 Jan 23
1
autocomplete=off not working on Firefox
I noticed that the latest control.js disables auto complete:
this.element.setAttribute(''autocomplete'',''off'');
So I removed my inline "autocomplete=''off''" from my input fields.
But Firefox still auto completes.
Using the Firefox DOM Inspector I do see that it''s applied
by Ajax.Autocompleter as expected. The Inspector
2006 Jan 16
11
Preventing bubble
I''m trying to prevent double ajax requests when I have nested onclick
handlers.
I have a table with clickable column headings (for sorting by that
column).
I have onclick handlers on both the <th> and the <a> link so that
clicking anywhere on the table heading should work.
<th onclick="window.location.href=''http://foo?sort=foo'';">
2006 Apr 03
5
Event.observe on IE
I''m working again on unloading events before making my ajax call.
This code works on Firefox/Opera, but IE doesn''t seem to get the
onclick events registered. Could someone with IE take a look?
http://hank.org/demos/ajax3.html
The js is included in that file. There''s alerts() to show when the
events are registered.
The idea of the code is to look for any
2005 Dec 05
1
Scriptaculous conflict with TinyMCE
I''m using TinyMCE[1], a popular javascript WYSIWYG html editor. The
editor fails to work when I load Scriptaculous before it -- well
depending on the browser.
I can make my application load the javascript in a different order,
but just in case it''s an issue in scriptaculous I thought I''d report.
I have a few pages up -- I''d like to find out if anyone else
2006 Jan 18
6
Autocomplete related fields
I have a table that has city, state and postal code. I want to
auto-fill the city and state when a postal code is entered.
The city and postal code are simple text fields, but the state is a
drop-down list with abbreviations as the value, and the full state
name as the option text.
I assume with Ajax.Updater I could just return the HTML for both the
city and state fields -- including the entire
2006 Mar 31
7
Reset events after ajax update
Avoiding real work I decided to try and clean up my html and remove my
inline onclick handlers for Ajax.Updater calls. Here''s the inline
method I''ve been using:
http://hank.org/demos/ajax-inline.html
Now, here''s using <script> sections to apply the behavior.
http://hank.org/demos/ajax.html (firefox only)
Since the links (tabs) are inside the
2005 Dec 14
1
[scriptaculous] scroll down to show full auto completion list (w/ possible patch)
Hi everyone,
lately I''ve implemented an auto completion textfield at the bottom of a
form. I was a bit bothered by the fact that the user would potentially
need to scroll down in order to see all the options offered by the auto
completion. I couldn''t find any information on how to auto scroll to the
auto completion list with bulit-in functionality so I modified
controls.js
2005 Dec 22
6
Scriptaculous and Prototype based Rich Text Editor
Hi Guys,
I'm currently using the Dojo Rich text editor on my site
https://wideword.net but am not 100% happy with it as I'm a prototype
kind of guy.
So I started writing this Rich Text Editor the other day on an
experiment. I used the In Place Editor as a template for it and have
gotten it to more or less work under IE and Gecko. Unfortunately it
still isn't working on Safari ( The
2006 Mar 07
11
maintaining application state/urls
Hi All
Not specifically a scriptaculous question, but I was wondering how
people were going about maintaining access to their applications via
standard urls.
Say for example I''ve a shop at www.shop.com, and its pure ajax to load
in products. Now customer A wants to show a friend a product on the site
- giving him the url www.shop.com and telling him to click on a series
of links
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
2020 Mar 11
6
[PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands
On Tue, Mar 10, 2020 at 09:08:56PM +0000, John Garry wrote:
> On 10/03/2020 18:32, Christoph Hellwig wrote:
> > On Wed, Mar 11, 2020 at 12:25:28AM +0800, John Garry wrote:
> > > From: Hannes Reinecke <hare at suse.com>
> > >
> > > Allocate a separate 'reserved_cmd_q' for sending reserved commands.
> >
> > Why? Reserved command
2020 Mar 11
6
[PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands
On Tue, Mar 10, 2020 at 09:08:56PM +0000, John Garry wrote:
> On 10/03/2020 18:32, Christoph Hellwig wrote:
> > On Wed, Mar 11, 2020 at 12:25:28AM +0800, John Garry wrote:
> > > From: Hannes Reinecke <hare at suse.com>
> > >
> > > Allocate a separate 'reserved_cmd_q' for sending reserved commands.
> >
> > Why? Reserved command
2006 Mar 03
11
event.keyCode broken in prototype?
I ran 2 tests. One using proto''s Event.observe, and another using an
in-line handler of the "keydown" event in a textbox.
Using .bindAsEventListener, the event.keyCode is always returning a
capital letter, no matter what. The in-line event handler returns
lowercase vs. uppercase correctly... What''s going on?
I guess I find it hard to believe no one has tried
2006 Jun 19
2
Autocompleter enhancement feature request
Hello,
I have created a ticket for an enhancement of the autocompleter to show the
options immediately when the field gets focus. Right now at least one
character must be typed for autocomplete to kick in.
http://dev.rubyonrails.org/ticket/5435
I have also made some code changes directly in the script
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
2006 Feb 13
2
[PATCH] Allow generic autocompleter (Ajax.Watcher)
Hey. Below is a patch to allow generic Ajax.Autocompleters. Basically
it''s for people who wanna be able to watch an input for changes, but
don''t want it to pop up an autocompleter box below. Useful for live
previews, that kind of thing.
Someone''s gonna have to fix the tabstops. I couldn''t be arse to work out
how to make vim do the softtabs properly. Spaces for
2006 Aug 31
2
Event.observe problem
Hi everyone!
I came across and interesting problem with prototype Event.observe.
Take this code for example:
<script type="text/javascript" src="cropper/lib/prototype.js"></script>
<script language="JavaScript"><!--
function handler(e) {
if (document.all) { e = window.event; }
var key;
if (document.layers) key = e.which;
if
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 Nov 14
1
keystrokes from browser
Gmail has keystrokes now and I''m kind of jealous. What javascript
library are they using? Any tips or leads on helper functions?
-Mike
2007 Jul 16
4
Problem with keypress event handling
Hi all,
we are writing a cross browser Javascript control that enhances the
HTML text input element in order to accept only digits (more or less).
Supposing that ''domText'' is the DOM element corresponding to the HTML
text input, we wrote the following:
Event.observe(domText, "keypress",
this.onKeyPress.bindAsEventListener(this));
where
this.onKeyPress =