What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] parse html

[Help] parse html
Author: Message:
BstrdSmkr
Junior Member
**

Avatar
Earned. Never Given.

Posts: 46
39 / Male / –
Joined: Jul 2006
O.P. [Help] parse html
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
07-26-2006 05:55 AM
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Help] parse html
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.
[Image: 1-0.png]
             
07-26-2006 08:31 AM
Profile PM Web Find Quote Report
BstrdSmkr
Junior Member
**

Avatar
Earned. Never Given.

Posts: 46
39 / Male / –
Joined: Jul 2006
O.P. RE: [Help] parse html
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);

07-26-2006 04:10 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [Help] parse html
code:
var balloon = new ActiveX("CLSID:18D9ABAF-C390-4018-B153-ABB46EBF5A98");
should work. Hopefully.
[Image: spartaafk.png]
07-26-2006 04:12 PM
Profile PM Web Find Quote Report
BstrdSmkr
Junior Member
**

Avatar
Earned. Never Given.

Posts: 46
39 / Male / –
Joined: Jul 2006
O.P. RE: [Help] parse html
fyi, for anyone else who may be searching this out, the clsid for msthml.dll is 25336920-03F9-11cf-8FD0-00AA00686F13
07-26-2006 06:26 PM
Profile E-Mail PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: [Help] parse html
You don't need the classid, it's named Microsoft.MSHTML...

This post was edited on 07-26-2006 at 07:29 PM by ShawnZ.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
07-26-2006 07:29 PM
Profile PM Web Find Quote Report
BstrdSmkr
Junior Member
**

Avatar
Earned. Never Given.

Posts: 46
39 / Male / –
Joined: Jul 2006
O.P. RE: [Help] parse html
thats what i was looking for!  for future controls, how do i determine the name in that format?
07-26-2006 07:40 PM
Profile E-Mail PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: [Help] parse html
code:
var balloon = new ActiveXObject("Microsoft.MSHTML");
Is that what you meant *-)

This post was edited on 07-26-2006 at 07:56 PM by hmaster.
[Image: sig.png]
07-26-2006 07:55 PM
Profile PM Web Find Quote Report
BstrdSmkr
Junior Member
**

Avatar
Earned. Never Given.

Posts: 46
39 / Male / –
Joined: Jul 2006
O.P. RE: [Help] parse html
yes, thats exactly it :D
07-26-2006 08:01 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On