[Proto-Scripty] Re: Select field IE problem

2008-10-20 Thread Cristisor
I tried to remove it and add it later, but it won't work in IE 6, I get the error: "Object doesn't support this property or method". I know what this means, but IE 6 doesn't support anything :( And everything works just fine on other browsers :) On Oct 19, 11:45 pm, "T.J. Crowder" <[EMAIL PROTECT

[Proto-Scripty] Re: Problem with jumping element with Sortable.create

2008-10-20 Thread morre95
No i dont have a reason. Maybe it is unnecessary, but i am used to prototype's hash functions. Thats why. On 19 Okt, 23:28, kangax <[EMAIL PROTECTED]> wrote: > On Oct 19, 1:25 pm, morre95 <[EMAIL PROTECTED]> wrote: > > > > > I´m trying to develop a puzzle game. Like the one you find > > herehttp

[Proto-Scripty] Re: Select field IE problem

2008-10-20 Thread T.J. Crowder
Hi, > I tried to remove it and add it later, but it won't work in IE 6... You can definitely add and remove select box options in IE6. There's something about the way you're doing it that's browser-sensitive. If you search... http://www.google.co.uk/search?q=javascript+adding+options+select

[Proto-Scripty] setInterval within class binding issue

2008-10-20 Thread Travis
I am trying to implement the following: var Messaging = Class.create({ initialize: function() { setInterval(this.checkForMessages, 2); }, checkForMessages: function(event) { var options = { method: 'get', onSuccess: this.pushData.bind(this)

[Proto-Scripty] BG image drag + popups

2008-10-20 Thread kneidels
hey folks i found this amazing site which seems to be using Prototype (http:// www.zeppenfeld.com) and i thought of creating something with a similar idea - a large image in the background (a floor plan or 3D building image) that will have "hotspots" which launch lightbox-like windows (or really

[Proto-Scripty] Help needed

2008-10-20 Thread jason maina
[code] function monitorMgr(){ var myLi=$$('ul.flMgr > li'); myLi.each(function(liItem){ Event.observe(liItem, 'click', anFunction, false); }); } function anFunction(evt){ alert($(evt).id); } [/code] response: undefined expected result: the clicked li's id considerations: 2 ul elements sharing id

[Proto-Scripty] Re: BG image drag + popups

2008-10-20 Thread Baglan
Hi! Building such a site shouldn't be hard if you take step-by-step approach. I see the following features: 1. Scrolling-bars-free page with a big image; 2. Hotspots with popups; 3. Sliding menu; 4. Mini-map; 5. Scrolling with mouse wheel; I'd do (1) by making a DIV with the size of the window,

[Proto-Scripty] Re: Help needed

2008-10-20 Thread darrinholst
> function anFunction(evt){ > alert($(evt).id);} you are trying to get the id of the event object here (which it undefined). I think what you want is the element that the event was fired on -- evt.element().id Darrin --~--~-~--~~~---~--~~ You received this messag

[Proto-Scripty] Re: Help needed

2008-10-20 Thread kangax
On Oct 20, 7:40 am, "jason maina" <[EMAIL PROTECTED]> wrote: > [code] > function monitorMgr(){ > var myLi=$$('ul.flMgr > li'); > myLi.each(function(liItem){ > Event.observe(liItem, 'click', anFunction, false); `Event.observe`'s last argument - useCapture - is now deprecated (in 1.6), so you can s

[Proto-Scripty] Re: Help needed

2008-10-20 Thread T.J. Crowder
Hi, > considerations: 2 ul elements sharing id because of css styling. Not really, right? You mean they're sharing the same class or some such? You can't have two elements on a page with the same ID; IDs are required to be unique across the DOM. FWIW, -- T.J. Crowder tj / crowder software / c

[Proto-Scripty] Form field validation and masking

2008-10-20 Thread [EMAIL PROTECTED]
Hi, do you know some prototypejs based alternative to fValidator (http:// zendold.lojcomm.com.br/fvalidator/) and iMask (http:// zendold.lojcomm.com.br/imask/)? Thanks a lot Regars, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[Proto-Scripty] Re: Autocomplete : make not automatically select first item

2008-10-20 Thread Jesper Rønn-Jensen
Thanks for your really helpful advice. I turned your suggestion into the following patch and also modified the Rails auto_complete helper as well. (the revision numbers unfortunately point at my local application where I made the modification). If you find this helpful, could you help me getting

[Proto-Scripty] Re: Demos?

2008-10-20 Thread Walter Lee Davis
On Oct 19, 2008, at 8:38 PM, Leonard Burton wrote: > Justin, > Thanks for the help, > > Essentially I have this and I would like it to loop through the queue > instead of ending: > > function test(){ > > sequence.delay(2) > > } > > function sequence() { > > var options = { queue: 'end' }; > >

[Proto-Scripty] Re: Select field IE problem

2008-10-20 Thread delishus
Cristisor The quick dirty way to deal with this is to have 2 different select list for your days in seperate divs, one with 31 days the other with 30 days. Then with an onchange event on the month div, either show or hide the relevant select list. You can either have the lists hardcoded into the

[Proto-Scripty] Re: "Safe" hiding of a DOM element

2008-10-20 Thread Eric
Thanks for all your advices. > $$('#pleaseWait').invoke('hide'); I do like this one, even if I am not sure why it would be a bad practice to have failsafe functions (I said "functions", not "methods" :o) ). It is common in C++ to check if a pointer is null before freeing it. I don't see any dif

[Proto-Scripty] Re: setInterval within class binding issue

2008-10-20 Thread T.J. Crowder
Hi, The issue is that when the interval fires the call to checkForMessages, it doesn't give it the right "this" context, because JavaScript doesn't have *methods*, just functions (which is all it needs, but leads to issues like this). If you search in this group for "binding" you'll find several

[Proto-Scripty] Re: Form field validation and masking

2008-10-20 Thread kangax
[EMAIL PROTECTED] wrote: > Hi, > > do you know some prototypejs based alternative to fValidator (http:// > zendold.lojcomm.com.br/fvalidator/) and iMask (http:// > zendold.lojcomm.com.br/imask/)? > > Thanks a lot Have you checked http://scripteka.com ? > > Regars, > Tom -- kangax --~--~

[Proto-Scripty] Re: Select field IE problem

2008-10-20 Thread Matt Foster
Its because he's referencing the object through the options array, Proto never gets to sink its method into the object because of this traversal, while the other browsers support native extensions it works fine. $($("Birth_Day").options[0]).remove(); On Oct 20, 8:55 am, delishus <[EMAIL PROTEC

[Proto-Scripty] Re: setInterval within class binding issue

2008-10-20 Thread Matt Foster
You have to bind your setInterval callback just like you bind your onSuccess callback... initialize: function() { setInterval(this.checkForMessages.bind(this), 2); }, On Oct 20, 1:10 am, Travis <[EMAIL PROTECTED]> wrote: > I am trying to implement the following: > > var Messaging

[Proto-Scripty] Re: Using the Slider to trigger an onchange event

2008-10-20 Thread BreakingCurtis
Nevermind! I found out that the issue is a bug with IE and the php framework that is being used (Qcodo). IE is calling Qcodo controls at the wrong time when using http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---

[Proto-Scripty] Re: Demos?

2008-10-20 Thread Leonard Burton
HI All, > In the last fade, add afterFinish:sequence() to your options array. > That should call the function itself again, and the wheel will turn. How do I do that in this sequence? function sequence() { var options = { queue: 'end' }; //$('logo1').appear(options);

[Proto-Scripty] Encoding problem with new Ajax.Request

2008-10-20 Thread Uzm
I've a small problem with new Ajax.Request. Actually, there isn't really a problem with the function itself, but with encoding. Here is my code: function getData() { new Ajax.Request('chat.php', { method: 'post', encoding: 'windows-1251', parameters: "userId=" + userId + "&msgtime=" + msgtime, on

[Proto-Scripty] Creating multiple Draggable objects at once

2008-10-20 Thread [EMAIL PROTECTED]
I am parsing a response document and creating a string that will replace an innerHTML of a target DIV. Each element needs to become "Draggable". At this point, since I haven't actually set the innerHTML attribute, the id's are not accessible. So I thought about building up an array of these id'

[Proto-Scripty] IE6 Error

2008-10-20 Thread jschank
Hello, I'm using protoype.js in a rails application. The application works fine on Safari, FireFox (both windows and mac), however, when I load my app in IE6, I get an "Error: Object doesn't support this property or method" pop up. When I choose to debug that in the script debugger, I see that t

[Proto-Scripty] Limit Drag and Drop on browser screen

2008-10-20 Thread Saiful Amri
Dear All... How to make drag and drop an element but it is not dragged over limit height and width browser size, it likes drag and drop on gmail's windows modal message... Thanks, Best Regards Saiful Amri --~--~-~--~~~---~--~~ You received this message because yo

[Proto-Scripty] Re: IE6 Error

2008-10-20 Thread T.J. Crowder
Hi John, This usually happens when you try to call a Prototype method on an Element instance that hasn't been extended [passed through $()]. On almost everything but IE, that's fine, but on IE you have to be sure to pass the instance through $(). There's an article on this in the new unofficial

[Proto-Scripty] Re: Encoding problem with new Ajax.Request

2008-10-20 Thread Saiful Amri
Dear... try using &msgtime="+encodeURIComponent(msgtime) I think it does work, thanks Saiful Amri On Tue, Oct 21, 2008 at 1:12 AM, Uzm <[EMAIL PROTECTED]> wrote: > > I've a small problem with new Ajax.Request. Actually, there isn't > really a problem with the function itself, but with e