473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to get the web page's html source code generated by javascript

Dear all,
I have a problem that how to get the page's source code
which is generated by javascript code?

For example:
http://grouper.com/video/south%2bpark

Although I can see the result page which contains pic and
description of each video. But when I see the source html code,
I just can see the section is generated by javascript function.

Is there a way to get the output result of javascript function?

Nov 21 '06 #1
2 4147

ctts...@csie.nctu.edu.tw wrote:
Dear all,
I have a problem that how to get the page's source code
which is generated by javascript code?

For example:
http://grouper.com/video/south%2bpark

Although I can see the result page which contains pic and
description of each video. But when I see the source html code,
I just can see the section is generated by javascript function.

Is there a way to get the output result of javascript function?
Firefox with the savegenpage extension:

<URL: https://addons.mozilla.org/firefox/2262/ >

Or use a bookmark that gets the page's innerHTML:

<URL:
http://groups.google.com.au/group/co...46e77347cded73
>

--
Rob

Nov 21 '06 #2
ct*****@csie.nctu.edu.tw wrote:
Dear all,
I have a problem that how to get the page's source code
which is generated by javascript code?

For example:
http://grouper.com/video/south%2bpark

Although I can see the result page which contains pic and
description of each video. But when I see the source html code,
I just can see the section is generated by javascript function.

Is there a way to get the output result of javascript function?
The "View Rendered Source Chart" extension for Firefox is indispensable;
you can also try a 'bookmarklet' like this one in Firefox if you only
want raw source code instead of the rendered chart:
javascript:void
window.open("view-source:data:text/html,"+escape(document.getElementsByTagName("html" )[0].innerHTML));

Gives you a new window containing highlighted HTML of the contents of
the current document. (Note: only the contents of the root node - which
means it's missing the root node itself and anything outside of that.)

Jeremy
Nov 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Lasher | last post by:
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser....
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
11
by: Steve Hoyer | last post by:
I am trying to deploy my first asp.net app to our webserver (2K server, IIS 5) My start page comes up and you can get to the subsequent pages that are tied into our sql server (2K). Each page...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
2
by: ibiza | last post by:
Hi all, I have a quite big webform that has about ~15 validators. I found, after having looked at the generated HTML source, that the filesize is pretty big : about 65KB. Then, I added to every...
6
by: dark.peony | last post by:
Hi, (--1--) I'm trying to find a way to jump to a link (<a href="ref"></a>) in a page that is generated with javascript. The source view of the page only shows the javascript methods. The...
3
by: jonnyblazed | last post by:
Okay..... I'm gonna sum up what I want to do cause it will make it pretty simple for you guys to understand. Here we go: I have a form that posts data to a PHP mailer page I have created. When...
2
by: ste-m | last post by:
Hi there, I was wanting to calculate how long my web pages take to load, and to insert this time into my HTML source code (not visible from the browser, but only in source view) as a HTML...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.