[Proto-Scripty] Re: ie6 can't find class def, works in FF, IE8, safari

2010-04-09 Thread T.J. Crowder
Hi, > Basically my js works fine in FF, IE8, and safari, but completely > fails in IE6. The relevant source is below: Nothing jumped out in the source (but then, there was virtually no source to look at! :-) ), but usually this means you have a dangling comma somewhere, like this: var AjaxTabber

[Proto-Scripty] ie6 can't find class def, works in FF, IE8, safari

2010-04-09 Thread Junkshops
Hi all, I'm very much a prototype/js newb and I'm working on my first site. I've searched around for an answer to this question but apparently my google-fu is weak. Hopefully someone here might be able to point me in the right direction. Basically my js works fine in FF, IE8, and safari, but comp

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
Thanks for the reply T.J., Hmm.. Yeah it just seems like there's no way to win in this case. On one hand, I have to resort to redundancy of setting var blah = this; inside my class methods-- Otherwise, in some of my more intense methods, I have function calls inside function calls, and have to

[Proto-Scripty] Re: Prototype.js / AJAX.response() Script

2010-04-09 Thread mTorbin
TJ, Thanks for the detailed response. I mostly came to terms with this resolution but I was hoping another programmer would prove me wrong. It seems it can be somewhat accomplished with jQuery and PHP but jQuery and Prototype do not currently get along all that well and I'd had to bring that prob

[Proto-Scripty] Re: class.create question

2010-04-09 Thread T.J. Crowder
Hi Patrick, > I don't quite get how I would also be able to pass in the class 'this' > instance to someFunc other than having a var foo = this; at the top of > the initialize block.. > > Can you see a way to get around that? Since you replied to Jonathan that you wanted access to both #foo and th

RE: [Proto-Scripty] Re: class.create question

2010-04-09 Thread Jonathan Rosenberg
Hmmm ... What do you mean by "access to #foo?" -- Jonathan Rosenberg Founder & Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of patrick Sent: Fr

[Proto-Scripty] Ajax Updater - get a special div from site

2010-04-09 Thread clicforw...@googlemail.com
Hello, can anyone please help me out with a Ajax Updater?! My script: http://groups.google.com/group/prototype-scriptaculous?hl=en.

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
On Apr 9, 9:53 am, "Jonathan Rosenberg" wrote: > Ok, I haven't thought this out fully, but how about > >Event.addBehavior({ > '#foo:click': (function() { > someFunc(this)).bind(this) >} Right.. that gives me access

RE: [Proto-Scripty] Re: class.create question

2010-04-09 Thread Jonathan Rosenberg
Ok, I haven't thought this out fully, but how about Event.addBehavior({ '#foo:click': (function() { someFunc(this)).bind(this) } -- Jonathan Rosenberg Founder & Executive Director, Tabby's Place http://www.tabbysplace.

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
Thanks for the reply T.J., When using 'this', one other problem comes up for me which I wasn't sure how to address. I use lowpro along with prototype for it's Event.addBehavior stuff... So, if I do: var Foo = (function() { var Foo = Class.create({ initialize: function()

[Proto-Scripty] Re: The Unofficial Wiki

2010-04-09 Thread T.J. Crowder
Hi, > I think the site needs an integrated contribution system for Prototype > Extensions, better than jQuery's(http://plugins.jquery.com/). One thing at a time. :-) And of course, there's scripteka.com. > Some want something easier than learning git, > rake, lighthouse, etc.,  in order to contr

[Proto-Scripty] Re: class.create question

2010-04-09 Thread T.J. Crowder
Hi, > So this solves that problem-- but global variables are "evil".. > BUT..  this is in the context of a closure, so I wonder if it's less > evil? The global variable is not affected by the fact it's being created by code in a closure, you're still (implicitly) creating a `photos` property on t

[Proto-Scripty] class.create question

2010-04-09 Thread patrick
Hi everyone, My question is-- quite often I do something like this: var Photos = (function() { var Photos = Class.create({ initialize: function() { var photos = this; //etc } return Photos; })(); and then when I have class methods, I have redefine a

[Proto-Scripty] Building a string for an array reference

2010-04-09 Thread thegdog
So here's what I am trying to do. I have a form with two fields: issue and subissue. The second (subissue) is hidden by default. When the user selects one of the items in the first (issue), I want to populate the second with only certain options. So I have all the options in the subissue and