On Oct 1, 2008, at 2:38 PM, Christophe Porteneuve wrote:
> Look into Droppable's callbacks. One of them lets you dynamically say
> whether you accept dropping or not, I believe.
I don't see such a thing. That's exactly what I was asking about.
--
Jo Rhett
Net Consonance : consonant endings
On Oct 1, 2008, at 12:27 PM, Diodeus wrote:
> I'm not 100% clear on what you're describing, but this is how i do it:
>
> Droppables.add('myDrop',
> {accept:'someDraggable',onDrop:function(dragName,dropName)
> {registerDrop(dragName,dropName)}})
care to share registerDrop() ? ;-)
--
Jo Rhett
N
Maybe this can help
http://groups.google.com/group/prototype-scriptaculous/msg/ef9e46c409ff9ed6?
2008/10/1 Walter Lee Davis <[EMAIL PROTECTED]>:
>
> I am trying to use ProtoHover[1] to create menu items out of nested
> DIVs. My HTML construction is as follows:
>
>
>Menu 1
>
>
Diodeus a écrit :
> I'm not 100% clear on what you're describing, but this is how i do it:
>
> Droppables.add('myDrop',
> {accept:'someDraggable',onDrop:function(dragName,dropName)
> {registerDrop(dragName,dropName)}})
Don't you feel the huge code smell of this?!
--
Christophe Porteneuve aka T
Look into Droppable's callbacks. One of them lets you dynamically say
whether you accept dropping or not, I believe.
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
ditto, i was just going to say if the sandbox is accessed through a
different port (ie 8080) it will probably trigger a different origin.
On Wed, Oct 1, 2008 at 5:15 PM, T.J. Crowder <[EMAIL PROTECTED]> wrote:
>
> > What am I missing? Is Ajax.Updater limited to the same host?
>
> Ajax.Updater a
On Oct 1, 7:58 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Your script is run inline before your element is declared. Put your
> scripts either at the end of the document
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]
I did it and my problem solved.
--~--~-~--~--
> What am I missing? Is Ajax.Updater limited to the same host?
Ajax.Updater and everything else using XHR:
http://en.wikipedia.org/wiki/Same_origin_policy
HTH,
--
T.J. Crowder
tj / crowder software / com
On Oct 1, 9:23 pm, Dave <[EMAIL PROTECTED]> wrote:
> I have a simple html document:
>
>
buda,
Custom events work just like normal events (they're built on the
dataavailable event) - so you watch for an event on a specific
element. For that event to be caught you need to fire it on the
element you're listening on, or on a descendant of that element so
that it bubbles up to the el
I have a simple html document:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
Ajax.Updater
new Ajax.Updater('sandbox', '[absolute path to my ruby cgi
script]');
When I have this html file on the server tha
On Sep 30, 10:51 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> i have a Problem, i Code at a WYSWYG Editor, with Sortables. Now The
> Porblem is that in FireFox 3 i canot leftclick to an div witch is
> contentEditable, to edit the content ;) . I already think i have foud
> the Probl
On Oct 1, 1:19 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Assuming you're not going to have naming collisions within your
> various forms, you could do something like this:
>
> var data;
> $$('form').each(function(form){
> data += '&' + form.serialize();
>
> });
>
> In this usage, you do
On Sep 30, 4:37 pm, Cristisor <[EMAIL PROTECTED]> wrote:
> Hi. I have a problem on IE related to the evalScript function. I make
> a request using the POST method to the server and the server returns a
> HTML page that I insert into the current page. The problem is that the
> returned HTML has a s
I'm not 100% clear on what you're describing, but this is how i do it:
Droppables.add('myDrop',
{accept:'someDraggable',onDrop:function(dragName,dropName)
{registerDrop(dragName,dropName)}})
On Oct 1, 2:47 pm, Jo Rhett <[EMAIL PROTECTED]> wrote:
> I was thinking that, but I don't see how to know
You will need to remove the droppable for the element once the first
item is dropped on it. You car re-create the droppable later if you
want to enable that emelemt again.
Droppables.remove(element);
http://github.com/madrobby/scriptaculous/wikis/droppables
On Oct 1, 1:26 pm, Jo Rhett <[EMAIL
I was thinking that, but I don't see how to know when the Draggable
leaves it.
Would storing a reference to the droppable in the draggable be
sufficient for this? Use the onDropped function to re-add the
previous Dropabble? I've noticed that onDropped doesn't appear to be
documented (bu
It looks like something about your negative margin is messing things
up.
Try something like this instead:
new Effect.Move('lightbox',{x:137, mode:'relative'});
On Oct 1, 2:18 pm, revivedk <[EMAIL PROTECTED]> wrote:
> Is there any reason that using:
> $('lightbox').morph('left:
Is there any reason that using:
$('lightbox').morph('left: 137px;');
so, is there any reason, that this causes the DIV to move partially
out of the screen?
the preset css style of the lightbox (if it can be the cause?) is
this:
div#lightbox {
position: fixed;
top:
Very simple problem: my droppable items are timeslots, so they should
only accept one draggable. I need a useful way to prevent a second
draggable from being dropped there, but to allow the original
draggable to be moved elsewhere.
>From what I can see of the API, it appears my only real choice
Hello,
This is confusing me because it seems like such an obvious bug, but if
it was so obvious then how could it actually be a bug??
This code in controls.js is supposed to show an alert when my edit
fails (sending a status 400, etc.)
onFailure: function(transport, ipe) {
alert('Error co
Assuming you're not going to have naming collisions within your
various forms, you could do something like this:
var data;
$$('form').each(function(form){
data += '&' + form.serialize();
});
In this usage, you do not want to pass the getHash parameter as true.
-justin
--~--~-~--~
Hi. Please, would you be kind to clearify this to me: if I call
"Event.stopObserving(myWindow)", beeing 'myWindow' a div (ajax
generated window wich can came and go as the user will), who doesnt
have observers, but its a container (and parent) for many other
elements (components) that may does, m
Your script is run inline before your element is declared. Put your
scripts either at the end of the document, or better yet, externalize
them and wrap your init code inside a dom:loaded event handler.
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~-~--~~~--
Hello, I'm having problems with web page locks.
When Ajax.Request is started and the user clicks on any link on the
page while request is still running, then page is locked until Request
will finish.
I tryed all prototype versions and the newest one 1603 also. Can
somebody help me solve this issu
Im looking to create a single ajax post request and send multiple
forms as parameters. The form id's are created dynamically thus I
cannot list each form as a parameter within the javascript code.
Instead I've tried:
parameters: $$('form').serialize(true),
...but no luck. Form elements across
On Sep 29, 5:41 pm, Nik <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am wishing to do something like this:
>
> $$('input.info').invoke('onkeydown', function(){...})
>
> is that possible?
>
> Basically, I want to limit all the input field with 'info' class to
> allow only alphabets, number , backs
Hi,
If you're new to this stuff, it's well, well worth your time to spend
an hour reading through the full Prototype API. It literally takes an
hour or less (a couple of hours if English is not your first
language):
http://prototypejs.org/api.
The specific thing you're looking for is:
http://pr
Really a flasher, but i got to implement some AJAX and script.aculo.us
on this one site.
so i've got a mouseover on a container div, but the anchor children
does all the firing.
Lorem ipsum
Lorem ipsum
Lorem ipsum
I am trying to use ProtoHover[1] to create menu items out of nested
DIVs. My HTML construction is as follows:
Menu 1
option 1
...
When I test this using show() and hide() as my only transition, there
is no issue. Everything
Hi All,
I have a document that contains a Droppable UL with an ID of "canvas".
I have draggables that can be dragged over this canvas to create new
list items. Each time a new LI element is created I run a function
that makes the LI Droppable. However the result is always that the
most recent it
Hi Justin. I tried the Updater but still it doesn't work. I googled a
little bit for my problem and I came up with this:
many people have this problem and this may be a solution:
add this function to the head of the page:
Code:
function evalScript(scripts)
{ try
{ if(scripts
Hi,
I am using Ajax autocompleter to post and retrieve data in the same
form from two different text boxes. On one instance i am retrieving
the customer name and on the second i am retrieving employee name.
Everything works fine on my windows system. While implementing at the
customer site (Mac 1
I've got to imagine someone's run into this problem before, though I
can't seem to find a good explanation on how to fix it...
I have a fixed position div with category names (all droppable
elements) in the left column of my app. In the main body of my app
are entries which a user can drag onto
I'm disappointed
On 30 сент, 11:33, buda <[EMAIL PROTECTED]> wrote:
> You have definitively confused me - show how it would be right
>
> On 30 сент, 03:21, Tom <[EMAIL PROTECTED]> wrote:
>
>
>
> > Custom events are built on top of the dataavailable event, so they
> > behave just let any other sta
Hi,
Rather than posting pictures of a one-line error message, probably
just write it down so your entire question is in one place:
"this.element is null" on controls.js line 489:
if (!this.options.formId && this.element.id) {
--
T.J. Crowder
tj / crowder software / com
On Oct 1, 4:01 a
Hi.
Thank you for the excellent work.
I have a problem with InPlaceEditor.
This is my snippet code :
--
new Ajax.InPlaceEditor($('nazarat2'), 'query.php?ajax', {
rows:15, cols:40, okContro
36 matches
Mail list logo