Randy Webb wrote:
and coordinates value of X and Y from this
getAttribute('coordX')
getAttribute('coordY')
I suppose what he actually wanted to know was how to parse the coordX
and coordY parameters with a regular expression and...
and has to store them in buffer ..
What buffer?
.... store the matches in an array or something.
can anybody provide me with coding for this ..
There you go:
-------------------------------------
var foo = '<IMG style="BOR [...] oordY="0" priority="0">';
var match =
foo.match(/src="([^"]+)".*?coordX="(\d+)".*?coordY="(\d+)"/);
-------------------------------------
You'll find the URL in match[1], the X coordinate in match[2] and the
the Y coordinate in match[3].