Assuming your iframe's id is "foo", you would do :

connect("foo", "onchange", function(e) {
    logDebug($("foo").src);
});

Not sure what "onchange" event means on an iframe though.

See http://mochikit.com/doc/html/MochiKit/Signal.html#fn-connect for
more information about signals.

-- Yoann


2008/11/14 jonbutler88 <[EMAIL PROTECTED]>:
>
> I have an iframe on a page, and im trying to write some ajax to check
> the src variable when onchange is called. However, it has to be
> secure, so rather than include onchange='func()' in the HTML, I have
> to assign it with javascript. Im still pretty new to mochikit, and im
> wondering what the best way to set this up would be?
>
> Thanks in advance, sorry if its a bit vague.
>
> >
>

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

Reply via email to