Wow ! Very instructive :)
Thank's a lot
On 27 mai, 17:32, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
So i was wondering if my code could be optimized ?
Yes, you only need to do the binding once, and then you can reuse it.
There are actually several optimizations you can perform on
Hi David
thanks a lot for the explanation an yes this code works fine
Event.observe(window, 'load', function() {
computeTotalForTable('cities');
});
It's all more clear now, thanks again
gio
On 27 May, 17:56, david david.brill...@gmail.com wrote:
Hi again gio,
some explanation on:
Hi David
thanks a lot for the explanation an yes this code works fine
Event.observe(window, 'load', function() {
computeTotalForTable('cities');
});
It's all more clear now, thanks again
gio
On 27 May, 17:56, david david.brill...@gmail.com wrote:
Hi again gio,
some explanation on:
Hi austenc,
I wil try to look at lunch time if possible, otherwise, I will look
this evening (french time).
--
david
On 28 mai, 01:00, austenc austen.came...@gmail.com wrote:
David,
It is still behaving oddly / making a good 3-5 second delay for each
effect..
Thanks for your help, here's
Hi,
I am using Sortable to sort potentially long lists of 100+ elements.
Sortable itselfs works fast. Each list item contains a select-box with
its position. We want to keep that select box to have a non-js
fallback to sort the list.
After each dragdrop the whole list has to be updated. I have
Because I spend a lot of time trying to figure out your code, maybe I
just give you mine, you will faster understand how to do what I want.
Two sortable lists (#1 and #2). Both of them are driven by MySQL
database, but each are driven by different MySQL tables. The
sortable #1 is where I want
Does anyone know how to change the effects toggle to 'hide' text when
initially on the page? Currently text is 'visible' when you enter the
page, I would like to hide, then show if the users chooses. Thank you!
I'm new at all this but I really love you are all up to!
Example:
Hi,
The usual thing would be to have a function that accepts the number
and does the work, and have both the event handler and the onSuccess
handler call it.
function doTheEditThing(num)
{
// ...implementation...
}
...
onSuccess: function(response) {
// ...do some checks on the
Add style=display:none to the tag.
2009/5/27 united official2012s...@gmail.com:
Does anyone know how to change the effects toggle to 'hide' text when
initially on the page? Currently text is 'visible' when you enter the
page, I would like to hide, then show if the users chooses. Thank you!
Hi,
Add style=display:none to the tag.
And note that Richard made a point of using an inline style there. It
can't be via a CSS class, it has to be an inline style -- if you use a
class to hide it, toggle won't be able to show the element.
HTH,
--
T.J. Crowder
tj / crowder software / com
I think you need to take a step back and think about what you're doing
here. If you use Sortable to re-order a list, that list will stay
ordered (in the visitor's view) precisely as they have dragged it.
There is no need to re-populate the visitor's list with the new order,
because the
I have not been able to get this to work the way you describe. What I
had to do was set up my factory elements as Draggable (with revert)
and then set a separate Droppable container around my sortable. When I
drop, the onDrop function fires, which does the Ajax call to create a
new
Also you can use a document.observe('dom:loaded' ... observer to set
this (and avoid the inline CSS if that bothers you at any level).
Walter
On May 28, 2009, at 9:18 AM, T.J. Crowder wrote:
Hi,
Add style=display:none to the tag.
And note that Richard made a point of using an inline
Ok this onDrop function does the following:
$result = $this-mMysqli-query('INSERT INTO #1sortable SELECT * FROM
#2sortable WHERE id=' .
$content . '');
$updatedList = $this-Build#1();
return $updatedList;
onDrop it's cloning a row from one table to another. It's doing a
MySQl
An because it clones also the Id of a row it will be placed based on
the Id, but not where it was dropped. I can easily tell it to append
the biggest or the lowest id number, because I'm doing a MySQL query,
but I need to paste an item not in the beginning, neither at the end,
but there where it
I think we are missing one another here. The order of things on the
screen is not entirely driven by the database in a Sortable. Until you
fire Sortable.serialize and send the new order back to the server, the
elements on screen may be a different order than in the database. Once
you fire
TJ,
This worked great and expanded what I understand about prototype.
Thanks for posting it.
Thanks -BN
On May 28, 6:49 am, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
The usual thing would be to have a function that accepts the number
and does the work, and have both the event
function getSuggestionFromDB(sURL)
{
var arrResults = new Array();
var objResult;
var myAjax = new Ajax.Request(
sURL,
{
method: 'get',
asynchronous: 'false',
onComplete: function(showResponse)
Yes, that very limited case is simple. What WLQ is trying to do is
have two lists of things, be able to drag an unlimited number of
copies from the first list into the second list, and have the dropped
elements keep their place in the second list while the first list
remains exactly the
In the mysql table create a unique index and use INSERT IGNORE INTO .. the
rest can be achieved with array_unqiue() on the php end
Prototype can create a unique id on the page if i recall correctly so that
can be used as a sub id for the elements with a parent id (the element
container if you
Also .. isnt there ghosting or revert on droppables to make the elements
go back into the container of which they were dragged from If so - this
removes half of the problem .. the only problem left is ordering the second
list which is done on dropend or whatever the syntax is ...
I use a
A Sortable is a special case combination of a Draggable and a
Droppable. A Sortable may be dragged into another Sortable as long as
both lists include the other in their containment property. But
there is no equivalent to Draggable's revert in a Sortable.
In my work, I found that while you
Dear Alex, can you give some more explanation on what you think is the
answer? An what kind of onDrop event should be?
On May 28, 6:07 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
In the mysql table create a unique index and use INSERT IGNORE INTO .. the
rest can be achieved with
Seems like it's too complicated to be done. lol
On May 28, 6:58 pm, Walter Lee Davis wa...@wdstudio.com wrote:
A Sortable is a special case combination of a Draggable and a
Droppable. A Sortable may be dragged into another Sortable as long as
both lists include the other in their
Re up ! :(
On Apr 16, 9:35 am, E. Nadir elasri.na...@gmail.com wrote:
Up !
No ideas ? :(
On 9 avr, 18:06, E.Nadir elasri.na...@gmail.com wrote:
Hi everyone,
I'm trying to move a draggable element in an horizontally scrollable
div.
The issue is that a gap is created between current
On May 28, 3:42 pm, Walter Lee Davis wa...@wdstudio.com wrote:
Also you can use a document.observe('dom:loaded' ... observer to set
this (and avoid the inline CSS if that bothers you at any level).
To the OP: if you want the text to be visible in browers that have
javascript disabled, it's
The iframe element doesn't support any events[1].
You can indeed listen to the load event directly from the IFrame
element.
http://pastie.org/493154
The document that it contains may support various events (such as load,
click, etc.).
Why would a document inside an iframe not support these
On 28/05/2009, at 8:13 PM, gio wrote:
Event.observe(window, 'load', function() {
computeTotalForTable('cities');
});
Have a look at observing 'dom:loaded' rather than 'load'. Info here:
http://www.prototypejs.org/api/document/observe
--~--~-~--~~~---~--~~
$('body').insert({bottom:html});
maybe there was an error when you did the example because parameter position
need be string
$('body').insert({'bottom':html}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
29 matches
Mail list logo