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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - kenshin

[Flex]关于国内Flex开发者/从业者的调查问卷 - kenshin [Flex]Mate Flex Framework 流程介绍之Using view injection [国殇]2009年5月12日 汶川一周年纪念日 [Flex]Mate Flex Framework 流程介绍之Using an adapter - kenshin [Flex]Mate Flex Framework 流程介绍之 Listener tag [Flex]Mate Flex Framework 流程介绍之Two-way Communication:Dispatcher and ResponseHandler tags - kenshin [Flex]Mate Flex Framework 流程介绍之One-way Communication [Flex]浅析Mate flex framework在实际项目中的应用(三) [Flex]浅析Mate flex framework在实际项目中的应用(二) [RIAMeeting]RIA大讲堂 - Flex开发免费培训 [Flex]浅析Mate flex framework在实际项目中的应用(一) [Flex]为什么国内的公司都不敢使用Flex作为产品的平台与主要开发语言 - kenshin [Flex]Flex编程注意之如何得到itemRenderer里面的内容 - kenshin [RIAMeeting]RIAMeeting出席Adobe Developer Tech Day - kenshin [Flex]Flex编程注意之SecurityError: Error #2060错误解决方案 - kenshin [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的时候。