Sorry, but it's still not working for me.

I have my main page as it initially loads with this in the <HEAD>

<script language="javascript"
type="text/javascript">
var ipeManager = {
    editors: {},
    addOrReplaceEditor: function(id, url, size, paramstr){
        var eds;
        eds = this.editors;
        if (eds[id]) {
            eds[id].dispose();
            delete eds[id]; // Or: eds[id] = undefined;
        }
        eds[id] = new Ajax.InPlaceEditor(id,url,{size: size,callback:
function(form, value) {return paramstr + escape(value);}});
    }
};
</script>

Then, in the body of the document is the keyword list:

<div id="kwdisp0101">A keyword</div>
...a bunch of other stuff...
<script>
        ipeManager.addOrReplaceEditor('kwdisp0101','./addkw.php',
17,'oldwd=A%20keyword&idx=subject-id&myparam=');
</script>

<div id="kwdisp0102">Another keyword</div>
...a bunch of other stuff...
<script>
        ipeManager.addOrReplaceEditor('kwdisp0102','./addkw.php',
17,'oldwd=A%20keyword&idx=subject-id&myparam=');
</script>

<div id="kwdisp0103">Yet another keyword</div>
...a bunch of other stuff...
<script>
        ipeManager.addOrReplaceEditor('kwdisp0103','./addkw.php',
17,'oldwd=Yet%20another%20keyword&idx=subject-id&myparam=');
</script>

The content called in by ajax is basically a copy of the keyword list,
and has exactly the same structure and IDs as the list above.

On loading the initial page it works fine, but when the ajax content
has replaced the original list, it no longer works. No Firebug errors,
no nothing.

Did I miss something out?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to