Multiple spaces leads to multiple-1 ' ' in grid..
Result is: "q(space) w"
_Data = Grid JS Array...
var _k, ss, _ss="";
for( _k in _Data )
while( ss.indexOf(" ")>-1 )
ss = rep(ss, " ", "");
function rep(s, oldvalue, newvalue)
var r, re;
re = new RegExp(oldvalue);
r = s.replace(re, newvalue);
Not optimized, I know.. (:-
This post looks like it has something to do with this, although I can't really figure what's going on, or what's being suggested.
Any clarification on this would be appreciated.
Multiple spaces = 1 space is a browser issue (all browsers, part of the HTML specification)
... I'm strugling on this.
What I'm aiming for is to produce a column of timestamps with the following format:
"22:58 14-Feb-2006" (time in UK right now!)
note separation between time and date - makes it much more readable.
Alex has helped me get the format fixed so that it sorts OK (great), but now I just need the separation.
I am producing this as a text string in above format server side and loading it into the grid as a column in a straight 2-d js array. I'm not sure how to handle put in ' 's or when/where to use escape() and unescape() client side.
Apologies if this appears lazy - I'm tired and not really thinking straight I guess. Any further help hugely appreciated!
With ' ' where the space between minutes and day neither escape() nor unescape() will actually change/add to the data.
I guess for myself I am unclear to what you are trying to escape. Can you explain what you mean by "but now I just need the separation"
I'm trying to put a clear gap between the time e.g. 22:58 and the date e.g. 14-Feb-2006. It doesn't look too bad in this post, but when in small sized text e.g. font:menu, having just one space between the time and the date makes a column of these difficult to read. I would prefer two or maybe three spaces between them. This is what I was referring to as "separation" (not brilliantly explained I know).
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.