PDA

View Full Version : Source Code Grabber


oldcrazylegs
03-03-2006, 08:18 PM
Here is a really helpful tool for grabbing other peoples' HTML, JavaScript, CSS source code. The only problem is it doesn't seem to work in Windows XP with Internet Explorer. I have Windows 2000 Pro and Internet Explorer and it works fine in that. I'm on a public computer so i can't download http://www.codelifter.com/

Could someone try to fix this for XP?


<script language="javascript">
function viewSource() {
var test = document.viewsource.source1.value;
document.location = "view-source:" + test
}
</script>
<form name="viewsource">
<font face="arial" size="2" color="black"><b>Try .css and .js files to</b></font><br>
<input type="text" size="35" name="source1" value="">
<input type="button" onclick="viewSource()">
<input type="reset" value="Reset">
</form>

Beagle
03-03-2006, 08:22 PM
If you're goal is to simply view the source of the various files, you know you can just type the path in right?

My guess is that when it doesn't work, that browser version doesn't support view-source:file.ext as a valid url

Try putting the locations in by hand.

fci
03-03-2006, 09:20 PM
if you used the web developer extension on firefox, you would find that to be much more powerful. After it's installed:
Right-click on page > Web Develoeper > Information > View JavaScript

You can install it from here:
https://addons.mozilla.org/extensions/moreinfo.php?id=60

although it can be installed with Firefox usually by doing a "Custom" instead of "Typical" install.

oldcrazylegs
03-03-2006, 10:01 PM
Like I said above I only have Internet Explorer. Yeah I knew I could type in the path but I like doing it with the grabber box. Well if worse comes to worse i can always use http://www.expandinghead.net/tool/source.pl

fci
03-04-2006, 07:17 AM
here's the link to download firefox:
http://www.mozilla.com/firefox/