Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTM function replacement for IEHTML not matching
#6
Since that time, changed not only HtmlFind to htm, but also "Nexxon Services - Maxthon Browser" to "Nexxon Services - Maxthon". Smile

Tip: code will be more clear if you use variables for big strings passed to functions.

Code:
Copy      Help
str st="Customer Name:DOLLY SMITH[]Street Address:2220 ABLE ST[]Street Address 2:[]City:BESERKELEY[]State:NB[]Zipcode:44702[]Country:US[]Phone 1:9108754365[] "
str sh="[]<TABLE cellSpacing=0 cellPadding=0 width=''100%'' bgColor=#e1e1e1 border=1><TBODY>[]<TR>[]<TD vAlign=top>[]<TABLE cellSpacing=0 cellPadding=2 width=''100%'' border=0>[]<TBODY>[]<TR>[]<TD vAlign=top>[]<TABLE cellSpacing=2 cellPadding=2 border=0>[]<TBODY>[]<TR>[]<TD align=right><FONT face=Arial,Helvetic"
Htm el=htm("TABLE" st sh win("Nexxon Services - Maxthon" "IEFrame") 0 4 0x28)

Tip2: use wildcard characters for part of html and/or text that may change or is not useful.
Tip3: don't check Regexp if you don't use regular expression.
Tip4: don't use HTML if the element can be found using text. HTML may change in the future and you will not see it as you would see text change.

Code:
Copy      Help
Htm el=htm("TABLE" "Customer Name:*" "" win("Nexxon Services - Maxthon" "IEFrame") 0 4 0x21)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)