[Proto-Scripty] Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth
I am unable to do the following within the Yahoo UI Library framework with Scriptaculous: YAHOO.namespace("mycompanyname"); YAHOO.mycompanyname.MyClass=Class.create({ initialize:function() { } , anotherFunction:function(options) {

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread T.J. Crowder
Hi, > Also new Element(id,{}); does not work on IE 6.. Yes, it does. Note that where you have "id" you want to put a tag name, not an ID; this is for creating new elements, and the first parameter is the tag name of the new element. What is the specific issue you're having with it? Is it YUI-

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth Raghuraman
TJ, Thanks for the reply! I will try out new Element("tagName",{}); (I have a feeling you are right). As to the YUI issue, it was a syntax error where I was closing anotherFunction below with a ')' instead of a '}' On Tue, Apr 7, 2009 at 5:59 PM, Ananth wrote: > > I am unable to do the fol

[Proto-Scripty] Ajax.Autocompleter and running scripts in results

2009-04-08 Thread Antti Boman
Is there any way to get javascript run when the results div for Ajax.Autocompleter is shown, but before anything has been chosen? I tried it like this: option 1 option 2 handle_additional_things() For some reason, the script doesn't get run at all, even though it is there in the div. Might be

[Proto-Scripty] Re: Ajax.Autocompleter and running scripts in results

2009-04-08 Thread Walter Lee Davis
I haven't seen anything in the Wiki either, but you might want to check the source. There may be a function in there you could hook on to that's just not documented. The only two events in the autocompleter cycle that appear extensible are updateElement (where you have to replace the entir

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Trevan Richins
If you are planning on extending YUI classes using Prototype's Class.create, you might want to look at the bottom of this bug: https://prototype.lighthouseapp.com/projects/8886/tickets/151-extending-yui-objects-with-prototype Trevan On 4/7/2009 3:59 PM, Ananth wrote: > I am unable to do the fo

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth Raghuraman
Thanks for pointing me to the bug. Now I realize it is a systemic problem. I think the Prototype syntactic sugar for inheritance is clearer to understand and read than YUI's though both probably do the same thing under the hood. On Wed, Apr 8, 2009 at 10:30 AM, Trevan Richins wrote: > > If you ar

[Proto-Scripty] Re: Ajax.Autocompleter and running scripts in results

2009-04-08 Thread Antti Boman
I actually checked the source and couldn't find anything there, or then I just didn't understand it completely. That's why I decided to ask here. The updateElement and afterUpdateElement methods are useless in this case, as they are run after the selection's been made. Also, "callback" is too earl

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread BrentNicholas
Walter, Thanks for the reply. I didn't realize you could do some of the techniques you used. I don't think this is issue however. I checked the code for event/name conflicts, then loaded the app before I left and didn't click anything, came back and nothing on the interface works. I then loaded

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread Richard Quadling
Can you provide a URL to show this? 2009/4/8 BrentNicholas : > > Walter, > > Thanks for the reply. I didn't realize you could do some of the > techniques you used. > > I don't think this is issue however. I checked the code for event/name > conflicts, then loaded the app before I left and didn'

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread Walter Lee Davis
Are you using cookies / sessions for authentication anywhere in here? That can be a cause of pain. On one application I built, I needed to set a periodical updater re-fetching a tiny GIF over and over to keep the session "alive". Walter On Apr 8, 2009, at 10:51 AM, BrentNicholas wrote: >

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread BrentNicholas
@Richard: At this time I can't it's internal intranet stuff. If one idea doesn't pan out I will probably throw together a bare bones template to recreate the error there. I'll make that public if it's still a problem. @Walter: yes, ColdFusion is using sessions, no cookies. However my session vars

[Proto-Scripty] Does GZIP compression of Ajax responses cause problems?

2009-04-08 Thread Howard M. Lewis Ship
I have an issue ( ) related to Ajax responses and GZIP compression. This is in the context of the Apache Tapestry web framework, which uses Prototype & Scriptaculous. The issue is that if the response to an Ajax response is compressed with GZIP, some users see problems: the content visible to th

[Proto-Scripty] Chaining effect per element?

2009-04-08 Thread andig
I'd like to add appear & hide animations to all images on a page based on mouseenter/leave. To make sure positions are correct after the animation has been played, the effects need to be chained. The odd thing now- although I'm using one chain per element (i.e. having to effects in the chain), the

[Proto-Scripty] A wysiwyg editor/litecontentmanager for my ajax site

2009-04-08 Thread Bhudda Ben
Hi all I have built a prototype-controlled homepage for a company of about 500; the middle section of which is used to swap various content - soon to be hundreds/thousands of different page segments. I would like to find: A wysiwyg editor that can produce body-level content only (web segments w

[Proto-Scripty] binding "this"

2009-04-08 Thread bejitto101
Here's my issue, I have the following code: $("description").observe('keyup', function(event){ text_counter (500).bind(this); }); function text_counter(max_length){ alert(this); var length = this.value.length; if (length > max_length){ this.value = this.value.substring(0,max_

[Proto-Scripty] Re: binding "this"

2009-04-08 Thread Ryan Gahl
Change $("description").observe('keyup', function(event){ > text_counter(500).bind(this); }); To... $("description").observe('keyup', text_counter.bind(this, 500)); > Notice that in your example you're actual event handler is the anonymous function, which calls text_counter. In the fixed up v

[Proto-Scripty] Error from IE7.

2009-04-08 Thread btimby
I am using prototype 1.6.0.3 with Modalbox, and I receive the following error on IE7 when I open a modal box: line 2317: object does not support this property or method. The line in question is: return element.getAttribute(attribute, 2); Using the script debugger, I found that I coul

[Proto-Scripty] Effect.Move and innerHTML

2009-04-08 Thread GLSmyth
I am creating information and assigning it to a div via innerHTML. The information is normally too large for the area, so the user can use scroll bars to scroll through the information. Using Effect.Move does not appear to work within the div. Is this a bug, or perhaps might I be doing something

[Proto-Scripty] Re: Effect.Move and innerHTML

2009-04-08 Thread Walter Lee Davis
Effect.Move moves entire DIVs around, it does not move content within a DIV. If you nest another DIV inside the parent DIV (and set the parent to overflow:hidden, you could try moving that inner DIV around inside it, or you could try using Effect.Morph to change the left- bearing. Walter

[Proto-Scripty] Re: Is there a obfuscator that works particularly well with Script.aculo.us?

2009-04-08 Thread Joe Athman
>From my experience YUI compressor is both extremely good and very safe. I believe they have fixed any of these one off things like $super that could create bugs. We've been using it for well over a year and shrink prototype, scriptaculous, ExtJS, and our own code all together. Works great. Jo

[Proto-Scripty] Help with linking events withing Class instances

2009-04-08 Thread Todd Nine
Hi all, I'm building an AJAX list controller, and I'm having a few issues. I'm new to Prototype and anything worth doing in javascript as well. Please bear with me if my questions are obvious. Basically, for each list item, I want to attach a function call to an onclick event. Generally this i

[Proto-Scripty] Re: Is there a obfuscator that works particularly well with Script.aculo.us?

2009-04-08 Thread Chris
Hi, if you are using php, there is a nice compression script here http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files. I tested it with prototype and scriptacolous and it makes pageloads a breeze. As a bonus, it concatenates css files as well. G