-
1. Re: HTTPService question - help!!!
Claudiu Ursica Mar 10, 2011 8:52 AM (in response to Mark Embrey)If your HTML is clean which it should be you will parse it like any regular XML.
It depends if you have the same HTML or the same div hierarchy for different
pages...
your result function will take an ResultEvent as parameter as in
private function myParsingFunction(event:ResultEvent):void
{
var resXML:XML = event.result as XML;
//here you have the page as xml
now you need to get out the information, I don't get what you need to get
out but if you paste your html I will give it a shot....
}
HTH,
Claudiu
-
2. Re: HTTPService question - help!!!
saisri2k2 Mar 10, 2011 9:39 AM (in response to Mark Embrey)thre is a way to query the xml
xpath way of doing..
xml.body.div.@(id==3).div.@(id==2).div.div.@(id==2)
Other way
xml.body.div[3].div[2].div.div[2]
something like the above should work for you. More on ths in the below link. I guess you can build logic round the above query.
-
3. Re: HTTPService question - help!!!
Mark Embrey Mar 10, 2011 10:38 AM (in response to Claudiu Ursica)Claudiu,
thanks for the suggestion.
I also think thatsaisri2k2's response is helpful
I will give them both a try
Mark
-
4. Re: HTTPService question - help!!!
Mark Embrey Mar 10, 2011 10:40 AM (in response to saisri2k2)saisri2k2,,
thanks for the suggestion.
I will give it a try and report back
Mark
-
5. Re: HTTPService question - help!!!
Mark Embrey Mar 10, 2011 1:04 PM (in response to Claudiu Ursica)in the function below
1. private function myParsingFunction():void
2. {
3. var resXML:XML = event.result as XML;
4. myData = resXML.body.div[3].div[2].div.div[2];
5. }line 3 is throwing a "1120: Access of undefined property event." error.
Any ideas what this might be?
thanks!
Mark
-
6. Re: HTTPService question - help!!!
saisri2k2 Mar 10, 2011 2:11 PM (in response to Mark Embrey)Yea... Your funcion is supposed to take result event.. ?? Yu getting
teh result from d server?

