[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Alex Mcauley
if its any help the same thing happens in google chrome !! - Original Message - From: Cyrus arianglan...@googlemail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Monday, January 12, 2009 5:27 PM Subject: [Proto-Scripty] Re: Opera and $$('.wrapper

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Richard Quadling
2009/1/13 Alex Mcauley webmas...@thecarmarketplace.com: if its any help the same thing happens in google chrome !! - Original Message - From: Cyrus arianglan...@googlemail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Monday, January 12, 2009 5:27

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Cyrus
Not in Opera 9.63 I am afraid ... On 13 Jan., 10:41, Richard Quadling rquadl...@googlemail.com wrote: 2009/1/13 Alex Mcauley webmas...@thecarmarketplace.com: if its any help the same thing happens in google chrome !! - Original Message - From: Cyrus

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Cyrus
I just used .class for this example. In my case I have a much more complex HTML structure so it took me a while to actually find the bug. If you're getting back one element, not two, it's a bug. The question is, in what -- Prototype's selection code, Opera, or both? I lean toward Opera bug.

[Proto-Scripty] using Element.select with capital letters in Safari.. bug?

2009-01-13 Thread Timo
I have a div with the id loginWindow inside that i have another div with the class .title I used Element.select($('loginWindow'), '.title') to get that node. Works very good in all other browsers but not Safari. After some investagation i found the code that is failing results =

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread T.J. Crowder
Hi Richard, I don't think there's anything built into Prototype or script.aculo.us that does the whole job, but certainly Prototype makes the job a lot easier with its various DOM utilities and language helpers. It's worth giving the API a read (1-2 hours max). That said, if you're not much of

[Proto-Scripty] Bug with afterFinish: when used during a mouse event?

2009-01-13 Thread Marcos
Hello, considering that when I use the afterFinish call on the scriptaculous effects that are used on initial page load it works fine and the function is called indeed after the effect has finished rendering it's final loop. When i use the same afterFinish attribute on an effect that is called

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread kangax
On Jan 13, 6:26 am, Cyrus arianglan...@googlemail.com wrote: [...] What would you suggest? File a bug report at Opera, Prototype or both? I can confirm this with 9.61 on Mac OSX. Here's a minimal failing test case: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread T.J. Crowder
Hi Juriy, That inline script could muddy the water in terms of DOM availability, etc. Perhaps a minor mod: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html head title/title script src=http://ajax.googleapis.com/ajax/libs/prototype/

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Cyrus
Ok, thanks. Unfortunately I cannot use the child selector in my case. I'll write a bug report. On 13 Jan., 14:20, kangax kan...@gmail.com wrote: On Jan 13, 6:26 am, Cyrus arianglan...@googlemail.com wrote: [...] What would you suggest? File a bug report at Opera, Prototype or both? I

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread kangax
On Jan 13, 8:30 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi Juriy, That inline script could muddy the water in terms of DOM availability, etc. Perhaps a minor mod: I usually try to eliminate as much of irrelevant prototypeism as possible when creating a testcase : ) Why use

[Proto-Scripty] Any reason this BlindRight effect should not work in FireFox?

2009-01-13 Thread Lochinvar
Effect.BlindRight = function(element, content) { element = $(element); var content = content; var elementDimensions = element.getDimensions(); new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleY: false, scaleFrom: 0, scaleMode: {originalHeight:

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread T.J. Crowder
I usually try to eliminate as much of irrelevant prototypeism as possible when creating a testcase : ) Fair 'nuff, but I'd still use something other than inline to allow for browsers being difficult about the closing body tag and DOM rendering time. Probably me being paranoid. Perhaps (shock

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread Jerod Venema
Hey all, when you're replying to these threads, can you make sure you keep it on-list? I like to keep up with various solutions to all these problems, and seeing half the solution (or no solution at all) is really frustrating. (@Kangax, I know I've seen a few replies to messages you've sent

[Proto-Scripty] effect.toggle produces inconsistent spacing between lines of text. ??

2009-01-13 Thread Frank Ruscica
hello all, the problem can be seen at http://www.landofopportunitv.com/, by contrasting the amount of space below the (separate) lines containing toggle-able footnotes [2] [4], w/ the space below the lines containing all the other footnotes. via 'view source', you can see that the code for

[Proto-Scripty] Re: Inheritance question

2009-01-13 Thread Dan
You are confusing constructors with class definition.Class.create() is for defining a new Class which will support inheritance. To construct an instance of a class you defined with var MyClass = Class.create(baseClass, { ... }) you construct it like you would any other object: var

[Proto-Scripty] Re: OK in IE - remove prototype and OK in Firefox!?

2009-01-13 Thread Dan
Elements can not have numeric ID's or id's which start with numbers. change your ID's to this format of: div id=div1 Then use: document.getElementById(div + (divCount+1)).className ='hiddenDiv'; and so on... On Jan 13, 8:56 am, geoffcox g...@freeuk.com wrote: Hello the code below works

[Proto-Scripty] Help With Prototype.Comet

2009-01-13 Thread Chris17
First I don't know a lot of english I've look this web http://www.ribosomatic.com/articulos/como-implementar-comet-con-php-y-prototype/ I test the example ,Works excellent Just with this code I can build a chat but i have a big problem I need a chat where you choose someone to talk, so

[Proto-Scripty] Re: Is this a bug? an element is enclosed unexpectedly by an inserted method.

2009-01-13 Thread Hamamoto Noriaki
Hi Kangax, It sounds like weird, but I could understand how it works. Thanks for telling me that. Nori 2009/1/13 kangax kan...@gmail.com On Jan 12, 11:04 pm, Hamamoto Noriaki norisu...@gmail.com wrote: Hey Kangax, Thank you for the reply. Do you think the reason of the problem I met

[Proto-Scripty] Re: Opera Mobile support

2009-01-13 Thread kangax
On Jan 13, 5:48 pm, Laurent Dinclaux laurent.dincl...@gmail.com wrote: [...] I will also send the rendering result of  js-cecker page when I find where opera saved it on my handset... Sounds great. Unfortuantely, I wasn't able to simulate Opera Mobile on desktop so your results would help a

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread RNHurt
T.J., Thank you for the extraordinary help - your script worked right off the bat! The only thing I'm struggling with right now is the fact that the cells I want to calculate are not just numbers but form elements. So, cell.innerHTML is something like input id=grade1 value=20 instead of 20.

[Proto-Scripty] Re: OK in IE - remove prototype and OK in Firefox!?

2009-01-13 Thread geoffcox
Dan, Thanks for your reply. I have changed as suggested - see below - but still not working unless I remove the prototype link so there must be more! Any other errors that you can see? Cheers, Geoff !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread Walter Lee Davis
That's even easier! $F('grade1') would get you the value of input#grade1. Walter On Jan 13, 2009, at 8:00 PM, RNHurt wrote: the cells I want to calculate are not just numbers but form elements. So, cell.innerHTML is something like input id=grade1 value=20 instead of 20. I've tried

[Proto-Scripty] Re: Inheritance question

2009-01-13 Thread Jerod Venema
If you're trying to avoid the default behaviour for the label (which is to check/uncheck the appropriate form element), you may want to just use prototypes stop [1] function. I've never done this, but something like the following ought to work (I think): Event.observe('mylabel', 'click',

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread T.J. Crowder
Hi Richard, Glad that was useful. :-) I've tried multiple things to coerce the value out of the cell but so far have not had much luck. Any hints? There are lots of ways to go. Nich's answer is pretty easy to drop into the function I gave you, though you might rename cells to grades (and

[Proto-Scripty] Re: Inheritance question

2009-01-13 Thread Cyrus
Hi, thanks, but I already tried that yesterday: I like the natural behaviour of the label. In every part of our software you can click on the label to change the status of the checkbox. I just don't like it happen when you use the drag and drop function. Is there a way to stop that event only