Author Topic: WTF is going on!  (Read 2300 times)

0 Members and 1 Guest are viewing this topic.

November 11, 2005, 03:13:27 AM
Read 2300 times

Australian Warriors

  • Veritas Furniture

  • Offline
  • ****

  • 417
  • Karma:
    0
    • View Profile
when i try to send a message, the screen is displayed as this:

n\t\t\n\t\t\n\t'); smileyPopupWindow.document.write('\n\t\n\t\t

n\t\t\t Pick a smiley\n\t\t\t
'); for (row = 0; row < smileys.length; row++) { for (i = 0; i < smileys[row].length; i++) { smileys[row][2] = smileys[row][2].replace(/"/g, '"'); smileyPopupWindow.document.write('  '); } smileyPopupWindow.document.write("
"); } smileyPopupWindow.document.write('\n\t\t\t
Close Window\n\t\t

\n\t\n'); smileyPopupWindow.document.close(); } // ]]>



WTF is GOING ON!!!!!!!!!!!

November 11, 2005, 10:23:37 AM
Reply #1

kobok

  • Tech Team
  • Posts By Osmosis

  • Offline
  • *****
  • Veritas Council

  • 5000
  • Karma:
    172
  • Personal Text
    Veritas Council
    • View Profile
when i try to send a message, the screen is displayed as this:

n\t\t\n\t\t\n\t'); smileyPopupWindow.document.write('\n\t\n\t\t

n\t\t\t Pick a smiley\n\t\t\t
'); for (row = 0; row < smileys.length; row++) { for (i = 0; i < smileys[row].length; i++) { smileys[row][2] = smileys[row][2].replace(/"/g, '"'); smileyPopupWindow.document.write('  '); } smileyPopupWindow.document.write("
"); } smileyPopupWindow.document.write('\n\t\t\t
Close Window\n\t\t

\n\t\n'); smileyPopupWindow.document.close(); } // ]]>



WTF is GOING ON!!!!!!!!!!!


The following javascript code exists in the javascript code for the page:

Quote
            function moreSmileys()
            {
               var row, i;

               if (smileyPopupWindow)
                  smileyPopupWindow.close();

               smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
               smileyPopupWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>');
               smileyPopupWindow.document.write('\n\t<head>\n\t\t<title>Additional smileys</title>\n\t\t<link rel="stylesheet" type="text/css" href="http://forums.vsociety.net/Themes/oxygen11/style.css" />\n\t</head>');
               smileyPopupWindow.document.write('\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">Pick a smiley</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');

               for (row = 0; row < smileys.length; row++)
               {
                  for (i = 0; i < smileys[row].length; i++)
                  {
                     smileys[row][2] = smileys[row][2].replace(/"/g, '&quot;');
                     smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; ' + smileys[row][0] + '&quot;, window.opener.document.postmodify.message); window.focus(); return false;"><img src="http://forums.vsociety.net/Smileys/default/' + smileys[row][1] + '" alt="' + smileys[row][2] + '" title="' + smileys[row][2] + '" style="padding: 4px;" border="0" />[/url] ');
                  }
                  smileyPopupWindow.document.write("
");
               }

Your browser is apparently displaying portions of this code where it should be displaying the results of executing that code.  I see no flaw in this code, and no one else seems to be experiencing problems, so I'm going to conclude that there is a flaw in your browser's javascript.  You should upgrade your browser, as this may be giving you problems on other sites as well.  I recommend this.
Latest article:  Construct Dynamics

Want to learn psi?  Check out our collection of psi articles.