Right, now I have a new issue (lol), my problem now is when I add a
new DIV to the page.

My code for adding the new item is:

function place_sticker(id, div) {

var qs = "selectedStickerId=" + id + "&div=" + div;

var handlerFunc = function(t) {
    alert(t.responseText);
}

                /* {

                        }*/

                new Ajax.Request("place_sticker.php", {
                        parameters: qs, evalScripts: true,
                        onSuccess: function(t, jsonObj) {

                                        new Insertion.Top("playground", 
t.responseText);
                                        Effect.Appear("sticker-" + id);

                                }
                                        }
                );

}

The code for 'place_sticker.php' is:

<div id="sticker-<?php echo("".$_POST["selectedStickerId"].""); ?>"
title="<?php echo("".$_POST["selectedStickerId"].""); ?>" class="<?php
echo("".$_POST["div"].""); ?>" style='position: relative; left: 1px;
top: 1px; z-index: 317; display: none;' onClick="zIndex(this);"><img
src="store/images/delete_entry_button.gif" align="right" href="#"
onclick="remove_sticker('sticker-<?php echo("".
$_POST["selectedStickerId"].""); ?>');" /></div>

<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[

new Draggable('sticker-<?php echo("".$_POST["selectedStickerId"].""); ?
>',
{

        scroll:window,
        revert:isNotWithinPlayground,
        zIndex:317
                }
);

// ]]>

</script>

My problem is, because of the "new Insertion.Top", all the other DIV's
are getting pushed down. Is there anyway I can stop this?

Thanks if you can help,
Simon.


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to