cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <lmorand...@ieee.org>
Subject Re: [2.2] Forms dependency on Ajax block
Date Thu, 13 Mar 2008 21:55:55 GMT
Grzegorz Kossakowski wrote:
> Luca Morandini pisze:
>>
>> Come to think of it, there should be three modes, not teo: ajax,
>> javascript, no-javascript.
>> Hence, ajax='true' should be changed too, maybe to
>> client='static|dynamic|ajax'... hmm... the matter is getting hairy.
> 
> Ah, right. Not sure what's the best solution for this. Have you done some research on
how others
> avoid using JS for things like pop-up windows? I hope you can come up with something
general that
> won't increase complexity of existing XSLT templates.

Well, you can use hidden DIVs, to be displayed when an "on hover" event 
is triggered.

Off the top of my head:
...
     <style type="text/css">
       .errmsg div {
         display:none;
       }
       .errmsg:hover div {
         display:block;
         position:absolute;
         top:inherit;
         left:inherit;
         z-index:10;
         width:50%;
         background-color:red;
         color:white;
         font-size:1.3em;
         }
     </style>
...
     <div class="errmsg">
       Error
       <div>
         <img 
src="http://cocoon.apache.org/2.2/blocks/forms/1.0/images/errors.gif"/>
         This is a rather annoying error message
       </div>
     </div>

I'm sure a web designer coudl come up with something better.


> If it's not possible I would recommend creation of your own forms-customized block that
will inherit
> from original Cocoon block and override necessary templates. Thanks to SSF capabilities
there are
> very clean ways to customize such things.

That's absolutely true: I'm starting to appreciate what SSF can do.

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


Mime
View raw message