Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


DOM - RemoveChild Save to file >> .html instead of .xml ?

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,60659
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> DOM - RemoveChild Save to file >> .html instead of .xml ?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 DOM - RemoveChild Save to file >> .html instead o... - 5/24/2008 3:16:02 PM   
  TKS


Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline
Today is officially my first day of looking at DOM, and this was what I came up with. It's rough, but it works to an extent:


      

How can I get the DOM to save this removechild to file permanantly?-

If you already understand how to fix this then you don't need to read my following explaination:

Explaination: This is an embedded iframe on my original .hta document (application=yes). The original hta outputs data to the iframe via a textarea and additional variables- Output: (a) span element with random ID; (b) a href element to call JavaScript; (c) and the JavaScript used to remove the span with ID=Rnd()... but this attempt to "delete" the span, instead temporarily removes it from display... the idea is to open .html, delete span and and all of it's childnodes... all... then save... then the iframe refreshes and renders what appears to be a deleted commented...
 
 
Post #: 1
 
 RE: DOM - RemoveChild Save to file >> .html inste... - 5/24/2008 3:17:05 PM   
  TKS


Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline
By the way, please keep in mind that I'm new to DOM. So if you do something, it would help alot if you said why.

Thanks in advance.

-TKS

(in reply to TKS)
 
 
Post #: 2
 
 RE: DOM - RemoveChild Save to file >> .html inste... - 5/25/2008 10:19:28 AM   
  TKS


Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline
LINK

^^^ Looks like Regular Expressions and Patterns may be a way of getting this done...

(in reply to TKS)
 
 
Post #: 3
 
 RE: DOM - RemoveChild Save to file >> .html inste... - 5/25/2008 11:53:16 AM   
  TKS


Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline

      

^^^ This code writes the text between tags: "<title>" and "</title>" to file...

So, I'm guessing there's indeed a way of deleting text between those tags too...

Almost there...

-TKS

(in reply to TKS)
 
 
Post #: 4
 
 RE: DOM - RemoveChild Save to file >> .html inste... - 5/28/2008 4:12:52 PM   
  TKS


Posts: 154
Score: 0
Joined: 5/16/2008
Status: offline
Figured the problem out aided by TNO:


      

^^^ Tagets top.parent.document textarea from an iframe perfectly.

-TKS

(in reply to TKS)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> DOM - RemoveChild Save to file >> .html instead of .xml ? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts