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
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
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
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
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
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
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
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
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
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
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
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.
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
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:
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
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
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
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');
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
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
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
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
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.
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
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
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
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
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
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
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
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
31 matches
Mail list logo