Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
AJAX Drag and Drop Layout Manager
Old 09-25-2008, 10:41 AM AJAX Drag and Drop Layout Manager
digitalfusion's Avatar
Skilled Talker

Posts: 73
Name: Martin
Location: Fife, Scotland
Trades: 0
Hi All,

I'm starting to build a simple content management system and need a little help to make it as interactive as possible.

I need to try and make a drag and drop layout manager using ajax and php.

What i want to accomplish is to have a dynamically generated list of layout positions and a dynamically generated list of the modules already in position and the ones which are unused in a list below, which can be dragged and dropped into their layout position and stored in the database to record where they are so then when pages are loaded the layout can easily be loaded from the database.

Is this something which is possible?

I already know php and can get the stuff to and from the database, but i need to know how to make the drag and drop part with ajax and how ajax would pass the information to php to be stored in the database.

Any help would be greatly appreciated.

Kind Regards,
Martin
__________________
---------------------------------------------------

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
digitalfusion is offline
Reply With Quote
View Public Profile Visit digitalfusion's homepage!
 
 
Register now for full access!
Old 09-25-2008, 10:00 PM Re: AJAX Drag and Drop Layout Manager
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If you search for drag and drop you should be able to find plenty of tutorials. I think most Ajax libraries will have something written so you'll just need to include the library and use it's functions.

As far as passing the info to php that's the basic thing that makes Ajax Ajax. It's done through an XMLHttpRequest. You might just want to grab a quick tutorial on Ajax basics.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-26-2008, 07:41 AM Re: AJAX Drag and Drop Layout Manager
digitalfusion's Avatar
Skilled Talker

Posts: 73
Name: Martin
Location: Fife, Scotland
Trades: 0
Thanks for your fast reply, yea i think i might just start with a basics tutorial hehe It's just that i want to make this script as efficient as possible.

Regards,
Martin
__________________
---------------------------------------------------

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
digitalfusion is offline
Reply With Quote
View Public Profile Visit digitalfusion's homepage!
 
Old 09-26-2008, 11:26 AM Re: AJAX Drag and Drop Layout Manager
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You may want to consider learning a JS framework, such as jQuery, Prototype, etc. I recommend jQuery, because its AJAX functions are especially efficient, but every framework will have an excellent way of providing shortcuts to do common functions. Every framework has a way to do drag-n-drop also, either in its core system or as part of an extension to the library.

Of course, there is nothing wrong with not using a framework, but I find that it takes longer to work out all of the bugs and make it cross-browser compatible, since the code is larger and the issues more complex. That said, it is important to understand the core of JavaScript, so that you don't end up using a library as a crutch, which will hinder you in furthering your understanding of the browser and scripting.
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 09-26-2008 at 11:28 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to AJAX Drag and Drop Layout Manager
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 6.01005 seconds with 12 queries