问题描述
我有一个有两个页面的网站.A和B.当您单击页面A中的链接时,它将使用Prototype Ajax.Updater()
将链接页面(页面B)加载到页面(页面A)上的div中.
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).
当B页加载到A页中时,无法替换sIFR,并且甚至没有显示标签内部文本.
When page B loads into page A, the sIFR replacements are not working and the tag inner text is not even showing.
当页面加载到div中时,我尝试执行 sIFR.redraw()
,但没有成功.
I have tried doing a sIFR.redraw()
when the page has loaded into the div, with no success.
当我单独在浏览器中查看页面B时,它可以正常工作.
When i view page B in the browser by itself, it works perfectly.
是否可以使用AJAX将HTML插入页面的DIV标签中并正确显示sIFR?
Is it possible to insert HTML into a DIV tag on a page using AJAX and have the sIFR display properly?
推荐答案
mathijsuitmegen:您的解决方案可以在我正在使用ScriptManager的应用程序上完美运行.
mathijsuitmegen:Your solution worked perfectly on an application I'm using where the ScriptManager was already in use.
实际上,该功能只是插入到我的sifr-config.js 文件中,并且可以正常工作,这意味着我的HTML不会混乱.
Infact, The function was simply slotted into my sifr-config.js file and worked perfectly meaning my HTML wasn't cluttered.
这篇关于sIFR无法与原型AJAX页面加载一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!