Yeah, turns out onchange doesnt detect the change in src.... Im gonna
have to write my own event by the looks of it, something that baffles
me a fair bit. Ive seen lots of tutorials using prototype, but none
that focus around mochikit.... Ive had a good look at the
mochikit.signal docs, but im no closer to understanding how to write
my event. Im clearer about how to attach the event and fire it, but im
lost with how to define when it fires...

Thanks very much for your help so far :)

On Nov 14, 10:21 am, "Yoann Aubineau" <[EMAIL PROTECTED]>
wrote:
> 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.
>
> Seehttp://mochikit.com/doc/html/MochiKit/Signal.html#fn-connectfor
> 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 [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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to