Hedley Roos wrote: > Dorneles Treméa wrote: >> Hello, >> >> with jQuery, you can use a context for the selectors: >> >> jq('selector', context) >> >> ...where context can be DOM Element, Document or jQuery. >> >> Is there a way to do that with KSS? >> >> I was thinking in something along these lines: >> >> core.replaceInnerHTML('selector', 'content', >> context="frames['frame-name'].document") >> > > I don't think that is possible.
Right, it is not. > >> My usecase is: you click in a checkbox and it replaces the content >> of a kupu field with another text. The main problem is that kupu >> fields use an iframe, and thus normal KSS selectors can't match >> the iframe content... :-/ >> > > Interesting use case, and certainly very useful. You would probably have > to write your own selector. I haven't done that yet, > but I guess if you look at the kss source it won't be too difficult. You'd need to hack : as selectors have not been foreseen to be compound values, you'd need to multiplex your two values. However, you could create your own client action that does know of iframes... > > Good luck! > Hedley -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel