Using a drag and drop Scriptaculous list- but it simply doesn''t drag
and drop.
PHP is also used.
Here is the code, any ideas much appreciated. There are no javascript
errors or anything to indicate anything wrong.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<link href="styles.css" rel="stylesheet"
type="text/css">
<title>Admin Panel</title>
<script src="src/prototype.js" type="text/javascript"
charset="utf-8"></script>
<script src="src/builder.js" type="text/javascript"
charset="utf-8"></
script>
<script src="src/effects.js" type="text/javascript"
charset="utf-8"></
script>
<script src="src/dragdrop.js" type="text/javascript"
charset="utf-8"></
script>
<script src="src/lists.js" type="text/javascript"
charset="utf-8"></
script>
</head>
<body bgcolor="#000000">
<div id="content">
<div id="login">
Welcome <strong>themit</strong> <a
href="../logexec.php?
logout">Logout</a>
| <a href="../oas/">On Air
Systems</a> | <a
href="../index.php?id=1">Home</a>
</div>
<div id="main_content">
</div>
</div>
</body>
</html>
AJAX is used to put the following code into <div
id="main_content">
Code:
<div id="toolbar"><a href="javascript:void(0)"
onClick="open_url(''pages/index.php?rid=1212209702'',''page'');"><img
border="0" src="button\home.png"></a><img
src="button\image.png" /></
div><br /><h2>Categories</h2>
<h4>Please select a category to edit.</h4><h4>Drag and drop
the
categories to change the order in which they appear.</h4>
<ul id="ddlist2" class="sortable-list">
<li id="item_1"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=1&rid=1212209702'',''page'');">Home</a></li>
<li id="item_2"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=2&rid=1212209702'',''page'');">About
Us</a></li>
<li id="item_3"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=3&rid=1212209702'',''page'');">The
Crew</a></li>
<li id="item_4"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=4&rid=1212209702'',''page'');">The
Show</a></li>
<li id="item_5"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=5&rid=1212209702'',''page'');">The
World of Sport</a></
li>
<li id="item_7"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=7&rid=1212209702'',''page'');">Podcast</a></li>
<li id="item_9"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=9&rid=1212209702'',''page'');">Links</a></li>
<li id="item_8"><a href="javascript:void(0)"
onClick="open_url(''pages/
content.php?cat=8&rid=1212209702'',''page'');">Contact
Us</a></li>
</ul>
<p id="ddlist2_serialize">(waiting for onChange)</p>
<script type="text/javascript">
Sortable.create(''ddlist2'');
</script>
Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---