[Proto-Scripty] $(dialog_1) is null by firebug

2009-04-15 Thread SamuelXiao
I am writing an application using prototype.js and dialog.2.0.js (http://roland.devarea.nl/dialog/#e6) the iframe effect. But I encountered a problem when I try to fitting it into my application. What I want to do is that when a user click a href=# id=dialog_1Show Iframe/a , a dialog box will be

[Proto-Scripty] Re: $(dialog_1) is null by firebug

2009-04-15 Thread Szymon Wilkołazki
SamuelXiao wrote: I am writing an application using prototype.js and dialog.2.0.js (http://roland.devarea.nl/dialog/#e6) the iframe effect. But I encountered a problem when I try to fitting it into my application. What I want to do is that when a user click a href=# id=dialog_1Show Iframe/a

[Proto-Scripty] Re: $(dialog_1) is null by firebug

2009-04-15 Thread SamuelXiao
Wow, it works fine now, thanks very much. On Apr 15, 3:48 pm, Szymon Wilkołazki wilkola...@gmail.com wrote: SamuelXiao wrote: I am writing an application using prototype.js and dialog.2.0.js (http://roland.devarea.nl/dialog/#e6) the iframe effect.  But I encountered a problem when I try

[Proto-Scripty] Re: Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread mareb
Hi, I did grab the wrong line from error console. This line comes from google code. A real line from prototype.js is: function stopObserving does not always return a value (line 4593) --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Re: Prototype and Protovis

2009-04-15 Thread Richard Quadling
2009/4/14 yoshi jo...@mit.edu: I'm sure some of you have seen the nice work that is being done on protovis.. http://vis.stanford.edu/protovis/ I would like to implement a test of this graphing capability which returns a chart in response to an ajax.updater call. I have never quite

[Proto-Scripty] Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread mareb
Hello if I use prototype.js there are shown many warning with Firefox. For example: function _uCInfo does not always return a value (Line 266) There are so much warnings, that it is hard to find the warnings of my own code. It should be easy to eliminate the warnings, but I don't like to change

[Proto-Scripty] Re: Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread T.J. Crowder
Hi, function _uCInfo does not always return a value (Line 266) Does Prototype have a _uCInfo function? I can't find it (1.6.0.3). If not, can you give an example from one of Prototype's own functions? I don't normally use the Firefox console, but I just ran a few simple pages with it showing

[Proto-Scripty] Re: Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread Marcus Schwarz
Hi mareb, if I use prototype.js there are shown many warning with Firefox. For example: function _uCInfo does not always return a value (Line 266) I think this is a problem with google analytics, not with prototype. If you google for _uCInfo you find a lot of results about google analytics,

[Proto-Scripty] Prototype warnings from Firefox (not google)

2009-04-15 Thread mareb
Hello if I use prototype.js there are shown many warning with Firefox. For example: function stopObserving does not always return a value (line 4593) There are so much warnings, that it is hard to find the warnings of my own code. It should be easy to eliminate the warnings, but I don't like to

[Proto-Scripty] Re: Prototype warnings from Firefox (not google)

2009-04-15 Thread T.J. Crowder
Hi, You already have a thread going on this: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/2447d7fb08505976 Please don't duplicate threads. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Apr 15, 12:13 

[Proto-Scripty] Re: Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread T.J. Crowder
Hi, What version are you using? In 1.6.0.3 (the latest non-beta copy), stopObserving is lines 4022-4051, and there is no non-exception code path that doesn't return a value. Again, using Prototype, I don't see these errors from the Firefox error console. Do you have some kind of lint plugin?

[Proto-Scripty] Re: Named functions in onComplete not waiting for completion

2009-04-15 Thread Diodeus
Yes, I understand what you've said. I was making it more convoluted than need be. wrapAjaxUpdater('showsomething.php', 'somediv', handleCompletion); - works correctly wrapAjaxUpdater('showsomething.php', 'somediv', handleCompletion()); - does not work because I'm calling the function, not

[Proto-Scripty] Re: Named functions in onComplete not waiting for completion

2009-04-15 Thread Szymon Wilkołazki
Diodeus wrote: [...] In another situation, I need to pass parameters to the callback. So would I do it this way? var temp = handleCompletion(5) wrapAjaxUpdater('showsomething.php?id=5', 'somediv', temp); That still is not correct. This would assign the *result* of the handleCompletion

[Proto-Scripty] Re: Named functions in onComplete not waiting for completion

2009-04-15 Thread T.J. Crowder
Hi, In another situation, I need to pass parameters to the callback. So would I do it this way? var temp = handleCompletion(5) wrapAjaxUpdater('showsomething.php?id=5', 'somediv', temp); You're calling the function immediately again. This line: var temp = handleCompletion(5) ...calls

[Proto-Scripty] Re: Named functions in onComplete not waiting for completion

2009-04-15 Thread Diodeus
Thanks for the tips T.J. Curry was been around a lot longer than Prototype. Yep, it's a strange name. see: http://en.wikipedia.org/wiki/Currying On Apr 15, 10:21 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, In another situation, I need to pass parameters to the callback. So would

[Proto-Scripty] Re: 1.6.1 RC2: What happened to $A()?

2009-04-15 Thread mr_justin
Well damn, it looks like the iterable.toArray() stuff has been in there for quite some time. I looked back through all the versions of prototype we have been using for the last year and this method has remained mostly the same. I'm now thinking this has been buggy code in our application for a

[Proto-Scripty] async ajax requests and timeouts delimma

2009-04-15 Thread Mona Remlawi
dear prototypers, i have implemented the support for onTimeout in Ajax Responders, and it's working like a charm (yeey!) the delimma is when we have multiple simaltaneous requests, the earlier requests would be slowing down the later requests and thus the timeout set on the later requests would

[Proto-Scripty] Re: async ajax requests and timeouts delimma

2009-04-15 Thread Mona Remlawi
... ok i have this working, but still, it's not optimal to just increment active timeouts, or is it? any thoughts here are much appreciated -- // cumulative timeout in msecs Ajax.activeRequestTimeout = 0; Ajax.Responders.register({ onCreate:function(request) {

[Proto-Scripty] slowing down an animation

2009-04-15 Thread Walter Lee Davis
I'm trying to animate a sprite background, but I want it to pause between frames, not zip through them at whatever speed the computer can muster. How would you call a function only 6 times, pausing 40 milliseconds between steps? Thanks in advance, Walter

[Proto-Scripty] Re: slowing down an animation

2009-04-15 Thread Davy Wavy
40 milliseconds is pretty fast. That's 25 frames per second. But in general I think you would simply write a handler for a timer event set to whatever period you want and then unregister it after the sixth call. The same goes for any programming language on any platform.

[Proto-Scripty] Re: slowing down an animation

2009-04-15 Thread Davy Wavy
I found two ways to do it. Prototype has a periodical executer class in it: { peObj = new PeriodicalExecuter( this.peMethod, 1 ); // every second peObj._peCount = 0; }, peMethod: function(peObj) { $('debug').innerHTML += peObj._peCount + ' : peMethodbr/';

[Proto-Scripty] suppress setEnabled call to onChange w/sliders

2009-04-15 Thread spaceage
I'm noticing that calling setEnabled on a slider triggers the onChange callback...is there any way to suppress the behavior? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Warnings from Firefox (Fehler-Konsole)

2009-04-15 Thread mareb
Hello, On 15 Apr., 13:56, T.J. Crowder t...@crowdersoftware.com wrote: Hi, What version are you using?  In 1.6.0.3 (the latest non-beta copy), stopObserving is lines 4022-4051, and there is no non-exception code path that doesn't return a value. Sorry, not to say it: my version is