Displaying 20 results from an estimated 1000 matches similar to: "Problems with repeated calls to setTimeout?"
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page
to watch for changes to text fields (haven''t tried forms) can have a
non-negligible effect on the CPU cycles used by the browser process.
Nothing dramatic, to be sure, but unnecessary.
Autocompleter.Base (controls.js) follows a smarter strategy to watch for
changes. Currently this functionality is tied
2007 Feb 12
18
document "expando" properties broken in Konqueror
I noticed that some of my event handlers and scripts evaluated in ajax
responses didn''t work in Konqueror (3.5.5).
document.getElementsByClassName is not defined in these contexts.
I can work around this, by saving document.getElementsByClassName in a
(namespaced) global variable once and reassigning it before each use.
Still, this misfeature is annoying and not restricted to this
2005 Aug 13
4
Timing out ajax requests?
Has someone come up with a generic way to handle ajax requests that
exceed a certain time?
In my concrete case, I have several select boxes for drilling down a
hierarchy. When the user clicks an option, the next deeper level is
retrieved. To avoid multiple concurrent requests, I disable the select
box. As the request may take too long or cause an error, I set a
timeout that re-enables the
2006 Oct 13
2
cygwin script for Sweave
below is a very simple bash script to run Sweave from a cygwin terminal, run pdflatex on
the generated .tex file, and then view the resulting .pdf output.
i usually use cygwin when i am (forced to be on) Windoze, but i found a few issues
with paths that this script works around.
pdfview, used in the script, is simply:
2005 Jul 10
1
Konqueror compatibility
Thomas,
currently the script.aculo.us scripts have some workarounds for Safari
that should be extended to more generally cover all khtml-based
browsers, Konqueror in particular.
In prototype.js, there is a workaround for an addEventListener bug that
affects Konqueror as well as Safari, controls.js has a similar
workaround, and the special case in dragdrop.js doesn''t hurt anyway.
In
2005 Jul 06
16
Autocompletion not working in Konqueror
I''ve just had a look again at the autocompletion demo that Thomas put up
at
http://script.aculo.us/demos/ajax/autocompleter
Unfortunately, in Konqueror (3.4.1) it doesn''t work at all. Not even an
error is triggered. It does work nicely in Firefox. How about Safari?
I don''t have the time right now to track this down systematically (maybe
latter), but just from
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects,
I''d like to use the button_to helper to get "something" that generates
a POST request. Unfortunately, that something is a form and forms can''t
be nested.
I''d also like to place buttons related to the same form close to each
other. At the top are some navigational buttons
2005 Jun 29
0
Effects flicker in firefox when called with setTimeout
Hi,
I have a page calling a fade effect from a setTimeout. In Firefox the
element flickers before fading. It works fine in IE - I haven''t
tested any others. Has anyone else noticed this?
I''ve included a simple prototype below (sorry haven''t got web space to
post to - anyone know of any good free space?). Whilst in the
prototype it doesn''t to be much of an
2006 Apr 10
2
Any way to implement delay() with ruby code?
That is, is there any way to do something like an RJS page.delay()
except with
ruby code statements in the body instead of RJS statements?
If not, what kind of options would I have for wanting to execute a set
of statements n seconds in the future?
Thanks,
Andy
--
Posted via http://www.ruby-forum.com/.
2006 Jan 14
1
Really Slow Effects
Hi,
Please check out http://rixth.org/index.php (you can login with
username mr password mouse). Create a todo list, then press ''open''.
Add a few items (after about 8, is when it happens to me) then click
close. THe animation is not very smooth for me, it only displays about
3 frames. This is not because it is pushing a lot of content down
(look at the scriptalucous wiki effects
2006 Jul 28
4
Validation Reflection plugin
The validation reflection plugin adds three things
(1) Reflective access to validations
- ModelClass.reflect_on_all_validations
- ModelClass.reflect_on_validations_for(:property)
(2) It provides "declarative" methods for defining
validations based on database metadata
- validates_presence_of_mandatory_content_columns
- validates_lengths_of_string_attributes
-
2008 Apr 27
4
Smoothing out effects/ consistent effects everytime
HI All,
I am using this code here:
setTimeout("Sound.play(''sounds/movieprojector.mp3'');", 600);
setTimeout("Effect.Appear(''slideshow5'');", 850 + 600);
setTimeout("Effect.Puff(''slideshow5'');", 850 + 600 + 850);
2001 Jul 10
1
gls function, very old results
Hello R-users,
I am currently trying to learn how to use the function gls of the nlme
library. I fitted the following model:
Generalized least squares fit by REML
Model: response ~ array + dye + genes + variety + variety * genes +
array * genes + dye * genes
Data: data
I have 11 arrays, 2 dyes, 2 varieties, 3200 genes, and 2 replications
for each.
Therefore I should have the corresponding
2005 Jun 29
2
Unit testing
Recently, I''ve started to write unit tests for some of my scripts. In
general,it''s no worse in JavaScript than in Ruby or Java. I didn''t have
the courage to try Selenium, but had a look at JsUnit. Unfortunately,
in Konqueror it produces unfathomable errors and in Firefox it is slow
beyond imagination.
Anyway, writing tests for functions that are computational or
2005 Aug 29
9
can a class find out it''s instance name?
Hi friends - a javascript question....
Does the prototype object add some way for a class to find out the
variable name of its instance variable?
Or does javascript have some built in way to do this?
This is confusing to describe - but if I define a variable as some
object:
var myVariable= new Widget(''fdfa'');
can some built-in method inside the Widget class be
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of
potentially large numbers of objects. The Rico LiveGrid[*] at first
blush seems attractive, but has some major drawbacks. It doesn''t work
with Safari/Konqueror, not yet anyway. It can only handle fixed-size
tables and requires that widths, including column widths, are
hand-crafted.
I''m looking for a
2010 Sep 01
2
Undefined methods: has_selector? and flunk
I''m in the process of updating an app for Rails 3.0 and rspec-rails
2.0.0.beta20. When I''m running my specs (rake spec) I get a large number
of errors caused by two undefined methods
undefined method `has_selector?'' for #<String:0x7fdbd0b5b270>
undefined method `flunk'' for
2009 Jan 23
2
[LLVMdev] Reading recommendations?
[I sent this already two days ago, but apparently the message didn't get
through. It is not in the archive either.]
I've read through the Programmer's Manual, Language Reference, and
Kaleidoscope Tutorial, still I'm struggling to get started hands-on
with LLVM. This may just be a passing phase and I'm in no hurry, so I'd
like to take the time to read up some more on
2006 Mar 09
5
Comet support?
Just out of curiosity, is there a plan to support Comet (name coined by the
dojo guys) w/ prototype? Comet represents persisting an http connection for
low latency data operations. It also represents a nice alternative to
polling.
Jim
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Aug 19
1
Re: DB Auditing
On Saturday 19 August 2006 11:25, Jeremy Cowgar wrote:
> A recent thread titled "DB record versioning/audit" made me post this
> message:
>
> I''ve created a plugin called "acts_as_logged".
There already is acts_as_audited.
Michael
--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/