Ryan,
What's
the non prototyp-ish way to handle this?
What
if we don't want to use bind()?
Thanks
in advance,
Mandy.
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Ryan
GahlSent: Thursday, May 25, 2006 10:28 AMTo:
rails-spinoffs@li
Has anyone already made available an AJAX Request Queue Object?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
On 5/24/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote:
when using prototype and Class.create(), what's the preferred method of
creating a subclass?
In case you are interested in this topic in general, you may like to
read this great tutorial. It is not Prototype.js specific but very
intersting.
If there is functionality in the base class's constructor that, for instance, prepares the object instance (initializes an XHR object, etc..), or otherwise must execute, then use an instance. This is yet another "use what works for the situation" things... I use both methods frequently.
I also use
Yup you're missing something fundamental... what's happening is a scope issue. Functions in _javascript_ are first class objects. That means (normally) from within a function the term "this" refers to the function itself...
So in ajaxFetched you have...ajaxFetched: function(){alert(
I think I may be missing a fundamental concept I hope someone can help
me with. I have functions that won't call other functions. Particularly
after an Ajax request.
In the following object the ajax request onComplete calls the
ajaxFetched function successfully. ajaxFetched tries to call funct
when using prototype and Class.create(), what's the preferred method of
creating a subclass?
say I have a real simple class:
var Testing = Class.create();
Object.extend(Testing.prototype, {
initialize: function() {
...
},
...
});
would I subclass it as so?
var SubClass = Clas
Perfect, thank you.
Sam
> Date: Wed, 24 May 2006 11:29:16 +0200
> From: "Danial Tzadeh" <[EMAIL PROTECTED]>
> Subject: Re: [Rails-spinoffs] autocompleter competing with saved form
> data in firefox
> To: rails-spinoffs@lists.rubyonrails.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type:
Thanks. I'm not actually trying to get a field value, but rather a
JSON object, but I think your explanation is spot on. I'm trying to
eval something that doesn't exist and it's breaking. Thanks a lot for
the help.
Jason
___
Rails-spinoffs mailing list
I think your problem is this:
* eval( this.name + 'Data' ) // I assume this.name+'Data' turns into the
ID of an input element that should contain some data.
If this.name is myObjectName then the above becomes:
* eval( 'myObjectNameData' )
Which when eval'ed returns an anonymous string val
Hey everyone,
I'm trying to create an object that will have some properties
predefined, but will allow me to pass in properties to override those
standard props if needed. I'm trying something like:
var myObject = Class.create();
myObject.prototype = {
initialize: function(element, opti
Got it. The example I was working from didn't need to fire at a server. One has to properly tag the 's to get the Serialize capability, which is apparently required to fire the Ajax request. It's a bit maddening that this produces no errors, or anything. Maybe Scriptaculous should throw an error if
Hy there
I'm sucessfully use the scriptaculous sliders. I'm not a programmer at
all and managed to set up the sliders on a page. Great work guys!
I like to add diffrent slidervalues together and make an output of the
sum. Something like
slider 1: 23.4567
Slider 2: 10.123
Output: Sum=33.5797
It couldn't work better than this. Kudos! Andrew.
Danial
On 5/24/06, Martinez, Andrew <[EMAIL PROTECTED]> wrote:
<>
Easy enough. Check out the new example. This version also avoids "jumpy"
animations when you click while a previous effect is still going. And also dynamically
sizes to the c
Tom Gregory wrote:
An inline delete confirmation form would be better than the alert. Just
SlideDown (or the effect of your choice) the delete confirmation
directly above the trash can, and allow the revert to proceed. It's not
modal, but it won't have the "drag mess," occurs in the area the
An inline delete confirmation form would be better than the alert.
Just SlideDown (or the effect of your choice) the delete confirmation
directly above the trash can, and allow the revert to proceed. It's
not modal, but it won't have the "drag mess," occurs in the area the
user is already
Very cool, good job guys!
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
<>
Easy enough. Check out the new example. This version also avoids "jumpy"
animations when you click while a previous effect is still going. And also
dynamically sizes to the contents of the LI.
Just make sure that you set the LI to have a style sheet value of
overflow:hidden (added in my
Marco and I have been emailing about this
and I finally found the fix, so here it is. Feel free to pass it along to Sam,
if he even responds to bug reports any more:
In prototype.js, change line 998 From:
Element.remove(node);
To:
node.parentNode.removeChild(node);
Using Rails to generate a sortable list, I get the draggable/sortable page elements, but Ajax never fires back the post-sorted list. (I've checked with IE & Firefox, the "save this order to the DB" controller hasn't been called.)
The View: Drag to sort. <% @estimate.components.each do
Carlton Dickson wrote:
I was wondering if anyone has implemented the inplace editor without the
need for the URL. I have tried this but run into a problem in that the
'saving...' text in shown for ever and the label is no longer editable.
Yes, I have a project I worked on to try to create a ed
I think the problem is the .bind(this).
You aren’t referencing ‘this’ in the function, what are you
binding? I’d say drop it and see if it fixes it.
Greg
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Marco M. Jaeger
Sent: Wednesday, May 24, 2006 5:42
AM
It works great. Thank you very much Andrew. However, only one minor
point is left: normally I wouldn't know the OriginalHeight, as the
contents are requested from the database. Is there a way to let the
script find it out? something like height: auto ?
Regards
Danial
On 5/23/06, Martinez, And
I'll give that a try - thanks
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gahl
Sent: Wednesday, May 24, 2006 3:44 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] enumerables problem?
Hi Marco!
I've seen this before (na
Hi Marco!I've seen this before (namely in your dialogs), and i simply hacked my way around it with a try/catch block with no content in the catch...try{Element.cleanWhitespace
(el);}catch (e) {}I have no idea why this happens although I know I've seen several other people on the list report similar
Hi Matt,
Looks good for RSS2.
My only concern is what the code may look like if you need to support
RSS1 / RDF and ATOM ?I don't think it will become a mess; I wrote a php rss/atom parser before and it's not so hard to be compatible with both formats without having a huge chunk of conditio
Looks good for RSS2.
My only concern is what the code may look like if you need to support
RSS1 / RDF and ATOM ?
It's probably a contentious area but it seems to me the cleanest way to
do this would be to use a _javascript_ XSLT implementation (Google or
Sarissa) to parse the specific RSS XM
On 5/24/06, Marco M. Jaeger <[EMAIL PROTECTED]> wrote:
I was wondering whether anybody could please tell me why this is causing an
error in IE (works in Firefox):
$A(container.getElementsByTagName('*')).each( function(el) {
Element.cleanWhitespace(el);
}.bind(this));
What would be an
Why dont use this one??
http://www.pdvel.com/stuff/js/XML/
This cass was started by Greg and I changed something
On Wed, 2006-05-24 at 10:29 +0200, Robin Schuil wrote:
> Hi Matt,
>
> It is based on the RSS 2.0 specification
> (http://blogs.law.harvard.edu/tech/rss) and should be backward
> com
I was wondering
whether anybody could please tell me why this is causing an error in IE (works
in Firefox):
$A(container.getElementsByTagName('*')).each( function(el)
{Element.cleanWhitespace(el);}.bind(this));
What would be an
alternative of achieving the same?
Thank
you
You can do it by:
wrote:
Hi all,
I have used the sciptaculous Ajax autocompleter a few times now. A major
problem I have at the moment is with a text field that has focus when a page
loads. The text field has an autocompleter associated with it, but when the
user starts typing, the firefox
Hi,I was wondering if anyone has implemented the inplace editor without the need for the URL. I have tried this but run into a problem in that the 'saving...' text in shown for ever and the label is no longer editable.
Can I also confirm that my idea of the callback function is something that runs
Hi Matt,It is based on the RSS 2.0 specification (http://blogs.law.harvard.edu/tech/rss) and should be backward compatible with all previous versions. Currently it does not support Atom feeds, but that's on my todo list and will be added soon.
Best,RobinOn 5/24/06, Matt Spendlove <[EMAIL PROTECTED]
What versions of RSS /
Atom etc does it support ?
Robin Schuil wrote:
Hi all,
I'm happy to announce that I've completed the first version of my
Ajax.RssReader object. It needs some extra's, but the basic
functionality is now available. You can download it from
http://www.sayoutloud.com/_
Hi all,I'm happy to announce that I've completed the first version of my Ajax.RssReader object. It needs some extra's, but the basic functionality is now available. You can download it from
http://www.sayoutloud.com/_javascript_s/rssreader.jsUsage: function myCallbackFunction( rss ) { aler
35 matches
Mail list logo