[Windmill-dev] Issue with click command and preventDefault
Adam Christian
adam at osafoundation.org
Sun Dec 16 15:30:40 PST 2007
Robert,
For the moment I am going to blame the javascript frameworks for
making it really difficult for this to work out of the box.
So my solution is the addition of a new method in our API called
'clickAjax' that works exactly the same as click, and actually uses
all of the click methods but with a tweak that doesn't follow any HREF
if they exist. This way you can explicitly call clickAjax for those
problematic clicks, and the rest of the clicks can continue to
function as expected.
As this is a bit of a specific fix for the click no propagate problem,
we will solve future issues as they come.
The fixes are in the trunk now and will be released in 0.3.6.
Adam
On Dec 15, 2007, at 6:48 PM, Robert Leftwich wrote:
>
> On Sat, 15 Dec 2007 17:50:50 -0800, "Adam Christian"
> <adam at osafoundation.org> said:
>>
>> {"params": {"id": "yui-dt0-container4"}, "method": "click"}
>>
>> That appears to do what you are wanting to do.
>>
>
> Thanks.
> I'll see if I can apply that to the other widget I'm having the same
> problem with as well.
>
>> However the event bubbling/propagation issue is still at large, I'll
>> give that some thought and see if I can come up with a solution
>> tomorrow.
>
> Look forward to it.
>
> Robert
More information about the Windmill-dev
mailing list