Thursday, September 9th 2010, 4:22pm UTC+2

You are not logged in.

  • Login
  • Register

1

Tuesday, February 9th 2010, 12:25am

Javascript embed and IE

Hi gang

I am having problems with IE and javascript embed, IE in many cases crashes in 32bit OS and brings up errors in 64Bit OS.

Wondering if there is some problem with javascript I use in the gallery and the one KrPano is using.

I have a test page here.

http://olihar.com/ZenTest/Panorama/Australia/

Select one of the images and try and go to the next one and see what happens, All browsers work fine except IE, ether crash, freeze or error.

Klaus, I am wondering as well about the SWFobject and update of it? Now they have version 2.2 out, are there any things in there that might help the problem I have.

Can anyone else verify this problem I have, all PC computers I have tried have IE problems with this.

2

Tuesday, February 9th 2010, 2:52pm

no, sorry, no idea, on my computer it's working in IE8...?

but there seems to be a problem with the "swfkrpanomousewheel.js",
maybe try using the latest script (included in the 1.0.8 beta 9 download in the templates/html/swfobject/ folder)

best regards,
Klaus

3

Tuesday, February 9th 2010, 7:53pm

Klaus

I am sitting at a computer using IE8 right now, It is a Windows Vista 64bit. It works but shows an error.

Quoted

Error: Error #2094: Event dispatch recursion overflow.

at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
at kflashpano::Kpano/onResize()
at krpano/resizeHandler()
at flash.display::Stage/set quality()
at kflashpano::Kpano/invalidatescreen()
at kflashpano::Kpano/setarea()
I have uploaded the new js files on my server along with the expressinstall. Called

http://www.olihar.com/pano/swfobject/swf…usewheel_new.js
http://www.olihar.com/pano/swfobject/swfobject_new.js
http://www.olihar.com/pano/swfobject/expressinstall.swf

I tried just using a new version of mouseweel but no change seemed to happen.

I did quickly read through the examples you have, does it support Zoomify tiling as it is now with 2.1

Current code is.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<style>
krpanoDIV{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#FFFFFF; }
</style>

<div id="krpanoDIV">
<noscript><table width="100%" height="300px"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>

<script type="text/javascript" src="http://www.olihar.com/pano/swfobject/swfobject.js"></script>
<script type="text/javascript" src="http://www.olihar.com/pano/swfobject/swfkrpanomousewheel.js"></script>

<script type="text/javascript">
// <![CDATA[
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
// path to krpano.swf
var so = new SWFObject("http://www.olihar.com/pano/olihar.swf", "krpanoSWFObject", "100%", "300px", "9.0.28","#000");
so.addParam("allowFullScreen","true");

so.addVariable("xml", "http://www.olihar.com/pano/buttons.xml");

// path to zoomify's ImageProperties.xml
so.addVariable("zoomify", "http://www.olihar.com/pano/012/ImageProperties.xml");

// set panorama type of zoomify's image - SPHERE or CYLINDER
so.addVariable("zoomifytype", "SPHERE");

// set horizontal field of view of zoomify's image
so.addVariable("image.hfov", "2.2989");
so.addVariable("image.vfov", "0.7391");
so.addVariable("view.limitview", "fullrange");

if ( so.write("krpanoDIV") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpanoDIV").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/"  target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
}
// ]]>
</script>


What kind of changes would I have to make to get things working with the new swfobject.js?

Klaus, can you try the current setup I have in IE 7 and see what I am talking about when browser crashes or locks up?

Maybe someone else can report the same problems I have seen on all IE 7 machines I have tried.

I am wondering if the issue could be related to flash player 9 as well?

4

Friday, February 12th 2010, 2:25am

Another test Windows 7 IE8 and things work perfectly.

So it seem just IE 7 and older pretty much.

Klaus you have an idea about the code.

5

Friday, February 12th 2010, 6:56am

Update: the problem seems to be with Flash 9, all tests I have done with flash 10 and IE seem to work fine.

6

Saturday, February 13th 2010, 10:17am

Hi,

Quoted

Error: Error #2094: Event dispatch recursion overflow.

that seems to be a flashplayer error...
the changing of the stage quality seem to produce a resize event, which shouldn't be...

I can't reproduce that problem, but I added a workaround as precaution
for the next release, this should avoid that problem,

Quoted

I did quickly read through the examples you have, does it support Zoomify tiling as it is now with 2.1
yes, the difference between SWFObject 1.5 and 2.1 is just the way the parameters were passed,

e.g. instead of this code for 1.5:

Source code

1
2
3
4
5
so.addVariable("zoomify", "http://.../ImageProperties.xml");
so.addVariable("zoomifytype", "SPHERE");
so.addVariable("image.hfov", "2.2989");
so.addVariable("image.vfov", "0.7391");
so.addVariable("view.limitview", "fullrange");


to pass the parameters in 2.1 in that way:

Source code

1
2
3
4
5
6
7
8
9
var flashvars = 
{
  "zoomify"    	: "http://.../ImageProperties.xml",
  "zoomifytype"	: "SPHERE",
  "image.hfov" 	: "2.2989",
  "image.vfov" 	: "0.7391",
  "view.limitview" : "fullrange"
};
swfobject.embedSWF("krpano.swf","krpanoDIV","100%","100%","9.0.28","swfobject21/expressinstall.swf", flashvars, {allowfullscreen:true, bgcolor:"#000000"}, { id:'krpanoSWFObject1', name:'krpanoSWFObject' });


best regards,
Klaus

7

Thursday, February 18th 2010, 4:14am

I have tried and tried, and somehow I am not getting this to work....

You don't have any Zoomify examples for 2.1 out there?

8

Monday, February 22nd 2010, 3:57pm

Hi,
I have tried and tried, and somehow I am not getting this to work....
what is the problem in detail?
can you show your not working code? (the complete code)

best regards,
Klaus

10

Monday, March 1st 2010, 1:24pm

Hi,

try using the latest krpano.swf,
there this problem shouldn't appear anymore,

best regards,
klaus

11

Tuesday, March 9th 2010, 9:10pm

I am using the newest one and do not notice any difference.