Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2007, 11:48 AM
Registered User
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding altered DOM after JavaScript Manipulations

Finding altered DOM after JavaScript Manipulations -- is it possible?

It would be extremely useful. For example, after modifying the
display of a web page, such as the JS applications at
http://mynichecomputing.com/digitall...oolTipApps.htm do, is there anyway to "View the Source" , or better yet,
programatically GET the Source of the NEW PAGE that somehow has
been generated.

I think it would not be possible to overstate the advances that
could be made in JS and AJAX, if this is possible. Please feel
free to email me personally at [email protected]

 
Old December 8th, 2007, 02:08 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can take a look at the "IE Developer's Toolbar" for Internet Explorer or the "Web Developer toolbar" for Mozilla....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 8th, 2007, 02:34 PM
Registered User
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there anyway to access this programatically, like for
AJAX applications and so forth? (I.E. so the changed DOM
can itself be the input to a server).

Quote:
quote:Originally posted by Imar
 Hi there,

You can take a look at the "IE Developer's Toolbar" for Internet Explorer or the "Web Developer toolbar" for Mozilla....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 8th, 2007, 02:43 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Just examine the DOM as you would normally, e.g.:
Code:
alert(document.body.innerHTML);
--

Joe (Microsoft MVP - XML)
 
Old December 8th, 2007, 05:20 PM
Registered User
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe, it certainly seems reasonable and you certainly are one who would know. I have not tried it, but will.

It is surprizing how this has never been actually put to good use in JS programming examples in the 20+ books I have read over the last 10 years.

It certainly is very central functionality.

Thanks, again, Joe.

-- Larz






Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty writing javascript to access dom ldoyle Javascript How-To 2 February 23rd, 2007 11:25 AM
JavaScript, CSS, DOM - xBrowser Problem erobb Javascript 1 September 10th, 2006 06:44 AM
New JavaScript DOM article posted jminatel Javascript 0 August 26th, 2006 01:43 PM
XML DOM and Javascript lilu XML 3 September 25th, 2003 07:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.