惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
C
Check Point Blog
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
K
Kaspersky official blog
P
Proofpoint News Feed
Security Latest
Security Latest
The Hacker News
The Hacker News
Simon Willison's Weblog
Simon Willison's Weblog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
WordPress大学
WordPress大学
Project Zero
Project Zero
A
Arctic Wolf
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
G
GRAHAM CLULEY
A
About on SuperTechFans
S
Securelist
P
Palo Alto Networks Blog
T
Tor Project blog
罗磊的独立博客
C
Cisco Blogs
Microsoft Azure Blog
Microsoft Azure Blog
Know Your Adversary
Know Your Adversary
NISL@THU
NISL@THU
Latest news
Latest news
博客园 - 叶小钗
C
CERT Recently Published Vulnerability Notes
U
Unit 42
AWS News Blog
AWS News Blog
J
Java Code Geeks
小众软件
小众软件
D
Docker
The Cloudflare Blog
Cisco Talos Blog
Cisco Talos Blog
B
Blog
V
Vulnerabilities – Threatpost
V
V2EX
GbyAI
GbyAI
博客园_首页

博客园 - kenshin

[Flex]关于国内Flex开发者/从业者的调查问卷 [Flex]Mate Flex Framework 流程介绍之Using view injection [国殇]2009年5月12日 汶川一周年纪念日 [Flex]Mate Flex Framework 流程介绍之Using an adapter [Flex]Mate Flex Framework 流程介绍之 Listener tag [Flex]Mate Flex Framework 流程介绍之Two-way Communication:Dispatcher and ResponseHandler tags [Flex]Mate Flex Framework 流程介绍之One-way Communication [Flex]浅析Mate flex framework在实际项目中的应用(三) [Flex]浅析Mate flex framework在实际项目中的应用(二) [RIAMeeting]RIA大讲堂 - Flex开发免费培训 [Flex]浅析Mate flex framework在实际项目中的应用(一) [Flex]为什么国内的公司都不敢使用Flex作为产品的平台与主要开发语言 [Flex]Flex编程注意之如何得到itemRenderer里面的内容 [RIAMeeting]RIAMeeting出席Adobe Developer Tech Day [Flex]Flex编程注意之SecurityError: Error #2060错误解决方案 [RIA业界]两个消息 [Flex]Flex编程注意之ViewStack高度异常问题 [产品介绍]Flex Live chat [产品介绍]Flex calendar
[Flex]Flex编程注意之J.parentNode is null的错误
kenshin · 2009-04-04 · via 博客园 - kenshin

前两天发现了一个超级诡异的错误,我增加了一个swf在某个页面的时候,总是会Flash Player总是会弹出 J.parentNode is null的错误。

而且最头痛的是出现了JS程序员最怕出现的问题:只在IE6、IE7下面弹出错误,FF3、Chrome 2.X、Chrome 1.X、Safari下面均没有问题

问题发生的环境:

由于我在加入这个功能到页面的时候,为了更方面的deploy,使用了<script type="text/javascriptid="lssrc="http://www.xxx.com/xxx.js"></script>的方式

即在任何想调用这个功能的页面直接embed 这个段js即可。

探索方式:

1、开始的时候怀疑JQuery有问题,后来吧JQuery去掉后,问题依旧。。。

2、遍查了一些Flex code,也没有发现任何问题。

3、去掉了出现错误的swfobject + Flex后,症状消失。

经过以上的步骤,基本上可以圈定:出现问题的是swfobject。

没有好的办法,去swfobject Project Group看了一下,结果发现了答案。。。

具体内容:

具体解决方法:

将swfobject放到<head></head>里面,而非<body></body>里面,问题即可解决。

PS:以上问题发生在有多个swfobject被import的时候。