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

推荐订阅源

Forbes - Security
Forbes - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
The Hacker News
The Hacker News
博客园 - 司徒正美
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
I
Intezer
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
Scott Helme
Scott Helme
T
Threat Research - Cisco Blogs
T
Tailwind CSS Blog
月光博客
月光博客
Recent Announcements
Recent Announcements
博客园 - 叶小钗
J
Java Code Geeks
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News and Events Feed by Topic
A
Arctic Wolf
B
Blog RSS Feed
Recorded Future
Recorded Future
D
DataBreaches.Net
有赞技术团队
有赞技术团队
Project Zero
Project Zero
U
Unit 42
T
Tor Project blog
The GitHub Blog
The GitHub Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
CERT Recently Published Vulnerability Notes
博客园 - Franky
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Security Latest
Security Latest
C
Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
H
Heimdal Security Blog
Vercel News
Vercel News
Stack Overflow Blog
Stack Overflow Blog
S
Securelist

博客园 - 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的时候。