yesthattom: (Default)
[personal profile] yesthattom
How do I execute some javascript and see the real output?

For example, if you look at this page you will see a text box in the middle of the screen. It's generated by calling the java script function "CAdrawbox('standard', '550')". If you check the source code in the browser you just see "CAdrawbox('standard', '550')". I want to see the HTML that the function output.

I've extracted the javascript to a file called foo.js but loading it into a browser just shows me the output (I believe).

Suggestions? I need to scrape this HTML (just once) for use on another project related to the website.

Date: 2006-05-06 08:40 pm (UTC)
From: [identity profile] origamislayer.livejournal.com
If you are using Firefox, select the entire page, right click and choose "View Selection Source". IE has a IE 5 plugin that allows this (and runs IE 6.x) but, well, it's IE.

This will show you rendered page in it's current state. This is invaluable when you're writing JS that updates the page on the fly.

Date: 2006-05-07 04:40 pm (UTC)
From: [identity profile] yesthattom.livejournal.com
You rock! That's a great tip!

Sadly, I've already walked through the code manually to determine what it was outputting. Ugh. The result is that I now turn an RSS feed into something that people can #include on their web site if they want a box like this.

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 11:12 am
Powered by Dreamwidth Studios