Problem in IE 7 & 6 [SOLVED]
First, I am just learning jquery / ajax. I have previous knowledge in other languages, just a noob for JS. I do apologize if the error is obvious.
Anyway, this code works in FF2/FF3/IE8.
-
<script type="text/javascript">
$(document).ready(function() {
$('#ribbontab').tableDnD({
onDrop: function(table, row) {
$.post("modules.php?name=Clan_Roster&do=administer&act=ribbons", {'mode': 'reorder', 'ids': $.tableDnD.serialize()});
},
});
});
</script>
Once I trim it down to this it works,
-
<script type="text/javascript">
$(document).ready(function() {
$('#ribbontab').tableDnD({
});
</script>
IE error
Line: 338
Character: 5
Code: 0
Error Message: Expected identifier, string or number
Edit: I found the error, that extra comma as if it was expecting another set.
-
onDrop: function(table, row) {
$.post("modules.php?name=Clan_Roster&do=administer&act=ribbons", {'mode': 'reorder', 'ids': $.tableDnD.serialize()});
},
To
-
onDrop: function(table, row) {
$.post("modules.php?name=Clan_Roster&do=administer&act=ribbons", {'mode': 'reorder', 'ids': $.tableDnD.serialize()});
}