| View previous topic :: View next topic |
| Author |
Message |
montanarry
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. |
| |
|
|
|
|
plantino
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) |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| As a value or as an attribute? I'm confused |
| |
|
|
plantino
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 |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Why would I want to get an integer? |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
To count matches without the overhead of retreiving them
Just an example |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Oh okay |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| But u probably want selectNodes("//span[string-length(.) &gt; 100]") |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| What is the standard MSXML that comes with IE6? |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
Or something
3.0 |
| |
|
|
|