Hi there.
I wonder if anyone can put me out of my misery.
I am writing a CMS page which outputs a list of items. When you initially go to the page, the php spits out the list of items. If you add a new item, the ajax adds the item and does an innerhtml replace on the list to effectively update it. Works fine.
However (you know this was coming!), I am trying to get a lightbox to work also. Each item has an ‘edit’ link, when clicked a lightbox appears with a form in. This works find when you first go to the page (i.e. when the list has not been innerhtml’d), but as soon as you add a new item, the javascript behind the onlick function on the ‘edit’ links is rendered useless.
I would SOOO appreciate some help right now.
Any ideas?
James