| View previous topic :: View next topic |
| Author |
Message |
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
|
I'm gonna use it to tag elements so that I can watch them, so I can grow and shrink the text if the parent element gets too small
E.g.: <span shrinkText="true">this is some text</span> <~ If the text is wider than the span / parent div, I'll make the text shorter and do "..."
Cool, thanks
I'll try and remember that; I'd definitely like that.
Reply with quote
|
| |
|
|
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
|
Prob is IEs selectNodes etc are limited
It only returns element nodes afaik
No other type (e.g. an integer)
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
|
Yeah that too
U r limited in getting node sets of elements or a single element
As a query result
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
|
To count matches without the overhead of retreiving them
Just an example
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
|
But u probably want selectNodes("//span[string-length(.) &gt; 100]")
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
| |
|