[Proto-Scripty] Ajax Request Timeout

2009-07-13 Thread Rick
I have googled for Ajax Request Timeout, but i didn't finde a good working solution. These both are for most people the best solutions. http://positionabsolute.net/blog/2008/07/prototype-ajax-request-timeout.php http://codejanitor.com/wp/2006/03/23/ajax-timeouts-with-prototype/ But these

[Proto-Scripty] Re: Ajax Request Timeout

2009-07-14 Thread Rick
hi But leaving aside status 0, just a logical point.  The third condition in your updated code:     return (status = 200 status 300 status != 0); ...is irrelevant and will never be evaluated.  If 200 = x 300, x cannot be zero. i can't believe what piece rubbish of code i

[Proto-Scripty] Re: Ajax Request Timeout

2009-07-15 Thread Rick
@Matt Foster: your patch didn't work for me ?? in ff i didn't get the onTimeout event or if you get then it happend when the server is back online an the as often as it should happend while the offline time. i don't know why? i use an PeriodicalExecuter for my ajax request ... that's

[Proto-Scripty] Re: Submit a form using enter

2008-12-11 Thread Rick Waldron
I whipped this together, tested and confirmed: document.observe(dom:loaded, function () { $('login_form').observe('keydown', function (e) { if ( e.keyCode == 13 ) { //event.findElement('form').submit();

[Proto-Scripty] Re: event.element vs. $('element_id')

2009-03-27 Thread Rick DeNatale
submitter here }); }; It is great, time-wise. And exploits IE's memory leak due to the closure with circular reference. Don't do it. So, do I infer from this that IE (at least some version(s)) use a reference counting GC for Javascript? Yuck. -- Rick DeNatale Blog: http

[Proto-Scripty] Re: .each not working in IE?

2009-04-06 Thread Rick Waldron
$R(1,31).each(function(i){ console.log(i); // if you have firebug. }); On Mon, Apr 6, 2009 at 3:51 AM, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Why are you calling $?  $[1] is for extending elements or looking elements up by ID, it has nothing to do with ObjectRanges.  The

[Proto-Scripty] Re: Extracting methods from codebase

2009-04-30 Thread Rick Waldron
At very least the code i gave you will allow you to clean up your own code by subbing document.getElementById() with the $() and i'd say its pretty damn small Rick On Thu, Apr 30, 2009 at 11:42 AM, Bertrand bertrand.char...@gmail.com wrote: Well, actually, my managers are pushing for self

[Proto-Scripty] Re: Problem with Ajax.Updater...

2009-06-02 Thread Rick Waldron
I noticed you're missing a comma... var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: { params: pars } onComplete:function(){ Between { params: pars } onComplete (should be right before onComplete) That may be unrelated, but an observation worth noting. On Tue, Jun

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread Rick Waldron
to PHP. Having inline handlers is something you will vastly regret in the future, so i did away with those and let the .each() deal with assigning behaviours Tested in FF3 IE 7 Rick $count=$count+2; while ($count=$num_teams) { echo 'trtdPlayer .$count . /tdtd

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-03 Thread Rick Waldron
Oh yeah... and this was your problem; onclick='Effect.toggle('blinddown1', 'slide'); return false;' would've worked as: onclick=Effect.toggle('blinddown1', 'slide'); return false; You cant use single quotes inside of single quotes. On Thu, Jun 4, 2009 at 12:37 AM, Rick Waldron

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Rick Waldron
Effect.toggle() does not like the element chained to it... odd. Anyway, you can improve this much further I've posted a demo. http://genevajs.com/misc/demo-ps-list-0010.php Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Rick Waldron
the second version posted: Effect.toggle(this.down(), 'blind'); }); }); }); On Thu, Jun 4, 2009 at 3:31 PM, craig bagley.cr...@gmail.com wrote: I've implemented what Rick (Thank You!) suggested, and it seems to have solved the recognition problem. The only minor problem I'm

[Proto-Scripty] Re: $$ behavior in IE ?

2009-06-04 Thread Rick Waldron
That still wont work... console.log( $$('#gridRow').last().down().innerHTML ); # --- is for IDs you need: console.log( $$('.gridRow').last().down().innerHTML ); And i PROMISE that wont work either, you need to iterate through $$('.gridRow') if you want to output both rows. Like so:

[Proto-Scripty] Re: Possible Bug: Youtube in a Draggable DIV

2009-06-04 Thread Rick Waldron
1.Your link is 404, I guessed and added an L to htm (.html) 2. Use the option 'handle'... take a look: http://www.genevajs.com/misc/drag-handle.php dig it. On Thu, Jun 4, 2009 at 10:47 AM, jevchance john.va...@gmail.com wrote: Hi everyone. I'm experiencing some possible bugs with a

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-04 Thread Rick Waldron
structured CSS that remains OUT of your markup. Just for fun, replicate my example, but with your method. I'm just curious to see how you would accomplish what we're discussing. Rick On Thu, Jun 4, 2009 at 6:48 PM, Alex McAuley webmas...@thecarmarketplace.com wrote: My point still stands

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Alex is right ... I would even suggest not using Event.observe(window, 'load', function() {}); for this application at all... you can wrap all those other event handlers in one big document.observe('dom:loaded', function () { all your stuff goes here. }); On Fri, Jun 5, 2009 at 6:18

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
... those paths are my paths, i thinkyours were /javascripts/lib/ and /javascripts/src/ Rick On Fri, Jun 5, 2009 at 9:00 PM, MIGhunter ad...@botdls.com wrote: Nothing I do seems to be working with IE. I thought that prototype/ scriptaculous was supposed to fix IE's retardedness. I tried

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
that arent there, IE basically says: 'tough shit' Good luck! On Fri, Jun 5, 2009 at 9:24 PM, Rick Waldron waldron.r...@gmail.com wrote: Simple fix, you need to put those observers inside the proper document.observe('dom:loaded') block for them to actually know when and what to start observing

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Whoops! Also... IE collapsed your wrapper div. i put 75% on that and then 100% on the inner div - worked like a charm. On Fri, Jun 5, 2009 at 9:27 PM, Rick Waldron waldron.r...@gmail.com wrote: Sorry, should've explained why IE is so dumb... Firefox knows to wait to execute, but it doesnt know

[Proto-Scripty] Re: Effect.toggle('BLIND'); select by class not id

2009-06-12 Thread Rick Waldron
Try this: a href=javascript:; id=toggleswitchToggle Blind/a Below goes in a script tag in the head document.observe('dom:loaded', function (){ $('toggleswitch').observe('click', function () { $$('.class2').each(function (d) { Effect.toggle(d, 'blind'); }); }); }); On

[Proto-Scripty] Re: setOpacity issue

2009-06-12 Thread Rick Waldron
prototype.js and genevajs (this is MY version, its filled with JUNK, please do not use this). GenevaJS allows me to write jQuery syntax in the Prototype environment. Compressed and g-zipped it comes it at 3k Rick On Fri, Jun 12, 2009 at 3:11 AM, Alex McAuley webmas...@thecarmarketplace.com

[Proto-Scripty] Re: setOpacity issue

2009-06-12 Thread Rick Waldron
simple.. but i've been doing some zany stuff, which i intend to post) Anyway, that example: http://genevajs.com/demos/demo-box2d.php I've made us way off topic. sorry about that. anyone with questions can email me directly. Rick On Fri, Jun 12, 2009 at 11:08 AM, T.J. Crowder t

[Proto-Scripty] Re: setOpacity issue

2009-06-12 Thread Rick Waldron
Geneva Switzerland? It was named after this city. The idea being its a convention between two super powers :) Rick On Fri, Jun 12, 2009 at 5:25 PM, Tobie Langel tobie.lan...@gmail.comwrote: GenevaJS ? IS there any relation to my homwtown ? Or is that purely coincidental? Best, Tobie

[Proto-Scripty] Re: Effect.toggle('BLIND'); select by class not id

2009-06-12 Thread Rick Waldron
The way i shared with you allows you to do this task without repeating without repeating the code. Yes... i did that on purpose. On Fri, Jun 12, 2009 at 10:49 AM, Gatsman jgats...@gmail.com wrote: Thanks Rick but I found an other way 2 minutes ago I added this under the head script type

[Proto-Scripty] Re: Prototype and forms

2009-06-16 Thread Rick Waldron
: $('adjForm').show() Rick On Mon, Jun 15, 2009 at 5:46 PM, anthony mrsmi...@gmail.com wrote: I have a form that when a user selects something from a drop-down, another element in the form appears. There is another piece of the form, that is never showing up, I need to understand what I am doing

[Proto-Scripty] Re: element is null error on Draggable - element exists!

2009-06-16 Thread Rick Waldron
Could you set this up on http://jsbin.com/? On Tue, Jun 16, 2009 at 2:06 PM, adamski adam.elemen...@gmail.com wrote: I'm having some trouble getting a Draggable to dorp onto a Droppable. I get the old element is null error from prototype (its trying to show an non-existent element).

[Proto-Scripty] Re: Curvy Corners + draggables (script.aculo.us)

2009-06-17 Thread Rick Waldron
to this email along with an example usage (same file, its at the bottom). Can you post your code? http://jsbin.com Rick On Wed, Jun 17, 2009 at 9:58 AM, Rafael M Ximenes rmalv...@gmail.comwrote: Hi, everybody! I'm a Brazilian WebDev and I've found a script to round corners without images

[Proto-Scripty] Re: Need help resolving conflict between Proto and Uize frameworks

2009-06-17 Thread Rick Waldron
='' ever btw. should change to: script document.observe('dom:loaded', function () { call function in here }); /script I think even Alex would agree with me on this particular inline event ;) Rick On Wed, Jun 17, 2009 at 11:55 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: is it run

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Rick Waldron
javascript function getAdjForm(). getAdjForm() looks to see if the form element territory exists. That's the problem, for some reason, it cannot see it. What can I do to make it where it does not fail the if statement in that function? On Jun 16, 11:33 am, Rick Waldron waldron.r

[Proto-Scripty] Re: Problem using prototype.js

2009-06-19 Thread Rick Waldron
Could you post an example page? Upon initial inspection... without delving too deep, I notice this: Your references to the form elements are just that - not form element values. $('StateProvince') should be $('StateProvince').value or $F('StateProvince') $('City') should be $('City').value or

[Proto-Scripty] Re: sessvars

2009-06-19 Thread Rick Waldron
Since no one else has replied, justly so as this is not a Prototype related question... I'm vaguely familiar with sessvars.js - what did you need help with? Rick On Fri, Jun 19, 2009 at 10:47 AM, cob brenda...@gmail.com wrote: Has anyone here used the sessvars lib, would like to ask

[Proto-Scripty] Re: sessvars

2009-06-22 Thread Rick Waldron
=sessvars.js/script script type=text/javascript src=prototype.js/script In the head Rick On Mon, Jun 22, 2009 at 4:06 AM, Brendan O Connor brenda...@gmail.comwrote: Thank you very much when you create your session object you use the follwing sessvars.myObj = {var1:, var2:0,} Can you add

[Proto-Scripty] Re: Can options in a selection box be made draggable...

2009-06-23 Thread Rick Waldron
I was nearly tempted to post a link to a w3c spec page but then Alex was kind enough to explain. If you need an example of what Alex is talking about: http://weblog.morosystems.cz/ostatni/dropdown-xhtml-css-javascript-replacement-of-classic-selectbox On Tue, Jun 23, 2009 at 9:56 AM, Alex

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-24 Thread Rick Waldron
Can you post a link to an example? Rick On Wed, Jun 24, 2009 at 3:29 AM, Nivash Ramachandran rniv...@gmail.comwrote: Hi all, I am using scriptaculous drag functionality in table tr element. Now I am facing the following issues. I can drag a row from one table to another table but 1

[Proto-Scripty] Re: drag and drop tr from one table to another table.

2009-06-24 Thread Rick Waldron
Whoops - i replied to your first message before updating the thread. Sorry about that. Rick On Wed, Jun 24, 2009 at 12:57 PM, Rick Waldron waldron.r...@gmail.comwrote: Can you post a link to an example? Rick On Wed, Jun 24, 2009 at 3:29 AM, Nivash Ramachandran rniv...@gmail.comwrote

[Proto-Scripty] Re: [ANN] Alpha version of scripty2 (script.aculo.us' next major version!) out now

2009-06-26 Thread Rick Waldron
Thomas, Is there any specifics we should know about (things no longer available)? I just plugged in s2.js to a page that has one element that will *shake()* Firebug says: $(element).shake() is not a function :\ I chose that one arbitrarily... Rick On Fri, Jun 26, 2009 at 9:26 AM

[Proto-Scripty] Re: [ANN] Alpha version of scripty2 (script.aculo.us' next major version!) out now

2009-06-27 Thread Rick Waldron
: 'easeInOutCirc' }, after: function(){ alert('finished'); } }); throws an error. this.options.transition is not a function I forked and fixed it in base.js, its commited in my git fork if you want it. Rick http://github.com/rwldrn On Sat, Jun 27, 2009 at 6:37 AM, Radoslav Stankov rstan

[Proto-Scripty] Re: Prototype in salesforce development

2009-06-27 Thread Rick Waldron
FirePHP and FirePython Rick On Sat, Jun 27, 2009 at 6:47 AM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, one question, on Ajax.Updater(id, URL, optionStr), the second argument is it MUST be file or can we have controller action which return result ? It must be a URL (which

[Proto-Scripty] Re: Prototype in salesforce development

2009-06-28 Thread Rick Waldron
of reources[1] on the unofficial wiki. [1] http://proto-scripty.wikidot.com/resources Thanks Rick! -- T.J. :-) On Jun 27, 4:38 pm, Rick Waldron waldron.r...@gmail.com wrote: This is sort of redundant to TJ, but I'm going to throw it out there... I'm not familiar with salesforce

[Proto-Scripty] Re: determine if dom:onload has happened yet?

2009-06-29 Thread Rick Waldron
elements you need to access in the page will be available once this happens (as long as they actually exist). Rick On Mon, Jun 29, 2009 at 11:18 AM, Jonathan Rochkind rochk...@jhu.eduwrote: Thanks Tobie. The problem again for me is when I end up adding a dom:loaded listener inside

[Proto-Scripty] Re: Events in own Class

2009-06-29 Thread Rick Waldron
Dig it: http://jsbin.com/uhogi (view the source) Rick On Mon, Jun 29, 2009 at 12:19 PM, Sven stuebe...@googlemail.com wrote: Hi, is it possible to add Events to own classes? something like this: var myClass = Class.create({ foo : function(){ this.fire

[Proto-Scripty] Re: Events in own Class

2009-06-29 Thread Rick Waldron
No problem Rick On Mon, Jun 29, 2009 at 12:41 PM, Sven stuebe...@googlemail.com wrote: wow thank you ;) On 29 Jun., 18:38, Rick Waldron waldron.r...@gmail.com wrote: Dig it: http://jsbin.com/uhogi (view the source) Rick On Mon, Jun 29, 2009 at 12:19 PM, Sven stuebe

[Proto-Scripty] Re: Events in own Class

2009-06-29 Thread Rick Waldron
I think I set you on the right path... copy the code a gave you and see what you can come up with. Rick On Mon, Jun 29, 2009 at 12:56 PM, Sven stuebe...@googlemail.com wrote: hmm but wait this is a global event... i want a instance-based event. xyz.foo(); //alert(barbarbar

[Proto-Scripty] Re: question from newbie, how add parameters?

2009-06-29 Thread Rick Waldron
You code was rife with syntax errors... I posted a demo of the corrected switch statement here: http://jsbin.com/ataka there is also some basic event stuff to show it in action Rick On Mon, Jun 29, 2009 at 7:08 PM, Miguel Beltran R. yourpa...@gmail.comwrote: Hi list if have a variable

[Proto-Scripty] Re: question from newbie, how add parameters?

2009-06-29 Thread Rick Waldron
After the switch, add this: vparams['your_additional_property'] = 'additional property's value'; I hope this is what you mean... On Mon, Jun 29, 2009 at 8:16 PM, Miguel Beltran R. yourpa...@gmail.comwrote: 2009/6/29 Rick Waldron waldron.r...@gmail.com You code was rife with syntax

[Proto-Scripty] Re: question from newbie, how add parameters?

2009-06-29 Thread Rick Waldron
a literal string). FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jun 30, 1:54 am, Miguel Beltran R. yourpa...@gmail.com wrote: 2009/6/29 Rick Waldron waldron.r...@gmail.com After the switch, add this: vparams

[Proto-Scripty] Re: resize problem.

2009-07-01 Thread Rick Waldron
As a helpful sidenot, i think you'd benefit from NOT using onload= script document.observe('dom:loaded', function () { var onResize = function(e) { var viewport = document.viewport.getDimensions(); var screen = $('screen'); var s_view = screen.getDimensions();

[Proto-Scripty] Re: iterator.call is not a function

2009-07-01 Thread Rick Waldron
! var playlist = el.select('.playlist li'); // also... select your li's here, this will save you another select() call on the next line! playlist.each(function(video) { // -- neater. console.log(video.id); }); }); Have a look: http://jsbin.com/avedu Rick

[Proto-Scripty] Re: differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-10 Thread Rick Waldron
The result your getting is completely correct, you're just missing one aspect... Take a look: http://jsbin.com/anefa (view source... ) On Fri, Jul 10, 2009 at 4:57 PM, ronman ron.new...@gmail.com wrote: Hi, I've been puzzling over this for a couple of days and finally admit I need help.

[Proto-Scripty] Re: Is Form.Element.EventObserver deprecated ?

2009-07-10 Thread Rick Waldron
$('id-of-form-element').observe('change', function () {// do stuff in here. }); On Fri, Jul 10, 2009 at 3:33 PM, Mathew math...@gmail.com wrote: I don't see Form.Element.EventObserver in the API doc. Is it deprecated ? If not could someone provide an example of using this API. Basically

[Proto-Scripty] Re: differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-11 Thread Rick Waldron
attr.edges is an array... keep it simple :) http://jsbin.com/unohi I just added to the last example, so view the source Rick On Sat, Jul 11, 2009 at 10:54 AM, ronman ron.new...@gmail.com wrote: It works! Thank you muchly. Valuable for learning, too. Now the code executes far enough

[Proto-Scripty] Re: Observing elements not working...

2009-07-16 Thread Rick Waldron
are you adding the observer after the dom is loaded? document.observe('dom:loaded', function () [ $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); }); On Thu, Jul 16, 2009 at 7:30 AM, david david.brill...@gmail.com wrote: Hi lun.ashis, One thing, because code seems

[Proto-Scripty] Re: selectors failing in IE8FF3

2009-07-20 Thread Rick Waldron
selector specs. Apparently, they didn't compare notes... Rick On Mon, Jul 20, 2009 at 11:28 AM, Mona Remlawi mona.reml...@gmail.comwrote: You've guessed it, it's unfeasible, the amount of effort that takes makes my head hurt :) Anyway, i found the little bug in prototype (hooray!). IE8

[Proto-Scripty] Re: selectors failing in IE8FF3

2009-07-20 Thread Rick Waldron
. and : altogether. On Mon, Jul 20, 2009 at 10:10 PM, Rick Waldron waldron.r...@gmail.comwrote: Instead of changing the way the core works... and potentially causing breakage to existing code - perhaps you might try rewriting your selector statement with escaped periods. This question caused me

[Proto-Scripty] Re: selectors failing in IE8FF3

2009-07-21 Thread Rick Waldron
This is a really interesting thread... I don't want to retract my statement, but I dont entirely agree with what i wrote previously (it's all part of learning right ?). I've discussed this with a respected colleague, and we both agree that just because a spec says so doesn't make it right or

[Proto-Scripty] Re: scriptaculous PHP help

2009-07-24 Thread Rick Waldron
Or output class=some-class in the element tags and observe the whole set with some event delegation... will keep your markup and JS sep. and clean. On Fri, Jul 24, 2009 at 7:59 PM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, echo h2a href=\#\ onclick=\Effect.toggle('d2','BLIND',

[Proto-Scripty] Re: selectors failing in IE8FF3 @ Colin

2009-07-29 Thread Rick Waldron
worth!!! I think, as Rick implied above, that the designers of CSS selectors were ill-advised to use symbols which were permitted in id's (I'm assuming that the HTML spec came before the CSS one, but I haven't checked). But formally, there are no contexts in which these are ambiguous

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Rick Waldron
Drop the parens around the first argument. function foo(arg) { return $(arg) ? true : alert('Element Does not exist'); // i commented this out: false; } ... On Tue, Jul 28, 2009 at 12:02 PM, Alex McAuley webmas...@thecarmarketplace.com wrote: In my usual Not enough coffee moments i

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Rick Waldron
'); However it cannot be achieved so it must be done usung if/else.. Regards Alex Mcauley http://www.thevacancymarket.com - Original Message - *From:* Rick Waldron waldron.r...@gmail.com *To:* prototype-scriptaculous@googlegroups.com *Sent:* Thursday, July 30, 2009 1:18 PM

[Proto-Scripty] Re: ternary operators

2009-07-30 Thread Rick Waldron
Hehe. I guess i missed that. I read through these pretty quickly... On Thu, Jul 30, 2009 at 2:35 PM, Alex McAuley webmas...@thecarmarketplace.com wrote: the original post is signed with my name !! Alex Mcauley http://www.thevacancymarket.com - Original Message - *From:* Rick

[Proto-Scripty] Re: Newbee question : Compatibility with javascript 1.5

2009-07-30 Thread Rick Waldron
That sounds like fun... i like device app development. Can you tell us what device you're working with? That will be helpful Rick On Thu, Jul 30, 2009 at 3:55 PM, Christophe christophe.dec...@gmail.comwrote: Hi there, Apologies to everybody if my question is offending in any way

[Proto-Scripty] Re: can I get a list of event listeners on an element?

2009-08-25 Thread Rick Waldron
This question has been asked... but I've never seen a solid answer... maybe I just missed them. But if you're using version 1.6.1_rc3 (or any version with Element#getStorage() ) var _storage= $('element').getStorage(); console.log(

[Proto-Scripty] Re: When to expect code changes to be added to Prototype.

2009-09-05 Thread Rick Waldron
I wasn't previously aware of this enhancement (which is most def. is)... however re: TJ's reply, I think support for something like this is quite appropriate, as i know the jQuery does support the use of multiple selector expressions sep. by commas. Rick On Fri, Sep 4, 2009 at 11:49 AM, T.J

[Proto-Scripty] Re: how merge two json objects?

2009-09-15 Thread Rick Waldron
To note, the jQuery#extend implementation is a bit more in depth... has there been any talk in the proto-core list about strengthening Object#extend? Rick On Mon, Sep 14, 2009 at 8:35 PM, Miguel Beltran R. yourpa...@gmail.comwrote: Thanks to both #Mangus and #Alexander Use Object.extend look

[Proto-Scripty] Re: A better way to check for an element.

2009-09-18 Thread Rick Waldron
Its not much different, but this is what i do: if ( $('some_button') ) { $('some_button').observe('click', function (e) { //do stuff. }); } Ideally, i wish prototype was a bit more strict about this stuff... If you're using Firebug, you could replace your $() definition: function

[Proto-Scripty] Re: A better way to check for an element.

2009-09-20 Thread Rick Waldron
usage. Rick On Sat, Sep 19, 2009 at 8:39 AM, Radoslav Stankov rstan...@gmail.comwrote: You can use something like my CD3.Behavior lib ( http://github.com/RStankov/controldepo-3-widgets/blob/master/src/behaviors.js ) code CD3.Behaviors({'#element:click': yourClickHandler

[Proto-Scripty] Re: A better way to check for an element.

2009-09-20 Thread Rick Waldron
Thats not to say that when() isn't pretty cool :) On Sun, Sep 20, 2009 at 9:00 AM, Rick Waldron waldron.r...@gmail.comwrote: Mislav's when() seems a bit redundant when called inside of document.observe('dom:loaded')... I think this topic would be interesting to discuss in the the proto

[Proto-Scripty] Re: including prototype dynamically, and observe:domloaded

2009-09-20 Thread Rick Waldron
If none of the above work... document.write('script type=text/javascript src=' http://somewhere/edu/is//prototype.js;\/script'); have you tried removing the extra / before prototype.js? On Fri, Sep 18, 2009 at 1:45 PM, Ngan Pham nganp...@gmail.com wrote: Hi jrochkind, I believe

[Proto-Scripty] Re: Observe new elements

2009-09-26 Thread Rick Waldron
var _observers On Thu, Sep 24, 2009 at 5:41 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: You need to stopObserving the old ones relative to your element (cleans up the observers) and add a new observer as normal HTH Alex Mcauley http://www.thevacancymarket.com -

[Proto-Scripty] Re: Observe new elements

2009-09-26 Thread Rick Waldron
() { Observers(); }); On Sat, Sep 26, 2009 at 5:56 PM, Rick Waldron waldron.r...@gmail.comwrote: var _observers On Thu, Sep 24, 2009 at 5:41 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: You need to stopObserving the old ones relative to your element (cleans up the observers

[Proto-Scripty] Re: Forms

2009-10-29 Thread Rick . Wellman
$F() gets the *value* of the form element (i.e. a dropdown's value, the text in a text box, etc.) $() just gets the DOM element itself (so would return the dropdown, the text box, etc. respectively). [so also, using $F() on a non-form element is fairly pointless] -Original Message- From:

[Proto-Scripty] Re: $$ is a violation of Model-View-Controller

2009-10-29 Thread Rick . Wellman
Though I consider javascript/prototype to be one of my weaker web app skills (which is why I like Prototype in the first place), I feel compelled to add to this discussion in that: While I certainly agree with the Use Case that you are describing (and the one referenced in the response) I

Re: [Proto-Scripty] Re: Prototype conflict solution

2009-12-02 Thread Rick Waldron
Wow, I'm flattered... I was beginning to think that GenevaJS amounted to nothing more then a novelty :D Keep in mind that GenevaJS is not 100% yet, but if you do use it and come across broken or missing methods, you can certainly contribute Rick On Wed, Dec 2, 2009 at 7:43 AM, david

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

2009-12-06 Thread Rick Waldron
Instead of onSuccess, try using onComplete... -- Sent from my Palm Prē evilC wrote: Thanks TJ, I tried to make a self-contained version, so I ripped out prototype and did the same thing with object literals, and I still had issues, so clearly it wasnt prototype. In the end I figured out that

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

2009-12-06 Thread Rick Waldron
Also, in PHP related advice, *ereg *and *split* are deprecated. if you turned on your PHP errors and use E_ALL, it will throw back errors. Rick On Sun, Dec 6, 2009 at 6:36 PM, Rick Waldron waldron.r...@gmail.com wrote: Actually, my reasoning for that response was a fluke, so ignore

Re: [Proto-Scripty] Re: Delay or defer ajax requests

2009-12-07 Thread Rick Waldron
I'm not at a computer to try this out, and well, it might be a little hair-brained but perhaps... ( new Ajax.Updater() ).defer(); -- Sent from my Palm Prē T.J. Crowder wrote: Hi, I'm using animations on my website, and i want to start an Ajax request after a animation has finished. So i

Re: [Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-07 Thread Rick Waldron
IMO, this is bad practice. $(element).insert('lt;divlt;/div');  -- Sent from my Palm Prē david wrote: Hi All, This is not the original question, but to insert elements in the DOM, you should do: $('myContent').innerHTML='lt;div .. lt;/div' It's faster in execution than creating an

Re: [Proto-Scripty] When Ajax Insert Expands Page Downward...

2009-12-07 Thread Rick Waldron
Yes and it drives me nuts. I'm sure there is a correct way of fixing this, but i'm ok with just setting somekind of footer content below the fold so that I always have scroll bars -- Sent from my Palm Prē Dave L wrote: I am having an issue: when inserting a number of elements that end up

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

2009-12-07 Thread Rick Waldron
A good place to start, add: console.log('this is my first debug output'); Anywhere inside of a loaded dom closure (like your initializer function or prototype's document.observe('dom:loaded', ...);  ) -- Sent from my Palm Prē evilC wrote: Great, that worked. I didn't realise this could be

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

2009-12-07 Thread Rick Waldron
Very, very cool. -- Sent from my Palm Prē evilC wrote: The idea of Placebook is social networking for places. Sort of like if you could have a facebook or twitter account for a place. People can log in and add locations, then people can make posts on it's wall, or add tags to the location to

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

2009-12-07 Thread Rick Waldron
Weird, maybe I thought it was doing what it should do... Either way, nice fix -- Sent from my Palm Prē evilC wrote: For future reference, document.observe('resize',winResize); Never fires. Maybe because the document as a whole has not been extended? However, Event.observe(window,

Re: [Proto-Scripty] Re: document.observe and Sorter in scrolling li sts

2009-12-07 Thread Rick Waldron
Missing: lt;head lt;body If found, please return. -- Sent from my Palm Prē Niko Schwarz wrote: I don't know why, but somehow this snippet executes document.observe fine. I just open another script tag and suddenly the world is good. But the issue with the scrolling drag and drop remains.

Re: [Proto-Scripty] Element.update() without evaluating the script.

2009-12-07 Thread Rick Waldron
What condition should exist to stop the evaluation? -- Sent from my Palm Prē JoJo wrote: I have a lt;textarea id=foo which contains JS code that people can copy and paste. It's dynamically generated, so I do something like this: $('foo').update('lt;script . ' + this.someVariable + '/);

Re: [Proto-Scripty] Internet Explorer bug with Effect.Appear

2009-12-07 Thread Rick Waldron
Before I even begin to help you with this... you have 3+ copies of the Prototype/Scriptaculous libraries being called in. While your at it: http://www.getfirebug.com On Mon, Dec 7, 2009 at 2:03 PM, Mark K. mki...@gmail.com wrote: Hey all, If you take a look at a site I'm working on at

Re: [Proto-Scripty] Re: Include scripts

2009-12-09 Thread Rick Waldron
Something I came across in my Twitter feed... LABjs On Wed, Dec 9, 2009 at 6:54 AM, Frédéric f...@gbiloba.org wrote: Le mercredi 9 décembre 2009 11:25, T.J. Crowder a écrit : Your best bet for something like that is to have a build process that combines the scripts (and then minifies

RE: [Proto-Scripty] Issues selecting checkboxes in FF

2009-12-15 Thread Rick . Wellman
Um,... I am pretty sure if you see that a checkbox is checked then it is checked. You gotta suspect your validation code ('cause it sounds like your validation code is checking a group of checkboxes to make sure that at least one is checked). -Original Message- From:

RE: [Proto-Scripty] Blinddown IE7 problem

2009-12-30 Thread Rick . Wellman
It seems to me that there is a comment somewhere that you need to put a container div within the div you are applying the effect to. i.e. div div ... all of your stuff ... /div /div Sorry I do not have time to find the original documentation and/or confirm but I am pretty sure I have come

RE: [Proto-Scripty] Re: Blinddown IE7 problem

2009-12-30 Thread Rick . Wellman
Ok, well that is all I got. I did notice that you had an unordered list outside of the div. Until you find the actual problem, I highly suggest putting everything inside the container. Good luck. div style=overflow: visible; div div class=action_plan heading_container h3 class=title Plan img

[Proto-Scripty] RSS Feed

2010-01-19 Thread Rick . Wellman
(the dreaded MS Outlook). I mainly suspect the server side because I am getting other RSS subscriptions. Rick Wellman Applications Programmer -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this gro

RE: [Proto-Scripty] Re: Multiple timed slideshows

2010-02-01 Thread Rick . Wellman
I am guessing that one of two things is true (maybe a little of both): 1) Though this is the correct forum, no response would mean that no one who reads this knows of boiler plate code. 2) I cannot imagine this is terribly different from code you've done before with small modifications. Is

RE: [Proto-Scripty] Ajax Updater running from a DVD under IE8

2010-02-16 Thread Rick . Wellman
Um, maybe I'm whack, but... Doesn't an AJAX request need an HTTP server? Am I correct in understanding that you are just trying to distribute files/static content? -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On

RE: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML

2010-04-20 Thread Rick . Wellman
I've only partially followed this thread so apologies if this was suggested/shotdown. Can you wrap it with a well-formed HTML element? i.e. div (most likely) and remove it with javascript/prototype? -Original Message- From: prototype-scriptaculous@googlegroups.com

RE: [Proto-Scripty] Ajax in IE7 vs. IE8

2010-05-28 Thread Rick . Wellman
Sorry for this short reply which may not even be correct but... Usually the port number is considered part of the URL from the server session viewpoint so if you're trying to go back to a different port than the rest of your app uses, that could be a problem. [I may have butchered this

RE: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Rick . Wellman
I'm pretty sure Ralph's suggestion will work. I prefer to write this in a way which will hopefully highlight the potential bug to a less-experienced maintenance developer after I have moved onto a 6-digit consulting career that I run two-hours a day from the Bahamas (boy, sure hope my idea

RE: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Rick . Wellman
Oops, already made a mistake; Make that: var cmd = $('masinfo' + id + ).show(); setTimeout(cmd,500,id); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Rick.Wellman Sent: Tuesday, July 20, 2010 3:42 PM To:

RE: [Proto-Scripty] invoke method update

2010-08-25 Thread Rick . Wellman
This is weird... when FF renders this HTML for me it is putting the divs inside each other like the following. I have never seen this behavior before (but explains why the code is working like it is): div id=OUT div class=out out1 div class=out out2

RE: [Proto-Scripty] Re: can't get queues to work right

2010-09-01 Thread Rick . Wellman
Glad you got it working but FWIW, Your understanding of the queues seems to be ok but something must be lost in the translation... is the Appear beginning *before* the Fade finishes if you use the queue? Your original message states that it Fades (and I read that to mean that the Fade

RE: [Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Rick . Wellman
Is it just me,... I don't understand what you're even asking/trying to accomplish? What kind of DOM object are you hoping to create? Call it a potayto, or a potahto but any element you insert the HTML into is a wrapper. Apologies if this seems terse but I truly do not understand your

[Proto-Scripty] Try.these deprecated?

2011-06-30 Thread Rick Witter
According to the documentation Try.these has been deprecated. Is this right? It's still being used in the Ajax class. The change was in this checkin: https://github.com/sstephenson/prototype/commit/f12b83ef236a54306c7f686ae4c1c45910e2fc57#src/lang.js rick -- You received this message