[Proto-Scripty] Re: instanting and reinstanting a function: Ajax.PeriodicalUpdater

2009-11-17 Thread david
Bill, just a precision (in Fact I did not understand that you still need to get every minutes the result): the stop() method is at http://api.prototypejs.org/ajax/ajax/periodicalupdater.html#stop-instance_method normally, you could stop & start the peridical updater at will. -- david On 16 no

[Proto-Scripty] Re: onClick vs Element.observe

2009-11-17 Thread ColinFine
On Nov 16, 11:27 pm, phegaro wrote: > Hi all, >   I have an app that is going to put out a list of items onto a page > and each one has a number of click targets. Now i could setup the > event handler in one of two ways. > > 1. add it into the template that is rendered with the following code >

[Proto-Scripty] Re: onClick vs Element.observe

2009-11-17 Thread david
Hi phegaro, the difference is not about cross browser, because both method is cross browser. first method come the DOM0 specification and the second one is DOM2. The big difference is that the DOM0 event could only have ONE definition. But for the DOM2 event, you'll have the possibility to accep

[Proto-Scripty] Re: IE8 Invalid argument @ setStyle function

2009-11-17 Thread david
Hi Mostafa, What line have an invalid argument ? And what is the function trying to do? means which style is trying to be modified ? -- david On 10 nov, 15:46, Mostafa wrote: > Hi, > > i have a problem when working with iGoogle style drag and drop > portlets on ie8 > my code runs with no probl

[Proto-Scripty] Re: Insert , Defer and Is there a better way?

2009-11-17 Thread T.J. Crowder
Hi, > I'm sorry but are you asking for more than what is above? I can > write a simple page that puts together the HTML and JS listed above. Yes, there are a lot of details not included in that post, which may be relevant. There are lots of good reasons to do a complete, stand- alone test case

[Proto-Scripty] Re: instanting and reinstanting a function: Ajax.PeriodicalUpdater

2009-11-17 Thread bill
david wrote: > Bill, > > just a precision (in Fact I did not understand that you still need to > get every minutes the result): > the stop() method is at > http://api.prototypejs.org/ajax/ajax/periodicalupdater.html#stop-instance_method > > normally, you could stop & start the peridical updater at

[Proto-Scripty] Re: Drag&Drop: Cannot Drop

2009-11-17 Thread david
Hi omarius, there is a trouble in the way you write your droppable. There is an extra array: Droppables.add('formation',[ { onDrop: function() {alert('Dropped on me.'); }, Hoverclass: 'fff'} ] ); just do: Droppables.add('formation',{ onDrop: function() {alert('Dropped on me.');

[Proto-Scripty] Re: Ajax.Updater + Sortable.Create = nothing?

2009-11-17 Thread david
Hi, I think that writing it this way will create the sortable at compilation time, not at execution, so the sortable is create before the update is (launch ?) finished. You should write it inside an anonymous function: Event.observe(window, 'load', function() { new Ajax.Updater('issue_o

[Proto-Scripty] Re: Extending a class

2009-11-17 Thread david
Hi greg, try this: Object.extend(Form.Methods,{ unserialize: function(element, source) { if (!(element = $(element))) throw new Error('DOMElement is required'); source = Object.isString(source) ? source.toQueryParams() : source; element.getElements().each(function(element) {

[Proto-Scripty] Re: instanting and reinstanting a function: Ajax.PeriodicalUpdater

2009-11-17 Thread Alex McAuley
No need to worry about multiple instances ... just check the variable before you initialise it... Alex Mcauley http://www.thevacancymarket.com - Original Message - From: bill To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, November 17, 2009 3:18 PM Subject: [Proto-

[Proto-Scripty] Re: Help Prototype in a few minutes per day

2009-11-17 Thread T.J. Crowder
Thank you "Rumble" for being the first to pitch in[1][2]!! Very much appreciated! [1] https://prototype.lighthouseapp.com/projects/8886/tickets/934 [2] https://prototype.lighthouseapp.com/projects/8886/tickets/935 -- T.J. On Nov 16, 3:49 pm, "T.J. Crowder" wrote: > Hi all, > > As you know, the

[Proto-Scripty] Animated Drop Down with Scrollbar won't display

2009-11-17 Thread Blue Hand Talking
I am using a script for an animated drop down menu with a scrollbar. It will not display normally. If I run the following script in Firebug: scrollbar.recalculateLayout(); It works just fine. My problem, not having in-depth javascript knowledge, is how I can have the above script called. I have

[Proto-Scripty] Re: onClick vs Element.observe

2009-11-17 Thread phegaro
Delegation sounds like a good model for doing this although if i want to pass parameters that are custom to each node like which id did it click on then i assume i have store it as a property on the node and pass arguments to the delgated function? In the above example if doIt took a paramter of t

[Proto-Scripty] Re: Insert , Defer and Is there a better way?

2009-11-17 Thread phegaro
Hi T.J., I tried out creating a unit test case for this and doing stuff on page load and i cant seem to reproduce this on Safari on the desktop anymore. Its odd because i think it might have to do with timing and how long the browser takes to render the content into the DOM but i can reproduce in

Re: [Proto-Scripty] Re: Help Prototype in a few minutes per day

2009-11-17 Thread Иван Жеков
on windows it's quite tricky to rake the stuff. I was required to install maruku gem to rake doc and even then I wasn't able to do so syntax error, unexpected $end, expecting ')' obj.sub!('...', 'тАж') if obj.is_a?(String) or something like it. I will reinstall the tools and see if I am able to

[Proto-Scripty] Hourglass cursor appear on whole page

2009-11-17 Thread JoJo
When the user clicks a button, I want to show an hourglass cursor while its onclick handler is being run. I tried this: $$('body').first().setStyle({cursor: 'progress'}); The hourglass only appears when I hover over the body background. When hovering over the button itself (which is an ), the cur