You cannot post messages because only members can post, and you are not currently a member.
Description:
Low Pro is a set of extensions to the Prototype library that make it easier to implement unobtrusive DOM scripting.
|
|
|
Subclassing Remote.Form
|
| |
I have a few questions about subclassing Remote.Form. I want to
override onsubmit to do some validation and then call super's
onsubmit. So I derived from Remote.Form. Now the question:
* when I overrode onsubmit it wasn't getting called - only super's
onsubmit was called. Can I override onXX methods and expect them to... more »
|
|
Problem binding to Dynamic elements in Greasemonkey
|
| |
Hey there,
I'm writing a script in Greasemonkey that uses jQuery + Livequery +
Lowpro. The script is an audioscrobbler script for muxtape.com, and
provides a link to allow a user to scrobble a song.
So far I've managed to get it as far as creating the link on the page,
and passing another attach to the link once created. It seems to... more »
|
|
A jquery low pro walkthrough
|
| |
I wrote a short article demonstrating how/why I use low pro with
jquery.
[link]
Also, the example used depends on my fork, which adds automagic ajax
callback binding. I'm sure someone else could write a better... more »
|
|
Behaviour classes and LiveQuery
|
| |
Should I be able to attach behaviour classes using LiveQuery?
Given
Hover = $.klass({
initialize: function(hoverClass) {
this.hoverClass = hoverClass;
},
onmouseover: function() {
this.element.addClass(this.hov erClass);
},
onmouseout: function() {
this.element.removeClass(this. hoverClass);... more »
|
|
ReassignafterAjax in jq lowpro
|
| |
Hi there,
im using the JQuery Lowpro, im trying to make an ajax will_paginate
links in a rails proyect, i have the following code in application.js
:
jQuery(function($) {
$('div.pagination a').attach(Remote.Link, { type: 'GET', dataType:
'script' });
});
and in my controller:
@artists = Role.artists.users.top_artists (50).paginate :page =>... more »
|
|
Windows Update KB947864 Seems to Foil Some Behaviors
|
| |
On a Win XP VM (Parallels) running IE7 some of my behaviors stopped
being triggered (but others are still working) after installing
Windows Update KB947864 (released a few days ago).
Symptom:
QueryObserver (behavior) has an onclick. I register that behavior on
an anchor via Event.addBehavior "a.queryButton": QueryObserver. But... more »
|
|
jQuery version and .attached
|
| |
Hi, Dan,
Thanks so much for porting this to jQuery! It cleared the way for me
to defect ;-)
Question on how to use the .attached method. Is this how I would get a
list of elements currently bound to the behavior?
Here's what I would like to do. I'm finding myself duplicating some
code in two or three places that naturally would fit in a method on... more »
|
|
Selenium not generating event on click of anchor
|
| |
I've got a behavior bound to an anchor onclick. Works fine. I click
it, the onclick runs.
However when I "click" that anchor via my Selenium RC test (via the
"click" method), the behavior does not seem to run.
Makes me wonder if Selenium is really generating the click event or
whether instead, it's looking at the href and just setting... more »
|
|
Patch for Remote.Form
|
| |
I finally worked out why my forms weren't submitting when the user
hits the ENTER key. lowpro serializes the button that was clicked
along with any other parmeters when submitting a form via AJAX.
However, when the user hits enter under FireFox, there is no button
and the consequently the browser barfs. Safari on the other hand tries... more »
|
|
moving from Event.addBehavior to delegate?
|
| |
I've been using Event.addBehavior and recently moved to 0.5. I found
this note by Dan
"Event.addBehavior.reassignAft erAjax is now false by default:
Normally, if you are relying on this behavior it's much more efficient
to move to a solution using event delegation. However, if you do want
your behaviors reassigned to new content after Ajax calls then go... more »
|
|
|