R – sIFR not working with prototype AJAX page load

ajaxprototypejssifr

I have a website with two pages. A and B. When you click on a link in page A, it will uses the Prototype Ajax.Updater() to load the link page (page B) into a div on the page (Page A).

When page B loads into page A, the sIFR replacements are not working and the tag inner text is not even showing.

I have tried doing a sIFR.redraw() when the page has loaded into the div, with no success.

When i view page B in the browser by itself, it works perfectly.

Is it possible to insert HTML into a DIV tag on a page using AJAX and have the sIFR display properly?

Best Answer

I would imagine that you probably need to re-initialise sIFR within the onComplete callback of Ajax.Updater