similar to: More scripts

Displaying 20 results from an estimated 10000 matches similar to: "More scripts"

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 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
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
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 02
0
Re: function.prototype.bind return
Ah - thanks Michael. Event.stop is precisely what I was looking for. I can just grab the event object inside the handler that I registered previously and pass it to an Event.stop call, and get exactly what I want. Thanks, Rahul Date: Tue, 2 Aug 2005 16:08:20 +0200 From: Markus Joschko <markus.joschko@gmail.com> Subject: Re: [Rails-spinoffs] Re: function.prototype.bind
2005 Aug 16
1
Defining model classes for enumerations
I have several tables for enumerations. They all have the same content: id, name, position. I''d like to avoid the tedious work of defining a class for each one explicitly. Not least, in order to avoid clutter in the model directory. Here''s what I''ve come up with: class EnumRecord < ActiveRecord::Base def self.define_enums(*enums) enums.each do |spec|
2005 Sep 14
16
Showing database results in a grid view
Hello everyone, It seems that the answer to my question should be obvious, but I''ve not yet found a way to do what I want. Any advice on the best method would be greatly appreciated. Have the following database table: CREATE TABLE datasets ( id int not null auto increment, name varchar not null, value varchar not null, year varchar not null, state
2010 Jun 20
0
ActiveRecord and ARel: correlated subqueries?
I''m trying to figure out how to use ActiveRecord in conjunction with ARel. In particular, I''d like to replace my residual literal SQL with ARel, if only I could see how. Let''s take Article with multiple Versions as an example. With ARel alone, I can find articles with their latest versions like this articles = Article.arel_table versions = Article.arel_table
2012 Nov 22
1
Efficiently creating/defining new variables transformations
I would like to add an extension to the current name of a variable to create a new variable that is its sqrt transform. Each piece of the equation below works independently, but the left side definition fails on run. I also tried creating the variable name first, but ended up with an object that toString() did not fix. Better ideas? Example 1
2009 Apr 19
19
Controller spec: testing that scope is set
In a Rails controller I set the scope on a model class in an around filter. I have defined expectations on the model classes, and ideally, I would add a further expectation for the scope. Is this already possible in some way? How would I go about adding support a scope expectation? Michael -- Michael Schuerig mailto:michael at schuerig.de http://www.schuerig.de/michael/
2012 Aug 03
0
MANOVA with repeated measures in R
Dear list member, I deperately need an help in performing a MANOVA in R, but I encountered some problems both in the design and in the synthax with R. I conducted a listening experiment in which 16 participants had to rate the audio stimuli along 5 scales representing an emotion (sad, tender, neutral, happy and aggressive). Each audio stimulus was synthesized in order to represent a
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 -
2005 Aug 01
2
function.prototype.bind return value?
Quick question - how come the function.prototype.bind doesn''t allow for return values? Am I missing some basic understanding of how this works? I searched and couldn''t find an answer. Specifically, I''m binding an object method to an existing form''s onSubmit, but it still actually submits the form, refreshing the page - which is not what I want. If change
2005 May 17
3
validates_associated / error_messages_for
When a validates_asssociated fails... I get something like Address is invalid is there a way, preferably on a per-association basis to have the error messaage include the actual error like Zipcode is too long (max is 10 characters) _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
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
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 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/
2005 Aug 17
1
[PATCH] Builder with hash for style attribute
The attached patch transparently extends the Builder from util.js to take an object/hash value for the style attribute. The elements of the hash are then used to set the respective properties of the style object. The purpose of this patch is twofold: (1) Make it easier to use the Builder with generated style properties. (2) I''m not sure if assigning a string to element.style is even
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