tedster

msg:1495218 | 11:41 am on Mar 10, 2003 (gmt 0) |
View Source in Netscape 4 might do it for you.
|
Allen

msg:1495219 | 2:02 pm on Mar 10, 2003 (gmt 0) |
Hmmmm, Just tried 4.8 without any luck. Do you know the specific version? Thanks, Allen
|
jdMorgan

msg:1495220 | 2:22 pm on Mar 10, 2003 (gmt 0) |
Allen, It's probably just the ambiguous tip: Most versions support it. However, to view URI [example.com,...] type the following into the address bar. view-source:http://www.example.com This has worked for me an all 4.x versions. Jim
|
Allen

msg:1495221 | 2:56 pm on Mar 10, 2003 (gmt 0) |
Nope. Still displays the javascript ratehr than the code it produces :( Allen
|
g1smd

msg:1495222 | 11:41 pm on Mar 10, 2003 (gmt 0) |
It depends exactly what those javascript commands do, how the HTML code is built up. Try running the page through the HTML code validator at [validator.w3.org...] (tick the boxes for show source, and outline as well as parse tree if you are interested) and then on the results page, scroll down past the error list and the outline to where the source code is shown.
|
Allen

msg:1495223 | 12:30 pm on Mar 11, 2003 (gmt 0) |
I finally got it to do it by changing all the <'s to <'s. The first time I tried it I was in a rush, so wasn't looking at the script properly. Some of the script required some of its output to be there before it would display anything else. Allen
|
gph

msg:1495224 | 3:19 pm on Mar 11, 2003 (gmt 0) |
I see you've found a work around, this might help for next time. If you're using windows you can use JS/activeX to create a file then write the string to it. str = '<html>...' Check_Str(str) function Check_Str(str) { fso = new ActiveXObject('Scripting.FileSystemObject') thefile = 'c:\\My Documents\\test.txt' var TristateFalse = 0 var ForWriting = 2 fso.CreateTextFile(thefile) a = fso.GetFile(thefile) b = a.OpenAsTextStream(ForWriting, TristateFalse) b.Write(str) b.Close() alert('function stopped, go check file, come back and click "ok", the file will be deleted') c = fso.GetFile(thefile) c.Delete() } If you don't want the file deleted you can remove everything after and including the alert.
|
GeorgeGG

msg:1495225 | 12:11 am on Mar 12, 2003 (gmt 0) |
Check: [worldtimzone.com...] View Generated Source (IE5,N6,Moz) GeorgeGG
|
Allen

msg:1495226 | 8:47 am on Mar 12, 2003 (gmt 0) |
Cool. Thanks. That'll save me time in the future :) Allen
|
|