[Proto-Scripty] Re: Sortable.create and onHover

2009-08-10 Thread Sebastien
Ok, thanks, but how would you implement my code then? Do I have to overload the whole Sortable.onHover method? If yes, then every new Sortable created will call the onHover method isn't it? I would like it to be called only for this Sortable, not all of them. Thanks for your help, Seb On Aug

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-10 Thread Nicolas Terray
2009/8/7 nlloyds nllo...@gmail.com: On Aug 6, 4:32 pm, mr_justin gro...@jperkins.otherinbox.com wrote: Don't call a method on an element unless it exists. This is a basic defensive coding technique. He gets this. His question is about why he does not receive an exception. I'm not sure, and

[Proto-Scripty] how to select multiple entries from a auto complete box?

2009-08-10 Thread Angeline
Hi, I have an auto complete box which is populated with the list of users of the application. It is working fine with the box listing the users. But I am able to select only one user. How to select multiple users from the list ? I am using the built-in auto complete feature of the CakePHP

[Proto-Scripty] [Prototype] Encounter a bug in endsWith ?

2009-08-10 Thread Arnaud F.
Hello, I don't know why but : input = 'prototypes' bool = input.endsWith('n'); bool = bool || input.endsWith('s'); alert(bool); works fine but : alert(input.endsWith('n') || input.endsWith('s')); return me an error (IE6) What I've do wrong? Thanks

[Proto-Scripty] Broken Link to Autocompleter on the Script.aculo.us

2009-08-10 Thread CoolAJ86
Does anyone have a working link to a demo page of the autocompleter? The ones on github and on scriptaculous are broken. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread krishna81m
I tried to google and search prototype API for a method that will give me just the keys in a JSON object. Is there none in Prototype and no way to know the keys? Regards Krishna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread T.J. Crowder
Hi, Regardless of where the object came from (having evaluated it from a JSON string or something else), that's what for..in is for: var name, obj = {'a': 1, 'b': 2}.evalJSON(); for (name in obj) { alert(name + = + obj[name]); } ...alerts a=1 then b=2. The order is not

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Alex McAuley
You can prolly sort the order if you wanted it in some kind of order but its not needed in my opinion! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: T.J. Crowder t...@crowdersoftware.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Many warnings

2009-08-10 Thread T.J. Crowder
Hi, Sounds like you have some kind of JavaScript lint plug-in installed (or I think there's also a mode of Firefox that will do that). It's not out-of-the-box behavior. These tools aim to help you find *possible* errors in your code, but can also flag up things which are perfectly valid though

[Proto-Scripty] Re: help with select on element not working

2009-08-10 Thread molo
Thanks so much T.J., that was the problem. I never would have gotten that Maurice --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Drag and drop slow on IE (many droppables)

2009-08-10 Thread shah
I am also struggling with the same problem. Do you have any success with it? if yes, please do share it. On Jun 21, 10:47 pm, david david.brill...@gmail.com wrote: Hi fat bold cyclop, to retriev the X/Y position of an element, go and have a look

[Proto-Scripty] Re: Encounter a bug in endsWith ?

2009-08-10 Thread T.J. Crowder
Hi, If I assume 'input' is defined in the second example (you show it defined in the first example but not the second), I'm not seeing an error. Can you produce a small, self-contained example[1] of the problem? [1] http://proto-scripty.wikidot.com/self-contained-test-page FWIW, -- T.J.

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Matt Foster
var keys = $H(obj).keys(); http://prototypejs.org/api/hash/keys -- http://positionabsolute.net On Aug 10, 10:46 am, Alex McAuley webmas...@thecarmarketplace.com wrote: You can prolly sort the order if you wanted it in some kind of order but its not needed in my opinion! Alex

[Proto-Scripty] Re: how to select multiple entries from a auto complete box?

2009-08-10 Thread DJ Mangus
If you use the script.aculo.us autocompleter the option you need to set is called tokens which takes either a string or an array of strings to reset on. Note: I haven't used autocompleter myself just looked up the info. On Mon, Aug 10, 2009 at 4:11 AM, Angelinemailangel...@gmail.com wrote:

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread ra kr
I do know about the for(var key in jsonObj) { jsonObj[key]; } On Mon, Aug 10, 2009 at 9:54 AM, krishna81m krishna...@gmail.com wrote: I tried to google and search prototype API for a method that will give me just the keys in a JSON object. Is there none in Prototype and no way to know

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Alex McAuley
Matt foster wrote. var keys = $H(obj).keys(); http://prototypejs.org/api/hash/keys -- http://positionabsolute.net Alex Mcauley http://www.thevacancymarket.com - Original Message - From: ra kr To: Prototype script.aculo.us Sent: Monday, August 10, 2009 5:01 PM

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-10 Thread Tobie Langel
I'm correctly seeing ann exception thrown in: Safari 4.0.2 FF 3.0.13 However, it's no longer the case in FF 3.5.1. It seems that the issue isn't related to the dom:loaded event in particular, but to any fired custom event. Here's a reduced testcase: html head script

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-10 Thread Tobie Langel
This is definitely a FF issue. Here's a reduced testcase without Prototype: html head script type=text/javascript document.addEventListener('click', function() { throw 'foo' }, false); var event = document.createEvent('MouseEvents');

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread krishna
Awesome, thanks guys, for such a quick response!!! On Aug 10, 12:15 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: Matt foster wrote. var keys = $H(obj).keys(); http://prototypejs.org/api/hash/keys -- http://positionabsolute.net Alex Mcauleyhttp://www.thevacancymarket.com

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread Tobie Langel
What about simply: Object.keys(myObj)? http://prototypejs.org/api/object/keys --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: dom:loaded exceptions

2009-08-10 Thread Tobie Langel
Relevant FF bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=503244 --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Broken Link to Autocompleter on the Script.aculo.us

2009-08-10 Thread G. Sharon Yang
check this message: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/aef9f81930e5c999?hl=en# I guess it's never working. On Mon, Aug 10, 2009 at 6:09 AM, CoolAJ86coola...@gmail.com wrote: Does anyone have a working link to a demo page of the autocompleter? The

[Proto-Scripty] Re: Broken Link to Autocompleter on the Script.aculo.us

2009-08-10 Thread G. Sharon Yang
and this message: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/62497102586a0457?hl=en# It seems that the person who answered my questions, actually never tried to open the link. And it seems that nobody else really cares, :( On Mon, Aug 10, 2009 at 10:53 AM, G.

[Proto-Scripty] Making a Draggable-pool

2009-08-10 Thread Drrrrrr
Hi, is it possible to make a draggable be dragged unlimited times from one Position? I want to make some kind of Item pool that can be dragged multiple times... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Making a Draggable-pool

2009-08-10 Thread DJ Mangus
Not sure I understand what you are wanting to do. If you mean drag from one location and the pop back so it can be dragged again, then yes you have full control over what happens during and after drags. Look in the documentation for the various callbacks you have available. On 8/10/09, Drr

[Proto-Scripty] Re: Making a Draggable-pool

2009-08-10 Thread Alex McAuley
Look @ the ghost option Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Drr cran...@web.de To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Monday, August 10, 2009 7:06 PM Subject: [Proto-Scripty] Making a Draggable-pool Hi, is

[Proto-Scripty] Re: Getting keys from a JSON object returned from transport.responseText.evalJSON(); or for that matter any JSON object

2009-08-10 Thread krishna
Yep, that's exactly what I found after even more googling!! On Aug 10, 12:55 pm, Tobie Langel tobie.lan...@gmail.com wrote: What about simply: Object.keys(myObj)? http://prototypejs.org/api/object/keys --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] IE 8 compatibility issue with prototype 1.6 version

2009-08-10 Thread karamjit
Hi All, I am using the prototype version 1.6 framework with lightview api. I having issue with IE 8, but the same code is working fine in FireFox. Error : Line 1928, Invalid argument. Can someone please help me to solve this issue? Thanks in Advance Regards Karamjit

[Proto-Scripty] Using custom onDrop effect works perfect in FF, breaks in IE

2009-08-10 Thread CSobolewski
the following code seems to work fine in Firefox, allowing me to drag and drop an item, then pick it up a second later and drop it to a new area. However in IE, it completely breaks down. The next 21 (or so) times I mouse up (only on mouseup, mouse down does not do it, and I can mouse down on one

[Proto-Scripty] Usage of AJAX responder to monitor AJAX calls and call custom javascript on AJAX call completion

2009-08-10 Thread krishna81m
draft: I am trying to achieve a way to make calls to an AJAXMethod() and return the response without using an onSuccess: callerMethod() logic. In the following piece of code, var jsonObjects; function AJAXcallerMethod() { var jsonObj = AJAXMethod(); } function AJAXMethod() { new

[Proto-Scripty] draggable containers

2009-08-10 Thread zef
Hi, I need to divide a web page into two columns. Each column will have one or more tables. In those tables there might be links. I would like to be able to drag each column so that they can be swapped or moved around with their content [something a bit similar to igoogle]. Is this something