ok, go to http://www.hypertextwebdesign.com/admin,
click the button that shows up (placeholder for login form)
Click on Galleries on the menu on the left

What shows next is the main galleries page. Here the client can sort the galleries how they want them to be sorted on their website, delete galleries, edit, etc

You can view the corresponding HTML mark-up on this page.

If you view it in IE, you get something a little different then FF and Safari (I haven't checked Opera yet).

Thanks,

Paul



Ricardo wrote:
What exactly are you trying to achieve? It's hard to deduce anything
from lots of .prev() and .next() calls without seeing the
corresponding HTML mark-up. What inner DIV? What container?

Moving a single row up should be as simple as $row.insertBefore
( $row.prev() ); http://snipt.org/kkpo

On Jun 18, 10:37 pm, Paul Witschger <tigerseyet...@gmail.com> wrote:
This code seems to work great in FF and Safari, but IE seems to interact
with it differently.

[code]
$('a.moveup').click(function(event) {
        var href = $(this).attr('href');
        $.get(href);
        var $thisRow = $(this).parents('tr:first');
        var $thisTable = $('#main_table');
        var $rows = $('#main_table tr');

        $thisRow.next().insertBefore($thisRow.prev().prev());
        $thisRow.insertBefore( $thisRow.prev().prev().prev());

        $rows.find('.moveup, .movedown').show();

        $thisTable.find("tr:nth-child(2)").find(".moveup").hide();
        $thisTable.find("tr:last").prev().find(".movedown").hide();

        return false;
    });
[/code]

In Firefox and Safari, it does what it's supposed to do, but for some
reason, in IE it seems to stretch the div container about 5 times as
tall as it's supposed to be, bottom align the inner div, and then
switch. Once that happens, you can switch the lines around just fine. It
doesn't stretch the div container again, just leaves it as is (5 times
as tall).

What is wrong with this code? It's really starting to irritate me.

If you need to see it in action, let me know (and possibly an IM way or
email way to contact you, and I will send you the URL and instructions.

Thanks,

Paul

Reply via email to