all groups > macromedia flash sitedesign > october 2007 >
You're in the

macromedia flash sitedesign

group:

Flash calling window.location.hash causes IE6 crash


Flash calling window.location.hash causes IE6 crash hackins
10/29/2007 3:42:37 PM
macromedia flash sitedesign:
I am developing an HTML javascript application and I want to preserve
state in a way that can be book-marked. I chose HTML anchors as a means
of preserving state. When the application changes state, the HTML page
URL would change from default.html to default.html#stateA.

example: http://pearstudios.com/javascript/l...shAndFlash.html

This has worked perfectly within HTML and javascript alone, however,
when connecting Flash and javascript, this is the one sticking point.
Every other javascript function that I have called from Flash using
getURL("javascript: x"); works perfectly, but when window.location.hash
= "x";, window.location.href = "baseUrl.html#" + "x";, or
window.location.assign("baseUrl.html#" + "x"); is called from Flash, IE
6.0 crashes (or replaces the current page with a blank page). Oddly,
the crash occurs the second time Flash calls the javascript function.

Does anyone have any idea why this is happening and how I can get
around this problem?

Thanks,

Atenciosamente
Marcio dos Santos Amorim
CEREBRUM - Websites e Softwares para Internet
http://www.cerebrum.com.br/
telefax: 55 (11) 6205.3350 - celular: 55 (11) 9603.3874
msn: atendimento@cerebrum.com.br - skype: atendimento_cerebrum


Re: Flash calling window.location.hash causes IE6 crash hackins
10/29/2007 4:42:19 PM
This is a solution

AddThis Social Bookmark Button