Re: [Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-06 Thread Bertilo Wennergren
object, you'll get a nasty surprise. So always check if your object is really an object. (I was bitten by this on several occasions, and it hurt.) -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype

Re: [Proto-Scripty] Browser hangs after Ajax call

2011-05-14 Thread Bertilo Wennergren
do, maybe you could try adding them to a document fragment first, and then add the document fragment to the table. Worth a try. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

Re: [Proto-Scripty] Element.cleanWhitespace not recursive?

2011-05-10 Thread Bertilo Wennergren
On Mon, May 9, 2011 at 15:12, sclaflin st...@steveclaflin.com wrote: 1. I don't see any reason for the element = $(element) line, other than possibly for the return value; It's probably there to cater for MSIE. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received

Re: [Proto-Scripty] Re: event on leaving page

2011-03-11 Thread Bertilo Wennergren
be lost, or where on the page it is to be found, or why it's would be so bad to lose it, you're out of luck. This is all by design. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

Re: [Proto-Scripty] How do I embed two functions within one?

2011-02-25 Thread Bertilo Wennergren
= Effect.SlideDown('d1',{duration:1.0}); return false; }; }); But that's just a very hasty sketch. Read up on observe. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype

Re: [Proto-Scripty] Re: New Element code

2011-02-20 Thread Bertilo Wennergren
= $$('#errodlg').last(); // :) Or will that throw an error if there is no element with that id? It's unnecessary anyway... -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

Re: [Proto-Scripty] Re: Next dumb question

2011-02-18 Thread Bertilo Wennergren
property of the HTML element goes pretty close) if they wished. The Firefox extension Web Developer has the option View generated source, which actually does that. It can be quite handy at times. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you

Re: [Proto-Scripty] Stop Ajax.PeriodicalUpdater

2011-02-17 Thread Bertilo Wennergren
houpdelta houpde...@gmail.com wrote: I don't understand, I try to stop Ajax.PeriodicalUpdater but this not good. Why ? [...]            onSucess : function (xhr) { Try onSuccess. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you

Re: [Proto-Scripty] Re: understanding dom:loaded - using invoke('observe','click', function() {}); on a dynamic enumerables

2011-02-04 Thread Bertilo Wennergren
, which are not explained in the Prototype documentation since it would then be huge. -- Bertilo Wennergren -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

Re: [Proto-Scripty] Re: find next element in an array?

2011-02-01 Thread Bertilo Wennergren
On Tue, Feb 1, 2011 at 12:35, T.J. Crowder t...@crowdersoftware.com wrote: (now that `$break` has been deprecated). $break has been deprecated? Where is that documented? What are we supposed to use instead? -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received

Re: [Proto-Scripty] trapping form submit

2011-01-27 Thread Bertilo Wennergren
On Wed, Jan 26, 2011 at 15:55, code_bloke alastair.yo...@gmail.com wrote: Maybe I missing something here but I'm getting unexpected results observing the submit of a form. Given form and script below I would have expected that the form would not submit and the alert to be displayed,

Re: [Proto-Scripty] Problem with .toJSON on hashes in 1.7

2011-01-21 Thread Bertilo Wennergren
On Fri, Jan 21, 2011 at 11:10, stefan ste...@ott.net wrote: I've been using prototype for a while now and I quite enjoy it. However, it seems that with the recent upgrade from 1.6 to 1.7 the toJSON method on hashes broke (or the way that I'm using it is no longer supported). Since I could not

Re: [Proto-Scripty] upload plugin and photo(image) gallery plugin

2011-01-13 Thread Bertilo Wennergren
it with Ajax. https://developer.mozilla.org/en/DOM/File -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

Re: [Proto-Scripty] Re: Extending a DOM-Object

2010-11-23 Thread Bertilo Wennergren
for pointing out this feature. I've been stupidly creating my own data structures to further describe DOM elements. Now I don't have to do that. I use store a lot. It's fast, and seems very safe. -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you

Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Bertilo Wennergren
do we make sure? There must be a better way. Or not? Nothing to do with Prototype or scriptaculous, I know, but still... -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Bertilo Wennergren
will be ready within, say, 100ms, in every modern browser in every kind of computer under any kind of stress from other processes? -- Bertilo Wennergren berti...@gmail.com http://bertilow.com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

[Proto-Scripty] Problems with DOM builder and xhtml

2008-10-07 Thread Bertilo Wennergren
()), but I'm sure those are there for a reason, and some things will probably break (probably in MSIE...). Is this a known problem? Is there some kind of approved and safe solution? I use Prototype 1.6.0.3 and Scriptaculous 1.8.1 (developing on Firefox 3.0.3 on Linux). -- Bertilo Wennergren http

[Proto-Scripty] Re: Problems with DOM builder and xhtml

2008-10-07 Thread Bertilo Wennergren
bit of search turned up this bug which diagnoses the problem in exactly the same way: http://prototype.lighthouseapp.com/projects/8887/tickets/5-builder-node-breaks-xhtml This should be easy to fix but checking for the MIME type used, and skipping the upper-casing if it's not text/html. -- Bertilo