0

Documentation out of date: IE6 alpha fix

asked 2010-03-17 07:25:31 +0800

gekkio gravatar image gekkio flag of Finland
899 1
http://gekkio.fi/blog

Hello!

ZK 5 documentation regarding IE6 alpha fix seems to be out of date.
The wiki page Trouble_Shooting suggests the following:

<?script content="zDom.IE6_ALPHAFIX='.png';"?>

This didn't work for me so I looked at ZK 5.0 source code for guidance.
A ZUL-file in zkdemo (test/zk5-alphafix.zul) suggested the following:

<?script content="jq.IE6_ALPHAFIX='.png';"?>

That didn't work either. I think the reason is that in my project the alpha fix code is in an included ZUL file, not in the "main" ZUL file.
For example: a.zul includes b.zul, b.zul contains the code for the fix.

However, I managed to get it working with this in my ZUL file (script is a valid ZUL tag too!):

<script type="text/javascript">jq.IE6_ALPHAFIX='.png';</script>

The documentation should be updated to reflect the correct way to apply the alpha fix. I'd do it myself but I don't have write access to the wiki... or maybe I just couldn't find the edit button :)

delete flag offensive retag edit

12 Replies

Sort by » oldest newest

answered 2010-03-18 02:45:47 +0800

PeterKuo gravatar image PeterKuo
481 2

every registered user has right to edit, (though the registration is a separate system than forum)
unless some spam user is blocked.

You may change your preference to prefered skin.
@gekkio, come on, it would be ur first contribution in our doc.

link publish delete flag offensive edit

answered 2010-03-18 06:21:58 +0800

gekkio gravatar image gekkio flag of Finland
899 1
http://gekkio.fi/blog

Finally found the edit link!
It was "View source" while I was searching for "Edit" :)

However, it seems that the specific page (Trouble_Shooting) I'd like to edit is locked:
'This page has been locked to prevent editing.'

link publish delete flag offensive edit

answered 2010-03-18 08:18:24 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

My edit is locked too ??

link publish delete flag offensive edit

answered 2010-03-18 19:57:36 +0800

PeterKuo gravatar image PeterKuo
481 2

@gekkio
protected pages are listed in
http://docs.zkoss.org/index.php?title=Special:ProtectedPages&limit=500
I'll discuss with others to see if it is necessary to protect certain page.

@terrytornado
By my edit, you mean which page? Or your wiki account? (not possible, I checked.)
We only blocked some spamming accounts.

link publish delete flag offensive edit

answered 2010-03-18 22:02:12 +0800

PeterKuo gravatar image PeterKuo
481 2

@gekkio
unprotected such page. You may edit now.

link publish delete flag offensive edit

answered 2010-03-19 01:15:07 +0800

gekkio gravatar image gekkio flag of Finland
899 1
http://gekkio.fi/blog

Cool, thanks. I updated the documentation.

link publish delete flag offensive edit

answered 2010-03-21 20:19:33 +0800

PeterKuo gravatar image PeterKuo
481 2

@terrytornado
By "my edit" ?? Do you mean "my watchlist" or "my contribution" ?
They are not locked.
They are in the top of page.

link publish delete flag offensive edit

answered 2010-03-22 05:05:22 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Peter, Now i can edit again.

best
Stephan

PS: Sometimes i found typos i correct them.

link publish delete flag offensive edit

answered 2010-03-22 21:08:05 +0800

PeterKuo gravatar image PeterKuo
481 2

@terrytornado
Inspired by you, I tried a way to check the spelling of wiki page

Download google toolbar for firefox.
It has spelling check tool inside it.
But it can only check content inside an input form.
Goto each wiki page, and edit the whole page. Then the content will be inside a form.

For example, I just modified
http://docs.zkoss.org/wiki/ZKCDI_Quick_Start_Guide

link publish delete flag offensive edit

answered 2010-09-14 19:36:17 +0800

FujitsuConsulting gravatar image FujitsuConsulting
165 1

updated 2010-09-14 20:37:49 +0800

Hi,

I have tried the following alphafix commands, but when the page is first loaded (nothing in cache/no cookies) the alpha fix does not work - when I refresh the page it works then. Does any one of a fix for this? (We are using ZK 5.0.4)

In ZUL:

<?script content="zDom.IE6_ALPHAFIX='.png';"?>

<?script content="jq.IE6_ALPHAFIX='.png';"?>

<script type="text/javascript">jq.IE6_ALPHAFIX='.png';</script>

<?script content="jq.IE6_ALPHAFIX='pn.png'"?>

<zk:image mold="alphafix" src="/img/pn.png"  />

In Java:

    Script alphafix = new Script();
    alphafix.setContent("jq.IE6_ALPHAFIX='.png';");
    appendChild(alphafix);

Heres a simple ZUL file which shows the issue:

<?xml version="1.0" encoding="UTF-8" ?>
<?script content="jq.IE6_ALPHAFIX='.png';"?>
<zk xmlns:zk="http://www.zkoss.org/2005/zul">
  <zk:window title="My First window" border="normal" width="400px" height="400px" sizable="true" style="background-color:#414b68"  >
    <zk:image src="/img/pn.png"  />  
  </zk:window>
</zk>

The first time the page is loaded if I right click>properties on the image it displays:

http://127.0.0.1:8081/ZKApp/img/pn.png;jsessionid=32E318861C6823CBD4288197801B37CF

After a refresh it displays:

http://127.0.0.1:8081/ZKApp/zkau/web/img/spacer.gif

Thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-03-17 07:25:31 +0800

Seen: 675 times

Last updated: Sep 20 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More