[Proto-Scripty] Re: Prototype 1.6.1 Released!

2009-09-02 Thread Alex McAuley
Nice work guys... now i have the mamoth task of updating everything with the new version!!!.. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Tuesday, September 01, 2009 10:23 PM Subject: [Proto-Scripty] P

[Proto-Scripty] Re: onchange event delegation on IE

2009-09-02 Thread Mona Remlawi
Hi Radoslav, Thanks for reply, I have indeed did something very similar to this, just some different terminology plus i have wrapped the Form.Element.setValue method to fire 'value:changed' event too. You might wanna do that too if you are initializing your form elements with some default values o

[Proto-Scripty] prototype and visual studio

2009-09-02 Thread TweeZz
Hi, I just bumped into something unexpected and thought it might not be a bad idea to share it with you.. I just read the post about the new prototype release (1.6.1). On the bottom of the blog post there's a link to download prototype.js (http://prototypejs.org/assets/2009/8/31/prototype.js). I

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread T.J. Crowder
Hi, You're probably running into equality vs. identity (loose equality vs. strict equality). The emerging standard for what Array#indexOf is supposed to do uses strict equality (===), not ==, whereas previously Prototype used loose equality. This is an issue with strings because "mpg" !==

[Proto-Scripty] Element#Storage

2009-09-02 Thread Yaffle
after Element removed from dom Element.Storage[uid] still exist? --~--~-~--~~~---~--~~ 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@googl

[Proto-Scripty] Re: prototype dom:loaded in IE 6 and 7 shows race conditions on certain environments?

2009-09-02 Thread Alexander Knöller
Hi. Until tomorrow you can reproduce it with IEs and fitting hardware/ software-environments. (On a virtualBox-installation on a macosX I could not reproduce it, on an Ubuntu with VMWare a colleage could, another could with a native Installation): Try http://www.jungstil.de/akn/bundle.htm?bu=2023

[Proto-Scripty] Re: prototype dom:loaded in IE 6 and 7 shows race conditions on certain environments?

2009-09-02 Thread T.J. Crowder
Hi, That's not a "...pared-down, self-contained example..." Please have a look at Step 3 at the link[1] again, there's a _reason_ for going through the process of creating the pared-down example. [1] http://proto-scripty.wikidot.com/faq#xyzprob -- T.J. Crowder tj / crowder software / com www.cr

[Proto-Scripty] Re: viewportOffset in Opera

2009-09-02 Thread Jon B.
Looks like this is fixed in 1.6.1. Thanks, ~Jon On Aug 29, 12:15 pm, "Jon B." wrote: > I just "rediscovered" the bug described here > --http://www.nickstakenburg.com/tests/viewportoffset/-- where > viewportOffset doesn't work properly in Opera 9.5+. I also found the > patch which can seemingl

[Proto-Scripty] Re: prototype and visual studio

2009-09-02 Thread david
Hi tweeZz, thanks for sharing, but I think it's better to "save as" to a /path/to/ prototype.js. -- david On 2 sep, 09:47, TweeZz wrote: > Hi, > > I just bumped into something unexpected and thought it might not be a > bad idea to share it with you.. > I just read the post about the new protot

[Proto-Scripty] Re: IE8 getOpacity is ALMOST correct

2009-09-02 Thread david
Hi Mojito, it seems to be a problem on float and it's accuracy. If the resulted value must be exactly defined (0.3 and not 0.30004), then you should do a small calculation to set it to the correct value : value = parseInt(value*100,10) / 100 -- david On 1 sep, 22:51, Mojito wrote: > I did

[Proto-Scripty] Re: Element#Storage

2009-09-02 Thread T.J. Crowder
Is that a question? An observation? A bug report? What? -- T.J. Crowder tj / crowder software / com www.crowdersoftware.com On Sep 2, 11:10 am, Yaffle wrote: > after Element removed from dom Element.Storage[uid] still exist? --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] Re: Issue with scripaculous + Safari 4.0.3

2009-09-02 Thread david
Hi Hades, try to find the style applyed to the element after the appear function, and see what CSS property could be wrong, then set this property before the effect.appear is launch. This could be verified, but a lot of things could append. If you'll have a live exemple, we could check what could

[Proto-Scripty] Re: Element#Storage

2009-09-02 Thread david
Hi Yaffle, and on which prototype version ? -- david On 2 sep, 13:17, "T.J. Crowder" wrote: > Is that a question? An observation? A bug report? What? > -- > T.J. Crowder > tj / crowder software / comwww.crowdersoftware.com > > On Sep 2, 11:10 am, Yaffle wrote: > > > after Element removed from

[Proto-Scripty] Re: prototype dom:loaded in IE 6 and 7 shows race conditions on certain environments?

2009-09-02 Thread Alexander Knöller
Since I expect it to be a race condition (pushing up the script node which registered the function for "dom:loaded" some lines in the html- source fixed the problem), and since it is only reproducable on certain hardware/software-environments, producing a pared-down example could take very long. I

[Proto-Scripty] Re: Appear + IE 7

2009-09-02 Thread david
Hi mau, just a guess, because I do not have IE7 on my work computer. If you set the filter opacity to a value in the CSS, does it wotk better ?? -- david On 31 août, 16:56, mau wrote: > Hi, I've an issue with scriptaculous appear effect and IE  7,  when I > nest a div inside another div with d

[Proto-Scripty] Re: Drag and Drop bug IE, css border disappear

2009-09-02 Thread david
Hi Gabriel, which IE version have this behaviour ? Have you a live exemple ? -- david On 29 août, 17:46, Gabriel Andrade wrote: > Heyyy there guys, so here's my problem, and I guess a lot of you guys > had the same problem once. When I set the element to be dragable, the > border of my table d

[Proto-Scripty] onChange event when div content changed

2009-09-02 Thread Hipnotik
Hi How to call some action if content of the div element has changed? I'm talking about something like this: $("my-div").observe("change", function(e) { alert("hello"); }); Expecting behavior: I have this some text now I'm changing "some text" to "some other text" and "alert("hello")" shoul

[Proto-Scripty] Re: onChange event when div content changed

2009-09-02 Thread Walter Lee Davis
There's no reliable cross-browser event that gets fired when the content of a DIV (as opposed to a form element, say) changes. One thing you might try would be to have a PeriodicalExecuter running. Have it compare a global variable with the current innerHTML of that DIV, and if they don't

[Proto-Scripty] Re: Element#Storage

2009-09-02 Thread Yaffle
OK, let it be a bug report =) I think, it's not good. --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread T.J. Crowder
Hi, There's a difference between primitives ("mpg") and objects (new String ("mpg")). The == operator allows for a *lot* of type coercion; the === operator is _supposed_ to be a strict equality operator including type and so "mpg" !== new String("mpg") because they're different types. See section

[Proto-Scripty] Re: Element#Storage

2009-09-02 Thread Yaffle
... latest version --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, sen

[Proto-Scripty] Re: Request: ProtoPacked Prototype 1.6.1 + Scriptaculous 1.8.2

2009-09-02 Thread enigment
Does this msg imply that Scriptaculous 1.8.2 is thought to be compatible with Prototype 1.6.1? If so, is that official? If not, I hate to ask, but is there any estimate of when that might happen? The big thing in Prototype 1.6.1 for us is better IE8 compatibility, which I imagine is of interest t

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread enigment
Hmmm, even outside the indexOf() question, this is a bit creepy to me. I hadn't previously tested, but these are all true, at least in Firefox 3.5 and IE8: "mpg" === "mpg" "mpg" !== new String("mpg") new String("mpg") !== new String("mpg") new String("mpg") != new S

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread enigment
Ah, that's the missing piece, the difference between a string primitive and a string object. Got it. e On Sep 2, 12:17 pm, "T.J. Crowder" wrote: > There's a difference between primitives ("mpg") and objects (new String > ("mpg")). --~--~-~--~~~---~--~~ You receiv

[Proto-Scripty] accessing DOM of iFrame

2009-09-02 Thread Mojito
What's the Prototyped syntax equivalent of: window.frames['iFrameID'].document.getElementById ('elementInsideIFrame'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to t

[Proto-Scripty] Re: onChange event when div content changed

2009-09-02 Thread Hipnotik
Thanks Walter! I would like to avoid of using PE and global variable to store current innerHTML. I thought that it will be quiet easy and any trick can help me... There is other way - hidden form field and prototype's observer. But this solution doesn't satisfy me too. Anyway, thanks. On 2 Wrz,

[Proto-Scripty] Re: accessing DOM of iFrame

2009-09-02 Thread Alex McAuley
Its a good question. I asked it months ago and ended up havaing to use JQuery's find() to deal with ajaxy saving of a html editor Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Mojito" To: "Prototype & script.aculo.us" Sent: Wednesday, September 02, 2009 7:2

[Proto-Scripty] Ajax.updater - after text has been inserted into element

2009-09-02 Thread Mojito
I'm using the Ajax.Updater. I'm looking for the callback that is executed after the server response text has been inserted into an element. The server is inserting some form elements and I want to apply Scriptaculous's inPlaceEditor to them. Which callback would this be? --~--~-~--~

[Proto-Scripty] Re: Ajax.updater - after text has been inserted into element

2009-09-02 Thread DJ Mangus
I don't think there is one that fires afterward. If you function#defer a function onsuccess it should have been completed after the defer timeout. On Wed, Sep 2, 2009 at 3:11 PM, Mojito wrote: > > I'm using the Ajax.Updater. I'm looking for the callback that is > executed after the server resp

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread JoJo
I (Mojito) [don't know why my first post name differs from reply name] have solved by issue. I was passing in strings with '\0' on their ends. So 'mpg\0' does not equal 'mpg'. It was a nightmare to debug because '\0' is invisible. On Sep 2, 10:29 am, enigment wrote: > Ah, that's the missing p

[Proto-Scripty] Re: array.indexOf fails sometimes in IE8

2009-09-02 Thread RobG
On Sep 3, 1:56 am, enigment wrote: > Hmmm, even outside the indexOf() question, this is a bit creepy to me. > I hadn't previously tested, but these are all true, at least in > Firefox 3.5 and IE8: [...] >         new String("mpg") !== new String("mpg") >         new String("mpg") != new String(

[Proto-Scripty] Re: How can I replace a fx with a method call on an obj instead of passing the obj to the fx

2009-09-02 Thread Nik
Let me first thank you for helping me differentiate the words "function" and "method" . I mean really, perhaps 1 year from now, when someone thank me for the same reason, I wouldn't think of it much, I would think that the road ahead is still far for that person, which is how I feel for myself. Bu

[Proto-Scripty] execution order in IE

2009-09-02 Thread JoJo
In my , I'm loading several JS files. I'm expecting this to occur: 1) script1.js is loaded 2) script1.js runs - it creates an object 3) script2.js is loaded 4) script2.js runs - it creates a different object that depends on script1's object. 5) and so on This works perfectly in Firefox and

[Proto-Scripty] Re: accessing DOM of iFrame

2009-09-02 Thread kangax
On Sep 2, 2:23 pm, Mojito wrote: > What's the Prototyped syntax equivalent of: > > window.frames['iFrameID'].document.getElementById > ('elementInsideIFrame'); Current version of Prototype doesn't really support programmatic context extension (such as that of `window.frames['iframeID']` in your

[Proto-Scripty] Re: execution order in IE

2009-09-02 Thread Alex McAuley
If you need to garuntee that a variable,function or method exists i would always wait until the dom is ready or in each function that gets called test the function,variable or method exists else timeout untill it does Alex Mcauley http://www.thevacancymarket.com - Original Message - Fro