Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 9th, 2007, 01:41 AM
Authorized User
 
Join Date: Apr 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to control this ajax behaviour by site admin

Hi

im using dreamweaver 8(PHP-mysql)
i download ajax library called dragable-content.js it enables you to drag the item from any place to any other on the page
like image or DIV just make it's class=dragableElement"

ex
on the top of the page write
-----
<script type="text/javascript" src="js/dragable-content.js"></script>

<img src="/images/heading3.gif" class="dragableElement">
-----
now the heading3.gif can be dragged to any place on the page ant it works well

my first question if i want to check any conditional (in PHP) before applying this effect on the element

for example i want only the admin of the site can drag the items not visitors
how an i do that?

the second question is how to save the placment of the dragable elements on the server not cookie or session ex. in db

thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Site Admin Tool SQL Problem PeteC BOOK: Beginning ASP.NET 2.0 AJAX ISBN: 978-0-470-11283-0 1 July 29th, 2008 12:48 PM
Web Site Admin Tool Rich57 ASP.NET 2.0 Basics 0 October 25th, 2007 03:31 AM
Cant log in to the admin site? okboy BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 July 1st, 2006 07:08 AM
General Site Admin motor1 BOOK: ASP.NET Website Programming Problem-Design-Solution 0 October 16th, 2003 08:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.