Jump to content


Photo

viewing source after javascript has changed it


  • Please log in to reply
6 replies to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 02 October 2006 - 03:14 PM

How to view the source of a page as the browser sees it AFTER javascript has done all it's changes? This would help me troubleshoot stuff sooo much faster.

Thanks!

#2 FrOzeN

FrOzeN
  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 02 October 2006 - 05:09 PM

In firefox you can go "View" -> "Select All", then right-click somewhere on the page and click "View Selection". I think (not entirely sure) the source it shows you is how firefox sees it, or at least mostly how it does anyway.

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 02 October 2006 - 05:45 PM

Yeah it works. So in firefox press Ctrl+A (select all), right click and click on "View Selection Source".

Edit: You can use FireFox' DOM inspector too.

#4 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 02 October 2006 - 06:28 PM

In firefox you can go "View" -> "Select All", then right-click somewhere on the page and click "View Selection". I think (not entirely sure) the source it shows you is how firefox sees it, or at least mostly how it does anyway.


Boo-yah! Now I can validate my javascript dynamic pages, too. This has been an increasing need with the javascript document.write of the <object> tag being forced upon us by the Eolas vs Microsoft law suit. Very very good news.

Thanks again!

#5 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 03 October 2006 - 12:09 AM

There's also an developer add-on for IE that gives you a "view partial source" option.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#6 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 03 October 2006 - 12:20 AM

thanks for the reply... Next time I boot windows I'll have to check out the IE developer options.

#7 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 03 October 2006 - 03:06 PM

It doesn't say it's for IE6, but it still works.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users