[Phpwm] RE: Phpwm Digest, Vol 41, Issue 6

Rayhan Abdulmughnee rayhan at hotmail.com
Fri Nov 3 12:21:57 GMT 2006


Nice.....thats looks really good.  When the menu item is changed, are you 
changing  the value in the database as well?  Is that how you are getting 
the menu to stay in the new position, instead of going back to the original 
position?

rayhan

----Original Message Follows----
From: "Chris Allen" <pickledegg at hotmail.co.uk>
Reply-To: West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
To: phpwm at mailman.lug.org.uk
Subject: [Phpwm] RE: Phpwm Digest, Vol 41, Issue 6
Date: Fri, 03 Nov 2006 12:00:22 +0000
MIME-Version: 1.0
X-Originating-IP: [80.176.129.237]
X-Originating-Email: [pickledegg at hotmail.co.uk]
X-Sender: pickledegg at hotmail.co.uk
Received: from xinit.lug.org.uk ([217.147.93.68]) by 
bay0-mc3-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 3 
Nov 2006 04:01:26 -0800
Received: from localhost.localdomain ([127.0.0.1] helo=xinit.lug.org.uk) by 
xinit.lug.org.uk with esmtp (Exim 3.33 #2) id 1Gfxiz-0003AZ-02 ; Fri, 03 Nov 
2006 12:00:41 +0000
Received: from mail-in-01.lug.org.uk ([217.147.93.69])by xinit.lug.org.uk 
with esmtp (Exim 3.33 #2) id 1Gfxix-0003AU-00 for phpwm at mailman.lug.org.uk; 
Fri, 03 Nov 2006 12:00:39 +0000
Received: from bay112-f15.bay112.hotmail.com ([64.4.26.25] 
helo=hotmail.com)by mail-in-01.lug.org.uk with esmtp (Exim 4.50) id 
1Gfxir-0000IY-3Nfor phpwm at mailman.lug.org.uk; Fri, 03 Nov 2006 12:00:39 
+0000
Received: from mail pickup service by hotmail.com with Microsoft 
SMTPSVC;Fri, 3 Nov 2006 04:00:24 -0800
Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP;Fri, 
03 Nov 2006 12:00:22 GMT
X-Message-Info: LsUYwwHHNt2QMnF1zA1opWJAbxF7V1l44Sgg149GxmU=
X-OriginalArrivalTime: 03 Nov 2006 12:00:24.0914 
(UTC)FILETIME=[A55F3320:01C6FF3F]
X-lug.org.uk-Spam-Score: -2.2 (--)
X-lug.org.uk-Spam-Report: No, score=-2.2 required=5.0 
autolearn=hamversion=3.0.3; pts rule name              description-0.0 
SPF_HELO_PASS          SPF: HELO matches SPF record-2.6 BAYES_00 BODY: 
Bayesian spam probability is 0 to 1%[score: 0.0000]0.1 MSGID_FROM_MTA_HEADER 
  Message-Id was added by a relay0.3 AWL AWL: From: address is in the auto 
white-listScanned on host mail-in-01.lug.org.uk on Fri,03 Nov 2006 12:00:39 
+0000.If you have any query please contact postmaster at lug.org.uk
X-lug.org.uk-Virus-Scanner: Scanned by ClamAV on mail-in-01.lug.org.uk at 
Fri,03 Nov 2006 12:00:39 +0000
X-BeenThere: phpwm at mailman.lug.org.uk
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: West Midlands PHP User Group <phpwm.mailman.lug.org.uk>
List-Unsubscribe: 
<https://mailman.lug.org.uk/mailman/listinfo/phpwm>,<mailto:phpwm-request at mailman.lug.org.uk?subject=unsubscribe>
List-Archive: <http://mailman.lug.org.uk/pipermail/phpwm>
List-Post: <mailto:phpwm at mailman.lug.org.uk>
List-Help: <mailto:phpwm-request at mailman.lug.org.uk?subject=help>
List-Subscribe: 
<https://mailman.lug.org.uk/mailman/listinfo/phpwm>,<mailto:phpwm-request at mailman.lug.org.uk?subject=subscribe>
Errors-To: phpwm-bounces at mailman.lug.org.uk
Return-Path: phpwm-bounces at mailman.lug.org.uk

>Chris,
>if you get stuck then just give me a shout, its a while since I wrote that
>bit but I should be able to review just how I did it pretty quickly.
>I dont recall it taking me hugely a long time to get it sorted once I'd
>worked out what it was supposed to do.
>One thing that I do recall was afterwards figuring that in fact you didnt
>actually technically need two buttons, just a down one - since you could
>always drop down the one above the one you wanted to go up to get the same
>result.
>Didnt look quite as intuitive for the user though as up/down buttons!

Well have a look at this:
I've gone with the Ajax solution, but as I've never used ajax before I have 
a question.

http://www.pickledegg.orchardhostings6.co.uk/cmf/index.php/admin/

( just the draggable bit-  its all WIP ) :-)


In the article where I got it from ( 
http://www.phpriot.com/d/articles/client-side/sortable-lists-with-php-and-ajax/index.html 
), he mentions this:

"One possible way to handle this would be to send a success/failure 
indication from processor.php, and then to read this response in index.php, 
rolling back the drag and drop if failure was returned."

Do you have any idea how he would 'roll back' the drag and drop if a failure 
was returned?

PS, I got it working and transferred it to a codeigniter environment, that 
why the urls look the way they do.

If you want any of the code, just yell.

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


_______________________________________________
Phpwm mailing list
Phpwm at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/phpwm

_________________________________________________________________
All-in-one security and maintenance for your PC.  Get a free 90-day trial! 
http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail




More information about the Phpwm mailing list