[Kss-devel] problem with effects in Opera and IE

Balazs Ree ree at ree.hu
Sat Aug 18 11:14:41 CEST 2007


On Wed, 15 Aug 2007 18:03:01 +0300 Denis Mishunov wrote:

> But, then I wrap it with KSS and here the problem appears. I load the
> page and click the link to which the action is assigned. Action works in
> FF and Safari only. Both Opera and IE create the DIV #overlay, but
> nothing more. They just raise JS error. If I wrap both effects with
> comments, so that they are not available for engine, no errors in any
> browser.
> 
> Here is the error that Opera shows in it's log:
> http://paste.plone.org/16259
> 
> IE suggests to run debugger, I run it and it shows the stopper in...
> 
> While I was testing this behavior, i has been changed somehow. Now I
> don't get any errors in console. The effect is just not applied in Opera
> and IE. IE shows that small triangle in the bottom left corner saying
> that page was displayed with the errors only. This triangle appears only
> after action is called. When the page loads and action is not invoked,
> there is no triangle.

Let's summarize how I understand it:

- your kss action, in FF, works

- your kss action, in Opera and IE, fails (first you got javascript 
error, with the pasted code you get no error but nothing happens)

- your version of javascript code that does not interface with kss works

- your kss action even works in Opera, when kss is put into Production 
mode (while same thing failed to work in Development mode)

Is this all correct?


Well if this is the case then there is chance you have a packing problem. 
Since we apply safe packing on your plugin, if in Production mode.

Unfortunately it is quite easy to write code withoug noticing, that will 
fail after packing. The packer itself contains bugs too. I have 
substantial experience in this since I have spent hours spotting errors 
of this kind in the kss code. I can already see you have missing 
semicolons in your code:

    objOverlay.onclick = function() {myBackdrop.end();}

needs one in the end, and also,

 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
 
I cannot say if these solve the problem; in addition to the plugin 
itself, could you provide an example html (like we do in kss.demo) that 
enables me to test the plugin in a simple way? This could be a html that 
also triggers the problem for you.

If you could give me this, I will debug this further and help you fix the 
problem (including, if kss needs a fix).

Thanks for your time for spending in this!

-- 
Balazs Ree



More information about the Kss-devel mailing list