Using javascript from a string of HTML source? - KingPin's Forum
KPsDenKPsDen ArmoryImage HostingLegendz text RPGIp DisplayIRCFlash Arcade
Forum
      |        
Register
         .trade in Reputation Item list (Posted By:jesseman - Replies:18 - Views:223)      « »     Reported Visitor Message by redemption (Posted By:redemption - Replies:0 - Views:1)      « »     You Know You're Addicted To WoW When (Posted By:Evul Bot! - Replies:97 - Views:783)      « »     [epic] post you pic thread [/epic] (Posted By:Bionuclear - Replies:257 - Views:5702)      « »     Question (Posted By:Bionuclear - Replies:4 - Views:45)      « »     hello (Posted By:redemption - Replies:4 - Views:33)      « »     Just been ganked (Posted By:cedrics - Replies:6 - Views:77)      « »     Wall Animation (Posted By:Zangetsu - Replies:2 - Views:50)      « »     FREE watching online TV from China (Posted By:mindyschott - Replies:0 - Views:6)      « »     where i go to report a gm (Posted By:JRBLOODMIST - Replies:2 - Views:47)      « »     
KingPin's Forum
 
K.P.s.N. Register vbBux / KPs Mall Bugs Blogs FAQ Search Today's Posts Mark Forums Read Donate
Go Back   KingPin's Forum > KP's Network Forum > RSS News
Reload this Page Using javascript from a string of HTML source?
 


RSS News This is a discussion on Using javascript from a string of HTML source? in the RSS News;
Description: Dear all, I am using .NET and now I have a string which contains the HTML source of a web ...

Reply
 
LinkBack Thread Tools
Using javascript from a string of HTML source?
(#1 (permalink))
Old
I need answers is Offline
Private
Points: 164, Level: 2 Points: 164, Level: 2 Points: 164, Level: 2
Activity: 0% Activity: 0% Activity: 0%
I need answers is an unknown quantity at this point
 
I need answers
Rupees: 79.00
Bank: 500.00
Total Rupees: 579.00
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
Using javascript from a string of HTML source? - December 26th, 2007

Dear all,

I am using .NET and now I have a string which contains the HTML source of a web page. The HTML source contains many HTML elements and each of them has been assigned an unique ID, an example is like this:

<div id="login"></div>

With javascript, I can get a reference to this HTML element by using document.getElementById("login")

But now the HTML source is in a string like this (VB.NET):

Dim htmlSource As String=GetHtmlSource(url)

Although you may suggest that I can use the XmlReader in .NET to manipulate the its DOM tree, the problem is that, most HTML documents are not well-formed.

Therefore, I would like to know if I can load the javascript engine of the browser in .NET, so that I can supply the HTML source and the javascript syntax to it and then obtain the returned result.

Since the javascript engine seems to be more forgiving than the XmlReader, that's why I want to use it.

Is there any library that allows me to do this?

Thank you very much.

 
Reply With Quote
Reply

Bookmarks

Tags
html, javascript, source, string

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Rupees Per Thread View: 1.00
Rupees Per Thread: 15.00
Rupees Per Post: 5.00
Forum Jump



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2004-2009 KPsN


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81