开发者

Javascript inside RSS file

I've been given a requirement to impliment some google tracking on an RSS feed. Currently we track when users click the RSS link but they also seem to want to track access to the RSS feed outside of th开发者_JAVA技巧at link.

I could impliment this server side but I'm just wondering whether putting google tracking code (Javascript) inside of an RSS (XML) file will actually be parsed by the browser at runtime.


No. The only agent that will execute JavaScript inside an RSS file is a web RSS interface with a security hole.


Nope, RSS is an XML data type. JavaScript is not valid inside of it. It'll have to be done serverside.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜