Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Javascript Question

  1. #1
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Exclamation Javascript Question

    Hi,

    I am making a PHP Web page and the reason that I am posting in the javascript section is beacuse of the folowing code that I dont get. EVERY Page I make this stupid code comes up in the <head> section and after the </html>. I cannot get rid of it? Can any one tell me how?
    Here is the code:
    Code:
    <script language="JavaScript">
    <!--
    
    function SymError()
    {
      return true;
    }
    
    window.onerror = SymError;
    
    var SymRealWinOpen = window.open;
    
    function SymWinOpen(url, name, attributes)
    {
      return (new Object());
    }
    
    window.open = SymWinOpen;
    
    //-->
    </script>
    NOTE: I did not write this code, It automaticlly adds it in.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    When does it appear? Before, or after you upload your page to your host? If before, it is your editor, either get a better one or change its settings. If after, it is your host, and they must have a policy against pop ups.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Yes, It appears when I view the soruce of the document on the server. I would normally not care, but I want My Document to be 100% Valid and it isn't beacuse the <script> tag must have a attribute 'type="text\javascript"' and I cannot change it.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You could ask your host to change their code so that the pages that it is added to will validate. They might be open to that. Also, if this is a free or cheap hosting account, by paying a little or a little more to get a higher level account, they might stop putting it on there as part of the upgrade - ask them for details. Or, you could get a different host.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This code is added on the fly by Norton Antivirus, I believe. It's not in your actual page and shouldn't affect its validity.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Twey: It cannot be Norton Anitivirus, beacuse when I download the page through a HTML Validator, it still shows up, even on a diferent computer that does not have Norton Anti Virus. Besides it is added on the server, I don't think Norton Anti Virus Knows my FTP Codes
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm, really? Must be something on the server, then, I guess. Definitely looks like NAV code though.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    fileserverdirect =

    O.K. I turned off pop-up blocking on my computer in N.A.V. Ok, it took the code away completely except this:
    Code:
    <script language="JavaScript">
    <!--
    
    function SymError()
    {
      return true;
    }
    
    window.onerror = SymError;
    
    //-->
    </script>
    in the head section. It still won't pass validation beacuse of the "type" attribute. HOWEVER It registers fine and says "Your Document is 100% Valid!" on the other computer. How can I make it so that it is valid on most computers?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What the heck? The validator is an objective self-contained client, the computer on which you check should make no difference at all. Were you validating by direct input or upload, perhaps?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    I was not using W3C's Validator, I was using CSE HTML Validator v8.0 http://www.htmlvalidator.com/standard/. It is alot better than W3C's online one. It is a program, and as we all know Programs have a wider seletion of things it can do over Online ones. But when W3C told me to add a DOCTYPE, The whole webpage went all out of order and things that used to be in a striaght line were all over the place.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

Bookmarks

Posting Permissions

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