[Proto-Scripty] Re: Detecting failure

2009-08-07 Thread Alex McAuley
Just change the script to adjust a little http://pastie.org/575168 HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Krish ilaymy...@yahoo.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Friday, August 07, 2009 5:18 AM

[Proto-Scripty] PeriodicalExecuter Error: this.callback is not a function (prototype.js Line 308)

2009-08-07 Thread Schweitzer
Hi there! Got an error with Prototypes PeriodicalExecuter() (Version 1.6.0.3): When I use the verified (http://www.prototypejs.org/api/ periodicalExecuter) new PeriodicalExecuter(myobject.testMethod(), 3);, everything seems fine (no error in Firebug etc) but after 3 Seconds an error

[Proto-Scripty] Re: PeriodicalExecuter Error: this.callback is not a function (prototype.js Line 308)

2009-08-07 Thread T.J. Crowder
Hi, When I change the line into new PeriodicalExecuter (myobject.unknownMethod(), 3);, firebug at once states correctly that this function doesn't exist, which is right. And if it did exist, it would execute once, immediately, and the PeriodicalExecuter would fail three seconds later. This

[Proto-Scripty] Re: 2 onchange functions - 1 jquery, 1 prototype - not working in safari

2009-08-07 Thread Ram
Got it working by putting the hidden field inside one of the tds On Aug 7, 9:33 am, Ram yourstruly.vi...@gmail.com wrote: Hi, jNice is a jQuery plugin for nice form elements basically -http://www.whitespace-creative.com/jquery/jNice/ i narrowed down the issue to one line of code in the

[Proto-Scripty] Re: PeriodicalExecuter Error: this.callback is not a function (prototype.js Line 308)

2009-08-07 Thread Schweitzer
Thank you very much for responding that fast and clear. In fact you are right, I misinterpreted the usage. Thanks to you, this file is closed now ;) On 7 Aug., 10:51, T.J. Crowder t...@crowdersoftware.com wrote: Hi, When I change the line into new PeriodicalExecuter

[Proto-Scripty] RJS working in FF not in Safari

2009-08-07 Thread Ram
Hi, Im trying to insert a tr into a table. the code is as below. HTML - table id=tab tr !-- SOME tds HERE -- /tr %= render :partial = item, :collection = @order.items % tr onmouseover=document.getElementById ('plussign').style.display='block';

[Proto-Scripty] Re: RJS working in FF not in Safari

2009-08-07 Thread Alex McAuley
Dude i am not sure why you use prototype and then revert to native document.getElementById().. and other vanilla JS Try putting a tbody in your table tbody is required HTML in tables ... some browsers add it if its missing and some dont - Safari might be one that doesnt.

[Proto-Scripty] Re: RJS working in FF not in Safari

2009-08-07 Thread Vinay Seshadri
Sheesh! bang on! including tbody tags did it. Thanks! oh and the vanilla js.. still playing around with the page.. thats all :) 2009/8/7 Alex McAuley webmas...@thecarmarketplace.com Dude i am not sure why you use prototype and then revert to native document.getElementById().. and other

[Proto-Scripty] Sortable.create and onHover

2009-08-07 Thread Sebastien
Hi All, I need to capture the onHover event for on a Sortable element. The onHover callback does not work (as far as I tested) for Sortable element, is there a way around this? I can of course make the element also a Droppable, in which case I can work around this restriction, but it is

[Proto-Scripty] Example values input text

2009-08-07 Thread spielberg
Hello to the people of the group. It´s my first question. Any one know abut something like this http://mucur.name/system/jquery_example/ to prototype?? I need to use the element title of the text input. Thanks for all; Spielberg --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-07 Thread nlloyds
On Aug 6, 4:32 pm, mr_justin gro...@jperkins.otherinbox.com wrote: Don't call a method on an element unless it exists. This is a basic defensive coding technique. He gets this. His question is about why he does not receive an exception. I'm not sure, and now that I think about it, I may have

[Proto-Scripty] Re: Sortable.create and onHover

2009-08-07 Thread Alex McAuley
is it not onmouseover ? Never knew there was an onHover Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Sebastien seb.mar...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Friday, August 07, 2009 11:24 AM Subject:

[Proto-Scripty] Re: Example values input text

2009-08-07 Thread Alex McAuley
You can do this quite easily in prototype... for input type=text just use the title attribute input type=text class=access title=Type something here... / Event.observe(window,'load',function() { $$('.access').invoke('observe','focus',function(element) {

[Proto-Scripty] Re: Example values input text

2009-08-07 Thread DJ Mangus
I don't know of a plugin like that but shouldn't be too hard to port On 8/7/09, spielberg inmo...@gmail.com wrote: Hello to the people of the group. It´s my first question. Any one know abut something like this http://mucur.name/system/jquery_example/ to prototype?? I need to use the element

[Proto-Scripty] Re: Sortable.create and onHover

2009-08-07 Thread mr_justin
What exactly are you trying to do with that callback? Let's see some code. Sortable just implements Draggables and Droppables for you under the covers, and the onHover callback you pass to Sortable is just passed on through to the Droppable constructor. You know the onHover is for when your

[Proto-Scripty] Re: 2 onchange functions - 1 jquery, 1 prototype - not working in safari

2009-08-07 Thread mr_justin
Got it working by putting the hidden field inside one of the tds Yes, I imagine having valid HTML would be helpful ;) -justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-07 Thread mr_justin
He gets this. His question is about why he does not receive an exception. I'm not sure, and now that I think about it, I may have had the same problem. Oh my bad, I was reading this all wrong. That is weird indeed, I had never noticed that before. It looks like a browser issue, not a

[Proto-Scripty] autosuggest feature enter button hack in new Ajax.Autocompleter

2009-08-07 Thread Yogesh
Hello All, I have just joined this group and it's my first post. I will like to thank the community for coming up with such a powerful library. I am using new Ajax.Autocompleter in one of script and it works fine. I am using it in a input text box, in which, user types in the search term and

[Proto-Scripty] Re: autosuggest feature enter button hack in new Ajax.Autocompleter

2009-08-07 Thread Matt Foster
I've never actually used this component but in researching the docs, could you use the callback for afterUpdateElement and then programatically execute the form's submit method? http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter -- http://positionabsolute.net On Aug 7, 10:11 

[Proto-Scripty] Re: autosuggest feature enter button hack in new Ajax.Autocompleter

2009-08-07 Thread Yogesh
Hi Matt, I tried it and it works. Thank you so much for the quick reply. Thanks again. Regards, Yogesh On Aug 7, 11:48 am, Matt Foster mattfoste...@gmail.com wrote: I've never actually used this component but in researching the docs, could you use the callback for afterUpdateElement and then

[Proto-Scripty] Updating a form's clean state

2009-08-07 Thread mr_justin
This is in no way a prototype related question, but we've got some pretty smart JavasScript people on here so I figured I'd pose the question. Here's the scenario: I have a form on a page with a bunch of inputs (text boxes). That form is hidden by default. Elsewhere on the page is a list of

[Proto-Scripty] Re: Updating a form's clean state

2009-08-07 Thread DJ Mangus
You could implement your own reset method on your form object. On 8/7/09, mr_justin gro...@jperkins.otherinbox.com wrote: This is in no way a prototype related question, but we've got some pretty smart JavasScript people on here so I figured I'd pose the question. Here's the scenario: I

[Proto-Scripty] Effect.Appear Fade in IE

2009-08-07 Thread Andy Daykin
Hello, I'm having some difficulties getting the Effect.Appear and Effect.Fade to work in IE. The Effect.Appear on the page http://spanglerdesign.com/test/askmary/home/eatbetter isn't working in IE 6 and 7. If you click on the click here to read more link the new window won't show. The

[Proto-Scripty] help with select on element not working

2009-08-07 Thread molo
I have the following httml and javascript code (see snippets below). I am running this using firebug I am able to get the element lotTotalTr = $(accountTotal) to work However the select on the element does not work. I have tried many variations of the select totalLotSharesTd =

[Proto-Scripty] Re: lightwindow not working after ajax update

2009-08-07 Thread Martín Marqués
lightwindow is based on scriptaculous. http://www.stickmanlabs.com/lightwindow/ Nobody uses it? 2009/8/6 DJ Mangus d.man...@gmail.com: Explain lightwindow for me, does it use javascript to display?  If so then post that script too please. On 8/6/09, Martín Marqués martin.marq...@gmail.com

[Proto-Scripty] Re: lightwindow not working after ajax update

2009-08-07 Thread DJ Mangus
From glancing at the source of that it doesn't look like it handles elements created after the lightwindow object is initialized. You might want to get ahold of the author of that for support with it. 2009/8/7 Martín Marqués martin.marq...@gmail.com: lightwindow is based on scriptaculous.

[Proto-Scripty] Re: Updating a form's clean state

2009-08-07 Thread mr_justin
Yeah that would require quite a bit more work than I was thinking. I tried out the technique of replacing the entire input control rather than just updating the value, and it works great. Except in IE. Of course. -justin --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] Re: Updating a form's clean state

2009-08-07 Thread DJ Mangus
Of course. Shouldn't be really hard to implement your own reset though. Just keep a hash of initial values and ids (you can use http://www.prototypejs.org/api/element/identify to give elements w/o an id one) and upon customreset set them all back. Then if you save changes to server just update

[Proto-Scripty] How to loop through array? New to Proto

2009-08-07 Thread trope
I have some code that appears to be a prime candidate for a loop. How could I wrap this up in one neat little function??? /* Hide previous errors */ $('ErrorConsumerEmail0address').hide(); $('ErrorConsumerfirstname').hide(); $('ErrorConsumerlastname').hide();

[Proto-Scripty] Re: How to loop through array? New to Proto

2009-08-07 Thread DJ Mangus
Give them all a class of 'error' and use $$('error').each('hide') Note: drycoded on my phone so look those up before using them. On 8/7/09, trope jtrope...@gmail.com wrote: I have some code that appears to be a prime candidate for a loop. How could I wrap this up in one neat little