|
-
Nov 30th, 2011, 01:49 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] HtmlDocument.AppendChild at specific place?
I have a webpage, which contains a table. I would like to add another row to that table. I found the AppendChild method, but what I understand, it only appends at the bottom of the body.
How can I insert an Element, or raw Html at a specific place nicely?
-
Dec 1st, 2011, 12:49 AM
#2
Re: HtmlDocument.AppendChild at specific place?
Hi,
I pretty guess you mean HtmlElement.Appendchild() right?
Are you using the webbrowser control for this?
How about inserting an element based on string manipulation, like
getting the index of the html tag in a string variable,then appending
the element based on that specified index..Is this possible?
Greg
-
Dec 1st, 2011, 11:50 AM
#3
Thread Starter
Hyperactive Member
Re: HtmlDocument.AppendChild at specific place?
Oh yeah of course, my fault. It should be HtmlElement.Appendchild() 
Yes I am using a webbrowser control.
Your idea with the index would surely work, though since you reminded me that it was HtmlElement I reminded myself that I could just find the right element (the table) since I want the row at the bottom in the table anyway 
EDIT: I succeeded adding the element, but the page shows no change?
EDIT2: The page automatically adds a bit of URL to all href elements....I give up.
Last edited by Cyb3rH4Xter; Dec 1st, 2011 at 12:11 PM.
-
Dec 1st, 2011, 12:33 PM
#4
Re: [RESOLVED] HtmlDocument.AppendChild at specific place?
Glad to enlighten you up...
Greg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|