W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Behavioral CSS extensions: Method parameters...

From: Jon Rista <jrista@hotmail.com>
Date: Thu, 25 Oct 2001 03:01:46 -0400 (EDT)
Message-ID: <OE75mVEW3F5pjUn7VN200004abc@hotmail.com>
To: <www-style@w3.org>
I've recently begun using CSS behaviors (I REALLY favor the HTC method over embedded script, keeps things clean and encapsulated), and in my experiments, I've come accross a shortcomming in the current draft. There is no way of defining parameters for a method. It took me well over a week to get the answer to this question. If the working draft for CSS behavioral extensions is still beeing maintained, is it possible to update it with the parameter notation for methods? 

The following works with IE:

<public:method name="samplemethod">
    <public:parameter name="param1"/>
    <public:parameter name="param2"/>
</public:method>

<script language="JScript">
function samplemethod(param1,param2)
{
    // code
}

Jon Rista
Received on Thursday, 25 October 2001 13:52:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT