[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Justin Perkins
On Mon, Sep 8, 2008 at 6:06 PM, Jack D <[EMAIL PROTECTED]> wrote: > This problem exist only with IE. It always shows 1 space. I didn't realize it was just an IE thing. I'm sorry I can't help right now because I don't have IE. I might be able to look into it a bit more tomorrow. -justin --

[Proto-Scripty] Re: Prototype / Scriptaculous on Iphone

2008-09-08 Thread lawrencejob
Sorry for the thread reincarnation, but I had a client wanting similar recently. While it works perfectly, it gets incredibly choppy when doing any major animation, especially those that include movement of multiple elements. Also, there can be bugs when dragging, and you'll eant to seriously comp

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi, I also observed that the spaces appear properly in Forefox browser although while scrolling through the list of names, it does not show the spaces. But when you make the selection, the text box shows the actual spaces in the text. This problem exist only with IE. It always shows 1 sp

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi Justine, Sorry, I hit an enter immidiately before completing my email... I did get the   in the result as shown below: company   space (ECU) However, I couldn't see space anywhere even within a scrollable list Can you tell me where exaclty I need to replace the tags if possible?

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi Justin, I replaced the space with   & printed the response & I can see the result as shown below: company space (ECU) Since it is getting converted to space, it still appears as 1 space. Can you attache the sample & send it to me ([EMAIL PROTECTED])? Thanks! On Mo

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Justin Perkins
On Mon, Sep 8, 2008 at 4:42 PM, Jack D <[EMAIL PROTECTED]> wrote: > When I type the name in the text box, the values get dispalyed from > database. However, it doesn't show the space even there while I'm looking at > the data & scrolling down the results!! I don't think you are adding the   b

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi Justin, Thanks for your reply! When I type the name in the text box, the values get dispalyed from database. However, it doesn't show the space even there while I'm looking at the data & scrolling down the results!! I know it is happening due to the html behaviour. In that case, t

[Proto-Scripty] Re: Assigning OnClick Events To Options On A Select Menu?

2008-09-08 Thread Justin Perkins
Why don't you just observe the 'change' event on the select? Works in all browsers, and is the standard method for observing select boxes. One tip, where you do: >var someNodeList = > $('game_types').getElementsByTagName('option'); >var nodes = $A(someNodeList);

[Proto-Scripty] Re: Form.Element#setValue

2008-09-08 Thread Justin Perkins
On Mon, Sep 8, 2008 at 3:35 PM, Alexey Bass <[EMAIL PROTECTED]> wrote: > What I'm asking is that why this is not documented on Prototype site. Maybe it should be mentioned, but really Element#update is just using innerHTML to update the contents of a node, and since innerHTML cannot be used to up

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Justin Perkins
If the server-side code returns something like: foobar helloworld Then these spaces will absolutely be preserved in the list that the Autocompleter returns. Once that value shows up in your input box, the non-breaking spaces will be just normal spaces. If you save that data and the

[Proto-Scripty] Re: Event.observe best practice

2008-09-08 Thread BrentNicholas
Ok, back at work... long weekend. So thanks to Matt and elduderino for their replies. I ended up using Matt's sugestion simply becuase it was easy to understand. I was able to use a few parts of elduderino's to get the id. I'll be digging into elduderino's solution more later to gain a better u

[Proto-Scripty] Assigning OnClick Events To Options On A Select Menu?

2008-09-08 Thread The Ferrett
Heya, folks - I'm trying to create a SELECT menu with option values that clear other items when clicked on. (Essentially, these are categories and subcategories.) This is the code I'm using: var EventMenuMaster = Class.create(); EventMenuMaster.prototype = { initialize: function() {

[Proto-Scripty] Re: Form.Element#setValue

2008-09-08 Thread Alexey Bass
Thanks, silver. But that exactly that I've understood. What I'm asking is that why this is not documented on Prototype site. On Sep 3, 3:54 pm, sliver <[EMAIL PROTECTED]> wrote: > Element.update() is designed for updating DOM elements (A, DIV, SPAN, > etc), not specifically FORM elements (INPUT,

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi, I even tried replacing the spaces with   but it didn't work. It still returns me by stripping all spaces & keeping it only 1 space. Now I can confirm that this is a bug. Gurus, can anyone help how to fix this bug? Thanks in Advance!! On Mon, Sep 8, 2008 at 11:49 AM, Jack D <[EMAIL

[Proto-Scripty] Re: Element.adjacent(selector) doesn't return expected elements

2008-09-08 Thread kangax
On Sep 8, 3:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I place a comment on the bug trtacker to point Kangax solution. It is > indeed simple and effective. > > http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/24... While it's simple and effective, the problem is ina

[Proto-Scripty] Re: Event.observe best practice

2008-09-08 Thread Matt Petrovic
every event handler gets the event that calls it as an argument. for example, function handler(event) { do something; } element.observe('click', handler); whenever you click that element, your handler will have an Event object, named event in this case. The Event object has a number of properti

[Proto-Scripty] Re: appear is flickering

2008-09-08 Thread el_bob
thanks, i fixed it - it turned out to be a z-index issue. the image, even though it is in the div, is not being read as part of the div - so when it's completely opaque, the image overrides the div's onmouseover call. as soon as opacity goes down, it calls again. i fixed it by creating another

[Proto-Scripty] Re: Element.adjacent(selector) doesn't return expected elements

2008-09-08 Thread [EMAIL PROTECTED]
I place a comment on the bug trtacker to point Kangax solution. It is indeed simple and effective. http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/244-element-adjacent-can-select-siblings-childnodes-and-shouldn-t#ticket-244-4 On 8 sep, 14:45, jdalton <[EMAIL PROTECTED]> wrote:

[Proto-Scripty] Re: appear is flickering

2008-09-08 Thread el_bob
thanks, i fixed it - it turned out to be a z-index issue. the image, even though it is in the div, is not being read as part of the div - so when it's completely opaque, the image overrides the div's onmouseover call. as soon as opacity goes down, it calls again. i fixed it by creating another

[Proto-Scripty] Re: About a nice Script.aculo.us fix for IE

2008-09-08 Thread Larry
Ok good! :-) I am going to create a new ticket. -Larry On Sep 8, 2:41 pm, jdalton <[EMAIL PROTECTED]> wrote: > Wow nice find :) !! > You should report this bug > via:http://prototype.lighthouseapp.com/projects/8887-script-aculo-us/tick... > > - JDD --~--~-~--~~~---

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread Jack D
Hi bluezehn, Thanks for your reply!!! I know that it is a html behaviour. However, is there any other way that I can compose these inputs in other format & not in tags, since they are causing problems? I mean instead of passing the data in , can I pass it without or some other

[Proto-Scripty] Re: Element.adjacent(selector) doesn't return expected elements

2008-09-08 Thread jdalton
@Kangax awesome use of the .match method check in grep !!! --~--~-~--~~~---~--~~ 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@googlegroup

[Proto-Scripty] Re: About a nice Script.aculo.us fix for IE

2008-09-08 Thread jdalton
Wow nice find :) !! You should report this bug via: http://prototype.lighthouseapp.com/projects/8887-script-aculo-us/tickets/new - JDD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" gro

[Proto-Scripty] Re: appear is flickering

2008-09-08 Thread Diodeus
Hi Bob, With the way you're doing this, it is possible for the two effects to be running concurrently. If you mouse-out before the appear has completed, the fade will start running. If you mouse back in while the fade it still running, the appear will run. This can really mess things up. Depend

[Proto-Scripty] appear is flickering

2008-09-08 Thread el_bob
i tried it like this, i tried it just using the id="leftArr" on the image itself, but regardless of how i code it, i keep running into the same issue - when i am moused over the div (it's about 400x400, and the image is about 60x60), everything works fine. if i'm moused over the image itse

[Proto-Scripty] Re: Element.adjacent(selector) doesn't return expected elements

2008-09-08 Thread [EMAIL PROTECTED]
Hi kangax, Thanks for your response. I went to the bug tracker and find the bug here with a patch to fix it ! http://prototype.lighthouseapp.com/projects/8886/tickets/244-element-adjacent-can-select-siblings-childnodes-and-shouldn-t Everything is under control :) JP On Sep 5, 3:39 pm, kangax <

[Proto-Scripty] Re: Problem with Class

2008-09-08 Thread Matt Foster
As much as I love to use anonymous functions try using a prebound function reference. Also by extracting the code to send the XHR from the objects constructor you will allow more flexibility in the future. var test = Class.create({ initialize : function(url, val){ this.val = v

[Proto-Scripty] Re: Bug in scriptaculous-js-1.6.4

2008-09-08 Thread bluezehn
This isn't a bug. This is standard html behaviour. Imagine you write a paragraph like this: This is a paragraph. To stop confusion between: This is a paragraph And: This is a paragraph HTML will always invoke the latter. If you wanted the former, you need: This is a paragraph In you

[Proto-Scripty] Re: Form.serialize() problem with 1.6.0 and Mobile Safari

2008-09-08 Thread Dalan Hurst
Yes, undefined. Also, I forgot to mention the same form also works fine in regular (desktop) Safari 3 with prototype 1.6. It looks like its just Mobile Safari. On Sep 8, 9:29 am, kangax <[EMAIL PROTECTED]> wrote: > On Sep 8, 9:16 am, Dalan Hurst <[EMAIL PROTECTED]> wrote: > > > The error it produ

[Proto-Scripty] Prototype site is down: here are offline docs.

2008-09-08 Thread jdalton
While Prototypejs.org is down you can use http://globalmoxie.com/projects/prototype-pdf/index.shtml for offline documentation. - JDD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group

[Proto-Scripty] About a nice Script.aculo.us fix for IE

2008-09-08 Thread Larry
Hi all, I just wanted to inform you guys that I had an issue with some sortable lists in IE6, and I found this fix for Script.aculo.us: http://www.garyharan.com/index.php/2007/02/08/internet-explorer-bug-scriptaculous-drag-and-drop-goes-into-text-select-mode/ So far it seems to have corrected t

[Proto-Scripty] Re: Form.serialize() problem with 1.6.0 and Mobile Safari

2008-09-08 Thread kangax
On Sep 8, 9:16 am, Dalan Hurst <[EMAIL PROTECTED]> wrote: > The error it produces in Mobile Safari is that Mobile Safari doesn't > think it returns an object. And, seeing that, it stops processing the What does it return? undefined? > script. The same script works fine everywhere else (FF, IE, O

[Proto-Scripty] Re: Form.serialize() problem with 1.6.0 and Mobile Safari

2008-09-08 Thread Dalan Hurst
The error it produces in Mobile Safari is that Mobile Safari doesn't think it returns an object. And, seeing that, it stops processing the script. The same script works fine everywhere else (FF, IE, Opera) just not on an iPhone. The form consists of one input[type=text], one select, and one textar

[Proto-Scripty] Re: Subclassing Ajax classes, appending to callbacks automatically

2008-09-08 Thread bluezehn
With further examination of the API I've found Ajax.Responders... think this should work for what I want to do. Apologies for the spamming. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us

[Proto-Scripty] Subclassing Ajax classes, appending to callbacks automatically

2008-09-08 Thread bluezehn
Hi everyone, First off thanks to all developers of prototype and script.aculo.us for a fantastic framework, also to Andrew Dupont's book on the subject which I just spent a weekend devouring! And thanks in advance for anyone who can answer the following question! I'm looking to always be able to

[Proto-Scripty] Re: Problem with Class

2008-09-08 Thread T.J. Crowder
Hi, It's a binding problem. Event handlers just call functions, not methods (JavaScript doesn't *have* methods). When the event handler calls the function, it doesn't define the "this" you're expecting. Details here: http://blog.niftysnippets.org/2008/04/you-must-remember-this.html http://www.a

[Proto-Scripty] How to avoid revert effect when dropping onto a droppable area?

2008-09-08 Thread Alejo
Hi everybody! I have an information label on my google maps application and I would like to allow people to drag this label onto three different positions on the map (3 droppable areas). It all works fine but I don't like the effect that revert does when I change the label from one droppable area

[Proto-Scripty] more than one param for 'accept' in droppables api

2008-09-08 Thread elduderino
I need to set more than one class for the accept param in the droppables api. http://github.com/madrobby/scriptaculous/wikis/droppables says you can 'Set accept to a string or an array of strings describing CSS classes' but i've tried all sorts: Droppables.add('droppable'+this.gameCount+ '_' +

[Proto-Scripty] Re: Problem with BlindDown and BlindUp in IE when working with ul and li

2008-09-08 Thread Bram
Hey, Thx for your help. I had figured out a solution in the meantime. I also have used a div around the ul and this solves the problem but in my case I still had problems with the blinddown and blindup. If i used the rewritten effects (http://prototype.lighthouseapp.com/ projects/8887/tickets/7-

[Proto-Scripty] Problem with Class

2008-09-08 Thread Yosh
Hi, I'm a problem with this code. var test = Class.create({ val:null, initialize:function(val) { //obligatoire pour fonctionner this.val = val; new Ajax.Request("f