how to do parsing and then storing content in the buffer

V

vk

can you help me out in this
....
<IMG style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px;
PADDING-LEFT: 0px; LEFT: -108px; PADDING-BOTTOM: 0px; MARGIN: 0px;
BORDER-LEFT: 0px; WIDTH: 256px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px;
POSITION: absolute; TOP: -175px; HEIGHT: 256px"
src="http://mt0.google.com/mt?n=404&v=ap.14&x=1314&y=3174&zoom=4"
unselectable="on" galleryImg="no" coordX="0" coordY="0" priority="0">

i need to parse this string and i have to fetch url and coordinates
value of X and Y from this and has to store them in buffer ..
can anybody provide me with coding for this ..
thanx in advance
 
R

Randy Webb

vk said the following on 7/21/2006 4:12 AM:
can you help me out in this

Yes, what do I get for it?
....
<IMG style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px;
PADDING-LEFT: 0px; LEFT: -108px; PADDING-BOTTOM: 0px; MARGIN: 0px;
BORDER-LEFT: 0px; WIDTH: 256px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px;
POSITION: absolute; TOP: -175px; HEIGHT: 256px"
src="http://mt0.google.com/mt?n=404&v=ap.14&x=1314&y=3174&zoom=4"
unselectable="on" galleryImg="no" coordX="0" coordY="0" priority="0">

Hmmm, lots of IE crap code in there that doesn't affect me, but ok.
i need to parse this string and i have to fetch url

"fetch url"? Just read it's src property.
and coordinates value of X and Y from this
getAttribute('coordX')
getAttribute('coordY')

and has to store them in buffer ..

What buffer?
can anybody provide me with coding for this ..

Probably so.
thanx in advance

Sure.
 
P

Philipp

Randy said:
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...
What buffer?

.... store the matches in an array or something.
can anybody provide me with coding for this ..

There you go:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top