can text loaded with spry from an XML file be replaced by sIFR text?

can text loaded with spry from an XML file be replaced by sIFR text?

恋你朝朝暮暮 发布于 2021-11-24 字数 770 浏览 812 回复 1 原文

I'm a relative newb when it comes to sIFR but I have managed to get it up an running before. I've never heard of this problem though. I have data loading via Adobe Spry into my page and then i'm trying to apply the sIFR replacement to that text once it's loaded. I can either get sIFR to replace the place holder text but then not load the text from XML OR I can load the XML data but then not have sIFR style the text at all. I can't get both to work. No idea what the problem is. Any thoughts would be greatly appreciated.

Link and username and password below. (It's only protected because the site is not finished and i don't want the Search engine spiders picking it up yet.)

jordanheider.com/builder.php

username: dash
password: kudzu

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

路还长,别太狂 2022-06-07 1 楼

sIFR can only replace what is both in the document at the time of replacement, and displayed on the page. So in your case, indeed after loading the new content into the page, you must do the replacements again.

I've noticed a few animations, it's possible the timing is incorrect, meaning that the content isn't actually displayed yet when you do the replacement.

Not sure what you mean by not being able to load new text if sIFR replaces the placeholder text, but it sounds like sIFR might be preventing the code responsible for loading text from firing. This could be solved by hooking up an event manually, using the onRelease callback you can specify in sIFR.replace().