开发者

Javascript inside RSS file

开发者 https://www.devze.com 2022-12-26 17:20 出处:网络
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

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

精彩评论

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

关注公众号