Displaying 20 results from an estimated 7000 matches similar to: "Unobtrusive scripting?"
2006 Mar 05
7
whatever happend to unobtrusive javascript in Rails ?
Don''t get me wrong, JavaScript/Ajax helpers in Rails are a huge
timesaver and they have helped me to finally overcome my irrational
aversion to js libraries like prototype and such. However, all this
goodness seems to come at quiet a price. The resulting code is
littered with inline JS, including ubiquitous script tags and onload
attributes etc.. It seems that just when i found
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 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 Aug 31
11
Documentation generator?
I''m looking for a documentation generator for JavaScript code that can
handle the coding style used in prototype.js and script.aculo.us. Any
recommendations for such a tool?
In a similar vein, does it make a noticeable difference in production
when comments are removed and several script files are combined into a
single one?
Michael
--
Michael Schuerig Most people
2006 Aug 13
4
Javascript compression / How to hook in to rails development
Hi there,
I thought it''s rather neat to use the javascript compression from
http://dojotoolkit.org/docs/compressor_system.html
This removes javascript comments and renames variables and seems pretty
reliable and effective.
For example, I keep the original htmlarea.js file from
http://xinha.gogo.co.nz/
in a file htmlarea.js.txt and it compresses from 200K to 100K. With
gzip it
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
2008 Jul 11
1
prototype.js breaks treemenus from pear HTML_TreeMenu in safari
hi all
i see a very strange behavior in safari when using prototype.js and
the pear HTML_TreeMenu
to reproduce get prototype.js (http://www.prototypejs.org/assets/
2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/
viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22).
and test the following html with safari on mac or windows (http://
www.apple.com/safari/download/)
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
2005 Aug 08
7
JS Input/Validation Library
Does anyone has any thoughts about starting a project to simplify
client-side form validation and input? I started thinking about this
because I think date input in most web applications is broken. I
really like Simon Willison''s demo:
http://simon.incutio.com/code/js/date-parser/
I think this could be improved (by mapping say shift+left-arrow to
the previous day, and
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
2006 Jul 21
3
Unobtrusive Javascript plugin
Hi,
I downloaded the unobtrusive_javascript pluing from this link
(http://www.lukeredpath.co.uk/index.php/2006/06/06/introducing-unobtrusive-javascript-for-rails/)
since I needed to have dynamic content in javascript (for a pop-up
menu).
Unfortunately I have been unable to make the plugin work. I followed the
instructions on the website, but for some reason the javascript doesn?t
work (for
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
2020 Nov 17
1
RFC: Multiple program address spaces
Fixing llvm-dev at llvm.org to llvm-dev at lists.llvm.org
On Tue, Nov 17, 2020 at 11:27 AM Thomas Lively <tlively at google.com> wrote:
> Thanks for your work on this, Paulo!
>
> Here's some more detail about how function pointers work today in the
> WebAssembly backend and how they differ from the `funcref` Paulo is
> working on.
>
> Today in the WebAssembly
2006 Jun 05
1
Unobtrusive javascript...what if?
What if...you could produce accessible, unobtrusive javascript, using
Rails built-in javascript/prototype helpers, with just one extra line
of code in your layout, a plugin, and one small enhancement to the
helpers. Something like this:
[php]
<% form_remote_tag :controller => ''foo'', :action => ''bar'',
:unobtrusive => true %>
# which produces
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 Jun 23
16
Help please-draggable
I asked the other day about this problem but haven''t received a response.
Trying again:
I just downloaded 1.6 and can''t get a simple draggable to work, which
is weird. I know it''s not my browser since the demos are working.
Here is my simple code. I''ve also had the "new Draggable" between
the select tags. Didn''t change anything.
2005 Aug 07
11
HABTM Movable Select Box
Hi,
I found it a while ago, an add-on to Rails for supporting movable select
boxes, but I searched through the wiki and the mailing list and couldnt
find what I was looking for. I was hoping someone might know of or
remember something about the project.
Thanks,
Dylan.
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|
2008 Jan 21
1
JavaScript book recommendations
No, not a question, but a few suggestions.
I take it that everyone serious about using Prototype & Co. already has
Christophe''s (Porteneuve) Prototype and Script.aculo.us book. Apart
from that, I''d like to point out two new, library-agnostic books:
Cameron Adams and several others
The Art & Science of JavaScript
Sitepoint 2008
http://www.sitepoint.com/books/jsdesign1/