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. > 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. Good luck! Hedley _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel