[Catalyst] Using jQuery with development server

Colin Brizell c.brizell at worc.ac.uk
Wed Mar 24 11:22:06 GMT 2010


I have the following markup in a template list.tt2 file

 

<div class="tr" id='row_1_1'>

<div class="tdremove">

        <a onclick="alert('Hello');

                event.stopImmediatePropagation;

                alert('Goodbye');

                $('#row_1_1').remove();

                alert('GoodbyeAgain');

                event.stopImmediatePropagation;

                return false;" href="">

                <img src='quest/images/remove.png' alt="Remove"
title="Remove" />

        </a>

</div>

 

When I clink on the image the first two alerts are displayed but the third on
isn't and

The "list function in the Question.pm Controller is called and the page is
refreshed.

 

If I remove the following jQuery code:-

 

 $('#row_1_1').remove();

 

The event is not propagated

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100324/ad61ed9a/attachment.htm


More information about the Catalyst mailing list