Shoutbox

[Help] parse html - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Help] parse html (/showthread.php?tid=64016)

[Help] parse html by BstrdSmkr on 07-26-2006 at 05:55 AM

ok time to call in the pros lol.  i've searched and read until i'm about to puke.  i'm working an a script and i need to parse some html.  i've found the MSHTML activex that should do the trick, but the problem is all the examples are either in c++ or VB which i have no idea about lol.  so the question is how do i call and use it in Jscript?  while i'm on that topic, can someone point me in the direction to learn how to use the c++ and VB examples to my benefit? i.e. how to derive the Jscript syntax from examples in other languages.  any help is greatly apprieciated!  :D


RE: [Help] parse html by Ezra on 07-26-2006 at 08:31 AM

ActiveXObjects are usable with JScript I guess the example also works for JScript with some minor modifications.

If you could link the examples we could take a look on how to change them to make them work with JScript.


RE: [Help] parse html by BstrdSmkr on 07-26-2006 at 04:10 PM

here's the MSDN link to the MSHTML docs. http://msdn.microsoft.com/library/default.asp?url...ence/reference.asp

now if i have the CLSID and the "code base" params for use in a web page, how do i get from:

code:

<OBJECT ID="Balloon"
    CLASSID="CLSID:18D9ABAF-C390-4018-B153-ABB46EBF5A98"
    CODEBASE="BlnDialog.CAB#version=6,5,0,0">
</OBJECT>


to:

code:
var balloon = new activex(SHOOTME.INTHEFACE);


RE: [Help] parse html by RaceProUK on 07-26-2006 at 04:12 PM

code:
var balloon = new ActiveX("CLSID:18D9ABAF-C390-4018-B153-ABB46EBF5A98");
should work. Hopefully.

RE: [Help] parse html by BstrdSmkr on 07-26-2006 at 06:26 PM

fyi, for anyone else who may be searching this out, the clsid for msthml.dll is 25336920-03F9-11cf-8FD0-00AA00686F13


RE: [Help] parse html by ShawnZ on 07-26-2006 at 07:29 PM

You don't need the classid, it's named Microsoft.MSHTML...


RE: [Help] parse html by BstrdSmkr on 07-26-2006 at 07:40 PM

thats what i was looking for!  for future controls, how do i determine the name in that format?


RE: [Help] parse html by hmaster on 07-26-2006 at 07:55 PM

code:
var balloon = new ActiveXObject("Microsoft.MSHTML");
Is that what you meant *-)
RE: [Help] parse html by BstrdSmkr on 07-26-2006 at 08:01 PM

yes, thats exactly it :D