D
Dudely
I've got a weird problem. I'm trying to pull the phone number off a
webpage (you can see it below if you search for "context"), but
somehow SKYPE has usurped the HTML DOM in a way I don't understand.
Interestingly, none of the below shows up if I simply "view source".
However, when I go into the VBA editor and watch my variables, I'm
able to find it inside one of the elements. I've copied what I found
here. No amount of walking the DOM seems to get me to that phone
number. I'm guessing it has something to do with the fact that it's
an XML statement, but I'm clueless as to what to do from here.
So again, how do I pull the phone number out of the below?
Thank you in advance!
<?XML:NAMESPACE PREFIX = SKYPE /><SKYPE:SPAN
onmouseup="javascript:skype_tb_imgOnOff(this,1,'4',true,'');return
skype_tb_stopEvents();" class=skype_tb_injection
onmousedown="javascript:skype_tb_imgOnOff(this,2,'4',true,'');return
skype_tb_stopEvents();" id=softomate_highlight_4
onmouseover="javascript:skype_tb_imgOnOff(this,1,'4',true,'');"
title="Call this phone number in United States of America with Skype:
+19042922275" onclick="javascript:skype_tb_doRunCMD('call','4',null,
0);return skype_tb_stopEvents();"
onmouseout="javascript:skype_tb_imgOnOff(this,0,'4',true,'');"
durex="99" context="(904) 292-2275" IamRTL="0"><SKYPE:SPAN
class=skype_tb_nop> </SKYPE:SPAN><SKYPE:SPAN
onmouseup="javascript:doSkypeFlag(this,'4',1,1);return
skype_tb_stopEvents();" class=skype_tb_imgA_flex
onmousedown="javascript:doSkypeFlag(this,'4',2,1);return
skype_tb_stopEvents();" id=skype_tb_droppart_4
onmouseover="javascript:doSkypeFlag(this,'4',1,1);" title="Skype
actions"
onclick="javascript:skype_tb_SwitchDrop(this,'4','sms=0',true);return
skype_tb_stopEvents();" onmouseout="javascript:doSkypeFlag(this,'4',
0,1);"> <SKYPE:SPAN class=skype_tb_nop> </
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_imgFlag id=skype_tb_img_f4
style="BACKGROUND-IMAGE: url(file://D:/DOCUME~1/ANDYBR~1/LOCALS~1/Temp/
__SkypeIEToolbar_Cache/acff02a98e444a2cfc8e6580c12ac345/static/
famfamfam/US.gif)"> </
SKYPE:SPAN> <SKYPE:SPAN class=skype_tb_nop> </SKYPE:SPAN></
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_imgS id=skype_tb_img_s4> </
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_injectionIn
id=skype_tb_text4><SKYPE:SPAN class=skype_tb_innerText
id=skype_tb_innerText4> (904...</SKYPE:SPAN></SKYPE:SPAN><SKYPE:SPAN
class=skype_tb_imgR
id=skype_tb_img_r4> <SKYPE:SPAN
class=skype_tb_nop> </SKYPE:SPAN></SKYPE:SPAN></SKYPE:SPAN>
webpage (you can see it below if you search for "context"), but
somehow SKYPE has usurped the HTML DOM in a way I don't understand.
Interestingly, none of the below shows up if I simply "view source".
However, when I go into the VBA editor and watch my variables, I'm
able to find it inside one of the elements. I've copied what I found
here. No amount of walking the DOM seems to get me to that phone
number. I'm guessing it has something to do with the fact that it's
an XML statement, but I'm clueless as to what to do from here.
So again, how do I pull the phone number out of the below?
Thank you in advance!
<?XML:NAMESPACE PREFIX = SKYPE /><SKYPE:SPAN
onmouseup="javascript:skype_tb_imgOnOff(this,1,'4',true,'');return
skype_tb_stopEvents();" class=skype_tb_injection
onmousedown="javascript:skype_tb_imgOnOff(this,2,'4',true,'');return
skype_tb_stopEvents();" id=softomate_highlight_4
onmouseover="javascript:skype_tb_imgOnOff(this,1,'4',true,'');"
title="Call this phone number in United States of America with Skype:
+19042922275" onclick="javascript:skype_tb_doRunCMD('call','4',null,
0);return skype_tb_stopEvents();"
onmouseout="javascript:skype_tb_imgOnOff(this,0,'4',true,'');"
durex="99" context="(904) 292-2275" IamRTL="0"><SKYPE:SPAN
class=skype_tb_nop> </SKYPE:SPAN><SKYPE:SPAN
onmouseup="javascript:doSkypeFlag(this,'4',1,1);return
skype_tb_stopEvents();" class=skype_tb_imgA_flex
onmousedown="javascript:doSkypeFlag(this,'4',2,1);return
skype_tb_stopEvents();" id=skype_tb_droppart_4
onmouseover="javascript:doSkypeFlag(this,'4',1,1);" title="Skype
actions"
onclick="javascript:skype_tb_SwitchDrop(this,'4','sms=0',true);return
skype_tb_stopEvents();" onmouseout="javascript:doSkypeFlag(this,'4',
0,1);"> <SKYPE:SPAN class=skype_tb_nop> </
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_imgFlag id=skype_tb_img_f4
style="BACKGROUND-IMAGE: url(file://D:/DOCUME~1/ANDYBR~1/LOCALS~1/Temp/
__SkypeIEToolbar_Cache/acff02a98e444a2cfc8e6580c12ac345/static/
famfamfam/US.gif)"> </
SKYPE:SPAN> <SKYPE:SPAN class=skype_tb_nop> </SKYPE:SPAN></
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_imgS id=skype_tb_img_s4> </
SKYPE:SPAN><SKYPE:SPAN class=skype_tb_injectionIn
id=skype_tb_text4><SKYPE:SPAN class=skype_tb_innerText
id=skype_tb_innerText4> (904...</SKYPE:SPAN></SKYPE:SPAN><SKYPE:SPAN
class=skype_tb_imgR
id=skype_tb_img_r4> <SKYPE:SPAN
class=skype_tb_nop> </SKYPE:SPAN></SKYPE:SPAN></SKYPE:SPAN>