Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Location
    California
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Netscape Versions and document.write

    Does anyone know what was the last version of Netscape that displays your actual document.write output in the page source (instead of the document.write code itself) when you view it from within the browser? I found this to be a nice debugging tool at times, but recent versions of Netscape no longer do this. Not even Netscape 4.79 does it, but I believe earlier versions of Netscape 4.x do. I'd like to be as up to date as possible and still have that feature. Anyone?

    Thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    V. 4.76 does what you mentioned, but I don't know if it's the last version which does it...

    That is, 4.76 shows the results of the javascript while the new Netscape shows the code. That what you meant?

  • #3
    New to the CF scene
    Join Date
    Jan 2003
    Location
    California
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Yep, that's what I meant -- thanks a lot, you just saved me a lot of downloading, installing, and testing, and I'm on a slooooow modem! Unless anyone else knows of a later version that does the same thing, I think this issue is closed.

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    161
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Originally posted by rccprof
    Yep, that's what I meant -- thanks a lot, you just saved me a lot of downloading, installing, and testing, and I'm on a slooooow modem! Unless anyone else knows of a later version that does the same thing, I think this issue is closed.
    Why do you need to know that, you can make Netscape 4.76 display <script language="javascript" type="text/javascript" src="main.js"></script> instead of the result of the JS. I don't know why you'd want to though.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    An escape tool perhaps... Example

    New Netscape (and IE) source code
    <script language="JavaScript" type="text/javascript">
    <!--
    document.write(unescape("%3Chtml%3E%0D%0A%0D%0A%3Chead%3E%0D%0A%3Cmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text/html%3B%20charset%3Diso-8859-1%22%3E%0D%0A%3Ctitle%3EFoo%20Bar%3C/title%3E%0D%0A%3C/head%3E"));
    // -->
    </script>

    Netscape 4.76 source code
    <BASE HREF="file:/C|/Coding Forum/">
    <HTML>

    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <TITLE>Foo Bar</TITLE>
    </HEAD>


    Hope that's what rccprof meant...

  • #6
    New to the CF scene
    Join Date
    Jan 2003
    Location
    California
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I teach a beginning JavaScript course and I think it is a useful debugging tool for students who are trying to generate a bunch of HTML with document.write's to have a handy way of seeing exactly what their document.write's are generating (character by character) instead of just getting errors on their page and having a bigger mystery to solve. On the other hand, my network administrators are hesitant to install old versions of browsers in our lab for me, so I am trying to placate them by at least finding the most recent one that will do this.

    Does that make more sense?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •