Hi,

I've a small problem with MochiKit.Signal, I'm using the revison 1115
from SVN.

I've search in the group for a similar probelm and I've find this:
http://groups.google.it/group/mochikit/browse_thread/thread/ff371bae19369098/eee583b0c09348c9?lnk=gst&q=%22src+has+no+properties%22+connect&rnum=1#eee583b0c09348c9
But I don't have resolved the problem.

This is the piece of code that don't work:
connect('red', 'onclick', swapImg);
the "src has no properties" is the error but when I try to use:
connect('window, 'onload', swapImg);
it work fine.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
    <title>Mock</title>
    <script type="text/javascript" src="MochiKit.js"></script>
    <script type="text/javascript">

    var swapImg = function() {
        finalimg = IMG({'src': 'logo.png'});
        swapDOM(selector, finalimg);
        };

    connect('red', 'onclick', swapImg);

    </script>
</head>
<body>
        <div id="selector">
        <img src="adverts/110x26-5kb-Hostedby-colored.gif" />
        </div>

        <a href="#" id="red">red</a>
</body>
</html>

Thanks,
Mariano


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to