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

2011-06-06 Thread Bertilo Wennergren
ject, 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 "P

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

2011-05-14 Thread Bertilo Wennergren
ou 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 & s

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

2011-05-10 Thread Bertilo Wennergren
On Mon, May 9, 2011 at 15:12, sclaflin 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 this

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

2011-03-11 Thread Bertilo Wennergren
to do with entered data, or if you'd like to inform the user precisely what kind of data would 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://bertil

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

2011-02-25 Thread Bertilo Wennergren
7;click', function() { effect_1 = 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

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

2011-02-20 Thread Bertilo Wennergren
use this - in theory: var div = $$('#errodlg')[0]; or var div = $$('#errodlg').first(); or even var div = $$('#errodlg').last(); // :) Or will that throw an error if there is no element with that id? It's unnecessary anyway... -- Bertilo Wennergren berti...

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

2011-02-18 Thread Bertilo Wennergren
HTML 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 rece

Re: [Proto-Scripty] Stop Ajax.PeriodicalUpdater

2011-02-17 Thread Bertilo Wennergren
houpdelta 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

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

2011-02-04 Thread Bertilo Wennergren
he capture phase, and that is not supported by Prototypes "bind" and "on" functions. Instead we have to use the basic Javascript "addEventListener". If it turns out I'm wrong about this, I will be very happy. -- Bertilo Wennergren -- You received this message becaus

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

2011-02-04 Thread Bertilo Wennergren
asic principles, 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 prot

[Proto-Scripty] $break depecated (was: Re: find next element in an array?)

2011-02-01 Thread Bertilo Wennergren
No. It always seemed really strange and unclean to me. So even if it's not deprecated, a cleaner solution is most welcome. > you can define it yourself if/when Prototype > actually drops support for it (1.7 still seems to have it, but I bet > the next major version aligns with ECMASc

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 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 this message be

Re: [Proto-Scripty] trapping form submit

2011-01-27 Thread Bertilo Wennergren
On Wed, Jan 26, 2011 at 15:55, code_bloke 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, regardless of the means of >

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 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 find any i

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

2011-01-13 Thread Bertilo Wennergren
can certainly do 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 gr

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

2010-11-23 Thread Bertilo Wennergren
nting 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 receiv

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

2010-11-17 Thread Bertilo Wennergren
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&qu

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

2010-11-17 Thread Bertilo Wennergren
o 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.acul

Re: [Proto-Scripty] Re: Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-18 Thread Bertilo Wennergren
I just wrote: > Walter Lee Davis wrote: > >> On Sep 18, 2010, at 12:00 PM, Bertilo Wennergren wrote: >> >>> SInce 1.7RC2 was released in May "with the intent of putting out a >>> final 1.7 release very soon", after which as far as I can tell not

Re: [Proto-Scripty] Re: Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-18 Thread Bertilo Wennergren
Walter Lee Davis wrote: > On Sep 18, 2010, at 12:00 PM, Bertilo Wennergren wrote: > >> SInce 1.7RC2 was released in May "with the intent of putting out a >> final 1.7 release very soon", after which as far as I can tell nothing >> has happened (complete silenc

Re: [Proto-Scripty] Re: Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-18 Thread Bertilo Wennergren
, after which as far as I can tell nothing has happened (complete silence on the Prototype blog since then), I tend to regard the project as dead. Any information to the contrary would be very welcome. I did try RC2 shortly and found it not fit for actual use. Be aware. -- Bertilo Wennergren be

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

2008-10-07 Thread Bertilo Wennergren
hould be easy to fix but checking for the MIME type used, and skipping the upper-casing if it's not "text/html". -- Bertilo Wennergren <http://bertilow.com> --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Problems with DOM builder and xhtml

2008-10-07 Thread Bertilo Wennergren
problem by hacking the code in "builder.js" (removing a couple of ".toUpperCase()"), 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 Prot