Re: [Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Jason Hummel
Ack. Sorry, I figured it out. My environment was set in a development mode that limits requests. *bonks self* Sorry for wasting peoples time. On 6/20/06, Jason Hummel <[EMAIL PROTECTED]> wrote: I tried using 'get' as well, and it doesn't seem to make a difference. The

Re: [Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Jason Hummel
I tried using 'get' as well, and it doesn't seem to make a difference. The actually come on the database end right, as it crunches through a many millions of records, which is why I wanted to make these requests through ajax. I was hoping to keep the page from slowing down by making these as separ

[Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Jason Hummel
I'm having a problem with multiple Ajax.Updater instances. I have five small chunks of data being loaded into my homepage, and they seem to be firing off one at a time. So the pieces load up in the order they were called. Maybe I'm being a noob, but shouldn't all those requests just fire away and

Re: [Rails-spinoffs] newbie oo question

2006-05-24 Thread Jason Hummel
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

[Rails-spinoffs] newbie oo question

2006-05-24 Thread Jason Hummel
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

Re: [Rails-spinoffs] cleanWhitespace and parentNode

2006-04-27 Thread Jason Hummel
On 4/27/06, Jerod Venema <[EMAIL PROTECTED]> wrote: > > > > You happen to have that ID as a "name" attribute anywhere else in the > page? > > > > > > > > On 4/27/06, Jason Hummel <[EMAIL PROTECTED] > wrote: > > > > &

Re: [Rails-spinoffs] cleanWhitespace and parentNode

2006-04-27 Thread Jason Hummel
> What actually IS the parentnode? Perhaps its one of those "we'll render this > element tag implicitly in firefox" issues (a la )? The parentnode is a div with an ID. I've got something crazy going on here. div.parentNode doesn't work, but div.parentNode.parentNode works fine. If I put the actual

Re: [Rails-spinoffs] cleanWhitespace and parentNode

2006-04-27 Thread Jason Hummel
On 4/27/06, Steve Longdo <[EMAIL PROTECTED]> wrote: > Meow...er I mean, why not just select the $('parentNode') in the first > place? I actually tried that as well: var div = $('mydiv').parentNode; Element.cleanWhitespace(div); and got nada on IE ___ R

[Rails-spinoffs] cleanWhitespace and parentNode

2006-04-27 Thread Jason Hummel
Hey cats, I seem to have ran into a problem in IE trying to use parentNode with the cleanWhitespace method. doing something like: var div = $('mydiv'); Element.cleanWhitespace(div); works really great, but try doing: var div = $('mydiv'); Element.cleanWhitespace(div.parentNode); or var div =

Re: [Rails-spinoffs] Sorting Multiple Arrays

2006-02-19 Thread Jason Hummel
All I gotta say is... Wow. That's amazing. One line? I was way off. Thanks for the help. I'll be looking into that interesting little method a lot more. On 2/18/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: > On 2/17/06, Jason Hummel <[EMAIL PROTECTED]> wrote: &

[Rails-spinoffs] Sorting Multiple Arrays

2006-02-17 Thread Jason Hummel
Hey Cats, I'm having a problem. I'm working with an object that contains a bunch of arrays: var myObject = { "data": [ {"line": [1,"aoo","far"]}, {"line": [2,"boo","ear"]}, {"line": [3,"coo","dar"]}, {"line": [4,"doo","car"]}, {"line": [5,"eoo","bar"]}, {"lin

[Rails-spinoffs] Objects and Properties

2006-02-07 Thread Jason Hummel
I'm working on a legacy product and introducing prototype to make my life a little easier and I'm running into some problems with the properties being added to some built in objects like Array. The product has a form validator that's used all over that adds fields (and some of the fields propertie

[Rails-spinoffs] Problem stopping default event in Safari

2005-12-14 Thread Jason Hummel
I'm going crazy here. I'm trying to stop a link from being followed after it's clicked. It works everywhere except Safari (using v. 2.0.2 on Tiger) I'm using behavior.js to attach events based on a class or an id: *** function loadData(e) {

Re: [Rails-spinoffs] Problem passing event object

2005-10-27 Thread Jason Hummel
Thanks for the feedback, the bind(this) worked like a charm, I was beating my head against my monitor trying to come up with a solution. I'm confused, though, as to why javascript loses the reference to "this" without that bind method can somebody explain? Also why doesn't onSuccess: this.switchP

[Rails-spinoffs] Problem passing event object

2005-10-27 Thread Jason Hummel
Hi all, I'm having a problem with an Ajax.Request. I can't figure out how I can pass an event (an onclick on a checkbox) which causes the Ajax Request, to be recognized in an onSuccess function. Here's my simplified code: var RequiredField = Class.create(); RequiredField.prototype = { initiali

[Rails-spinoffs] Member Not Found

2005-10-21 Thread Jason Hummel
'ello all. I'm having problems with using Element.findElement from Prototype 1.3.1 Everything works great in Firefox, but when I switch over to IE, I get a "member not found" error. I can't figure out if it can't find the event object anymore or if it can't find the tag as it walks up the dom. Ha