[Kss-devel] Using a context for selectors

Dorneles Treméa dorneles at x3ng.com.br
Thu Aug 14 03:33:12 CEST 2008


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")

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... :-/

Is that possible or am I missing something here?

-- 

Dorneles Treméa
X3ng Web Technology
http://nosleepforyou.blogspot.com



More information about the Kss-devel mailing list