[Kde-nonlinux] javascript failure in kmail

Dave Feustel dfeustel at mindspring.com
Sun Sep 19 20:05:03 CEST 2004


I'm running KDE 3.1.3 on Openbsd.
Mindspring webmail works fine with javascript enabled globally.
With javascript enabled by domain(s), I can login to webmail
and select a new folder, but the message delete function does not work.
Also, the check all and clear all functions do not work even when javascript
is enabled globally. The Javascript code appears below:
====================================
<html>
 <head>
  <title>Web Mail Messages</title>
  <link rel="stylesheet" href="/wam/brand/earthlink/style.css" type="text/css">
  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <META HTTP-EQUIV="Expires" CONTENT="0">
  <script src="/wam/docs/scripts.js"></script>
  <SCRIPT language="javascript">
   <!--
    function doPageLoad() {
     if (window.doFocus) {
      window.doFocus();
     }
    }
    
   // -->
  </SCRIPT>
        
 </head>
 <body onLoad="doPageLoad()" topmargin="4" leftmargin="5" marginheight="4" marginwidth="5" vlink="#0000ff" link="#0000ff">

<form style="margin: 0" method="GET" target="search" action="http://search.earthlink.net/track">
<table width="100%"  class="universalNav" cellpadding="0" cellspacing="0">
<tr nowrap valign="middle">
<td>
 <img src="/wam/images/earthlink/logo_eln.gif" width="118" height="22" border="0" alt="EarthLink" />
</td><td align="right" width="90%">
 <span class="universalLinks">
  <a href="http://www.earthlink.net">EarthLink.net</a>
  <a href="http://start.earthlink.net/start">Start Page</a>
  <span style="color:#f98600;"><a style="color:#f98600;" href="http://webmail.earthlink.net">Web Mail</a></span>
  <a href="http://myaccount.earthlink.net/">My Account</a>
  <a href="http://support.earthlink.net/">Support</a>
 </span>
</td><td>
 <input type="hidden" name="url" value="/search">
 <input type="hidden" name="id" value="1024669">
 <input type="hidden" name="vars" value="q">
 <input type="text" name="q" value="" size="20">
</td><td>
 <input type="image" style="margin-top: 4px" src="/wam/images/earthlink/search.gif">
</td><td>
 <img style="margin-top: 4px" src="/wam/images/earthlink/google.gif">
</td></tr>
</table>
</form>
  <table border=0 cellpadding=4 cellspacing=0 width="100%">
   <tr valign="top">
    <td>

<SCRIPT language="javascript">
<!--
function confirmTruncate()
{
        return confirm("Empty all messages in this folder?  All messages in this folder will be permanently deleted.");
}
// -->
</SCRIPT>

<table width="180" border=0 bgcolor=#efefef cellpadding=8 cellspacing=0>
 <tr>
  <td nowrap>
   <img border=0 src="/wam/images/earthlink/logo_wm.gif">
   <br>
   dfeustel at mindspring.com
   <br>
   <br>
   
   <small>
    0% of 
    10 MB used.
   </small>
   &nbsp;&nbsp;&nbsp;&nbsp;
   <a onClick="return confirmTruncate()" href="/wam/FolderTruncate?name=INBOX.Trash&page=/index.jsp&x=1304709882"><small>Empty Trash</small></a>
   <br>
   <div align="left" style="width: 200; border: 1px solid black; height: 17px; background-color: #FFFFFF;">
</div>

   
   <div align="right"><small><a href="http://start.earthlink.net/track?id=1024941&url=https%3A%2f%2fmyaccount.earthlink.net%2Fcam%2Fmailspace.jsp">Increase Storage Space</a></small></div>
   
   <br>
   <br>
   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_chk.gif">
   <a href="/wam/FolderRefresh?folder=INBOX&start=1&clear=1&x=-1659392343">Check Mail</a>

   <br>
   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_com.gif">
   <a href="/wam/compose.jsp?x=-847938395">Write Message</a>

   
    <br>
    <hr width="200">
    <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_sb.gif">
    
     <a href="/wam/spamblocker.jsp?x=1386328644">
    
    spamBlocker</a> <small>(HIGH)</small>
   

   <br>
   <hr width="200">

   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_tf.gif">
   <a href="/wam/folders.jsp?x=-1453452098">Folders</a>

   <br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_susp.gif"><b>
<a href="/wam/index.jsp?folder=EarthLink+Services.spamBlocker.Suspect+Email&start=1&clear=1&x=-2089168055">
Suspect Email</a>
</b>
<small>[2]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_spam.gif"><a href="/wam/index.jsp?folder=EarthLink+Services.spamBlocker.Known+spam&start=1&clear=1&x=1902835367">
Known spam</a>
<br>
<a href="/wam/UserPreference?folder=INBOX&ofolder=INBOX&x=-193480925"><img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_p.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_in.gif"></a><a href="/wam/index.jsp?folder=INBOX&start=1&clear=1&x=543013736">
INBOX</a>
<small>[5]</small>
<font color=green>new</font>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_dft.gif"><a href="/wam/index.jsp?folder=INBOX.Drafts&start=1&clear=1&x=-1580065778">
Drafts</a>
<small>[0]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_sent.gif"><a href="/wam/index.jsp?folder=INBOX.Sent&start=1&clear=1&x=600595289">
Sent</a>
<small>[0]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_del.gif"><a href="/wam/index.jsp?folder=INBOX.Trash&start=1&clear=1&x=-718767061">
Trash</a>
<small>[0]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_fld.gif"><a href="/wam/index.jsp?folder=Myrone&start=1&clear=1&x=177903876">
Myrone</a>
<small>[0]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_fld.gif"><a href="/wam/index.jsp?folder=openbsd&start=1&clear=1&x=404879484">
openbsd</a>
<small>[0]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_t.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_fld.gif"><a href="/wam/index.jsp?folder=Saved&start=1&clear=1&x=592417565">
Saved</a>
<small>[1]</small>
<br>
<img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/cnct_l.gif"><img border="0" height="18" width="18" align="texttop" src="/wam/images/earthlink/icon_fld.gif"><a href="/wam/index.jsp?folder=Temp&start=1&clear=1&x=-873111681">
Temp</a>
<small>[0]</small>


   <br>
   
   <br>
   <hr width="200">

   
    <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_add.gif">
    <a href="/wam/addrbook.jsp?clearsearch=true&x=1386109372">Address Book</a>
    <br>
   

   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_prfs.gif">
   <a href="/wam/preferences.jsp?x=-511574921">Preferences</a>

   
    <br>
    <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_fnd.gif">
    <a href="/wam/search.jsp?x=-514104514">Search for Message</a>
   

   <br>
   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_help.gif">
   <a href="javascript:void(window.open('/wam/helpx.jsp?page=index.html&x=2038527913', 'Help', 'location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes'))">Web Mail Help</a>

   <br>
   <img border="0" height="20" width="20" align="texttop" src="/wam/images/earthlink/icon_lo.gif">
   <a href="/wam/Logout?x=-1170843780">Sign Out</a>
   <br>
   <br>
   <center>
   <a href="/wam/feedback.jsp?x=1368079641">Give Your Feedback!</a>
   </center>
   
   <table width="100%"><tr><td>
    <hr width="200">
    <a href="http://tr.earthlink.net/t/lnk?id=1021544&url=http%3A%2F%2Fwww.earthlink.net%2Fextras%2Febp%2F" target="_blank">Email by Phone</a><br><br><a href="http://start.earthlink.net/track?url=http%3A%2F%2Fwww.earthlink.net%2Fextras%2Fmoremail%2F&add=1&id=1026885" target="_blank">More Email Space</a><br><br><a href="http://start.earthlink.net/track?url=https%3A%2F%2Fwww.gotomypc.com%2Ftr%2FEL%2FQ1_2004%2FWebMail%2Fg25epELlp%3FTarget%3Dmm%2Fg25epELlp.tmpl&add=1&id=1026886" target="_blank">Access Your PC From Anywhere&#153;</a>
   </td></tr></table>
   
  </td>
 </tr>
</table>
</td>
    <td width="100%">
     <table border=0 cellpadding=0 cellspacing=0 width="100%">
        <tr><td>
            
        </td></tr>
        <tr><td>

<script src="/wam/docs/toggle.js"></script>
<SCRIPT language="JavaScript">
<!--
function submitForm(i)
{
    if (isChecked(document.mform))
    {
     if (i == 1)
  {
      document.mform.action="/wam/MsgDelete";
  }
     else if (i == 2)
  {
      document.mform.action="/wam/spamreport.jsp";
  }
     else if (i == 3)
  {
      document.mform.action="/wam/MsgMove";
   var dbox = document.mform.topfolder;
   document.mform.destfolder.value = dbox.options[dbox.selectedIndex].value;
   if(document.mform.destfolder.value == ""){
    alert("Please select a folder to move the message(s) to");
    document.mform.topfolder.focus();
    return false;
   }
  }
     else if (i == 4)
  {
      document.mform.action="/wam/MsgNotSpam";
  }
     else if (i == 5)
  {
   document.mform.destfolder.value = 'INBOX';
      document.mform.action="/wam/MsgMove";
  }
     else if (i == 6)
  {
      document.mform.action="/wam/MsgMove";
   var dbox = document.mform.btmfolder;
   document.mform.destfolder.value = dbox.options[dbox.selectedIndex].value;
   if(document.mform.destfolder.value == ""){
    alert("Please select a folder to move the message(s) to");
    document.mform.btmfolder.focus();
    return false;
   }
  } 
  else if (i == 7)
  {
         if (!confirm("Are you sure you wish to delete checked message(s)? Messages deleted from this folder cannot be recovered."))
    return;

      document.mform.action="/wam/MsgDelete";
  }
  else if (i == 8)
  {
   theAction = document.getElementsByName("selectedaction")[0].value;
   document.mform.destfolder.value = 'INBOX';
   document.mform.action=theAction;
  }
  else
  {
   alert("submitForm called with invalid argument " + i);
  }

     document.mform.submit();
    }
    else
    {
        alert("No messages have been selected.");
    }
}

function previewMessage(cb, url)
{
 if (cb != null)
 {
  UnhilightAll(document.mform);
  Highlight(cb);
 }

 document.getElementById('iePreview').src = url;
}

function confirmTruncate()
{
        return confirm("Empty all messages in this folder?  All messages in this folder will be permanently deleted.");
}

function linkSelections(theElement)
{
 theElements = document.getElementsByName(theElement.name);
 for (i=0; i<theElements.length; i++)
 {
  if (theElements[i] != theElement && theElements[i].name == theElement.name
    && theElements[i].selectedIndex != theElement.selectedIndex)
   theElements[i].selectedIndex = theElement.selectedIndex;
 }
}

//-->
</SCRIPT>

<img border=0 src="/wam/images/earthlink/sb/esb.gif"> 

<table cellspacing="0" cellpadding="5" border="0">
 <tr>
  <td class="overviewtab"><a href="/wam/spamhelp.jsp?x=2092592180">Overview</a></td>
  <td class="spamtab">
   
    <a href="/wam/index.jsp?folder=EarthLink+Services.spamBlocker.Known+spam&start=1&x=-1255608695">Known spam</a>
   
  </td>
  <td class="suspecttab">
   
    <a href="/wam/index.jsp?folder=EarthLink+Services.spamBlocker.Suspect+Email&start=1&x=1431079897">Suspect Email</a>
   
  </td>
  <td class="settingstab"><a href="/wam/spamblocker.jsp?x=37299909">Settings</a></td>
 </tr>
</table>

 

<form style="margin:0; padding: 0" METHOD=POST NAME="mform">
 <input type=hidden name="destfolder">

 <!-- mindspring.com / dfeustel-->


 
 <table class="suspecthead" width="100%">
  <tr>
   <td>
 

 

    <!--- ----------------- --->
    <!---    Top Actions    --->
    <!--- ----------------- --->
    
     <table width="100%" border=0 cellpadding=3 cellspacing=0>
      <tr class="suspectdisclaimer">
       <td><b>This folder temporarily holds email messages from those who are not in your Address Book.</b> The senders of these messages have been directed to the Allowed Sender Request Form, but you may add them to your Address Book manually if you prefer.</td>
       <td align=right><input type="button" class="button" value="Open Address Book" onclick="document.location='/wam/addrbook.jsp?clearsearch=true&x=-1551284185'"></td>
      </tr>
     </table>

<!--- ----------------- --->
<!---    Actions    --->
<!--- ----------------- --->
<table width="100%" border=0 cellpadding=3 cellspacing=0>

 <tr height="35" valign="middle"><td valign="middle" nowrap class="suspecthead">
 Checked items:
 <INPUT NAME="topfolder" VALUE="INBOX" TYPE="HIDDEN">
 
  <select name="selectedaction" onchange="javascript:linkSelections(this)">
   <option value="/wam/MsgMove?addAddresses=true&x=1216255881" selected="true">Move to Inbox &amp; Add Contact</option>
   <option value="/wam/MsgMove?addAddresses=false&x=-1019003858">Move to Inbox</option>
   <option value="/wam/MsgDelete?x=-2050350980">Delete</option>
                        <option value="/wam/spamreport.jsp?x=-1945530959">This is spam</option>
  </select>
  <input type="button" class="button" value="Go" onClick="javascript:submitForm(8)" />
 
    
 
 </td>
 <td align=right class="suspecthead">
  <input type="button" class="button" value="Delete all 2 message(s)" onclick="if(confirmTruncate()) document.location='/wam/FolderTruncate?name=EarthLink Services.spamBlocker.Suspect Email&page=%2Findex.jsp&x=-95406827';">
 </td>
 </tr>
</table>

    

    
     <table valign=top WIDTH=100% border=0 cellspacing=0>
      <tr>
       <td align="left" class="suspectsubhead">
        &nbsp;
        
       </td>
       <td align="right" class="suspectsubhead">
        <table border=0><tr valign=middle nowrap><td>
<img border=0 height=15 width=15 src="/wam/images/earthlink/firstd.gif" vspace=0 hspace=1><img border=0 height=15 width=15 src="/wam/images/earthlink/prevd.gif" vspace=0 hspace=1>
</td><td>
<table border=1 cellpadding=0 cellspacing=0><tr>
<td nowrap align=center>
<font face=Arial color=#31639C size=1>&nbsp;Messages 1 - 2 of 2&nbsp;</font></td>
</tr></table></td><td>
<img border=0 height=15 width=15 src="/wam/images/earthlink/nextd.gif" vspace=0 hspace=1><img border=0 height=15 width=15 src="/wam/images/earthlink/lastd.gif" vspace=0 hspace=1>
</td></tr></table>

       </td>
      </tr>
      <tr>
      <td colspan=2 height=1 class="suspecthead"></td>
      </tr>
     </table>

<table width="100%" border=0 cellpadding=2 cellspacing=0>
 <tr valign=bottom class="suspectsubhead">
  <td nowrap width=5%>
      <input type=checkbox name=toggleAll title="Select or deselect all messages" onclick="ToggleAll(document.mform, this);">
  </td>
  <td width=1%>&nbsp;</td>
  <td width=1%>&nbsp;</td>
  <td width=1%>&nbsp;</td>
  <td width=1%>&nbsp;</td>
  <td width=1%>&nbsp;</td>
  <td width=15%>


  
   <a href="/wam/UserPreference?sortby=from&page=%2Findex.jsp&x=1427948552">Sender</a>
  

  </td>
  <td>

   <a href="/wam/UserPreference?sortby=subject&page=%2Findex.jsp&x=-1313435538">Subject</a>

  </td>
  <td nowrap width=5%>


   <a href="/wam/UserPreference?sortby=dateSent&page=%2Findex.jsp&x=1583069928">Date</a>


  </td>
  <td nowrap width=5%>


   <a href="/wam/UserPreference?sortby=size&page=%2Findex.jsp&x=-1146805942">Size</a>

  </td>
 </tr>
 

    <tr class="msgrow">
   
    <td nowrap>
     <input type=checkbox name=m-26848 onClick="Toggle(this)">
    </td>
    <td nowrap>
      
    </td>
    <td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    Alvin Rose
    
    &nbsp;
    </td><td nowrap>
    
     <a href="/wam/msg.jsp?msgid=26848&folder=EarthLink+Services.spamBlocker.Suspect+Email&x=-1620368957">
    
    Re: [Beck-blood-electrification] Re: godzilla o...</a>
    
    </td><td nowrap>
    
    08/25/2004</a>
    
    &nbsp;</td><td nowrap>&nbsp;
    
    4 KB</a>
    
    </td>
   </tr>
   <tr class=separator><td colspan=10 height=1></td></tr>
  
    <tr class="msgrow">
   
    <td nowrap>
     <input type=checkbox name=m-26847 onClick="Toggle(this)">
    </td>
    <td nowrap>
      
    </td>
    <td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    </td><td nowrap>
    
    Cody
    
    &nbsp;
    </td><td nowrap>
    
     <a href="/wam/msg.jsp?msgid=26847&folder=EarthLink+Services.spamBlocker.Suspect+Email&x=-650439212">
    
    Bos'n George's little eyes</a>
    
    </td><td nowrap>
    
    09:07:40 AM</a>
    
    &nbsp;</td><td nowrap>&nbsp;
    
    4 KB</a>
    
    </td>
   </tr>
   <tr class=separator><td colspan=10 height=1></td></tr>
  



    
 
 <tr class="suspectsubhead">
  <td colspan=1 valign=center>&nbsp;</td>
  <td colspan=9 valign=center>
   <a href="#" onclick="checkUncheck(document.mform, 1);"><small>Check All</small></a> - <a href="#" onclick="checkUncheck(document.mform, 0);"><small>Clear All</small></a>
  </td>
 </tr>
    
</table>



    <!--- -------------------- --->
    <!---    Bottom Actions    --->
    <!--- -------------------- --->

<!--- ----------------- --->
<!---    Actions    --->
<!--- ----------------- --->
<table width="100%" border=0 cellpadding=3 cellspacing=0>

 <tr height="35" valign="middle"><td valign="middle" nowrap class="suspecthead">
 Checked items:
 <INPUT NAME="topfolder" VALUE="INBOX" TYPE="HIDDEN">
 
  <select name="selectedaction" onchange="javascript:linkSelections(this)">
   <option value="/wam/MsgMove?addAddresses=true&x=2025737371" selected="true">Move to Inbox &amp; Add Contact</option>
   <option value="/wam/MsgMove?addAddresses=false&x=-802009619">Move to Inbox</option>
   <option value="/wam/MsgDelete?x=2023303540">Delete</option>
                        <option value="/wam/spamreport.jsp?x=2020346876">This is spam</option>
  </select>
  <input type="button" class="button" value="Go" onClick="javascript:submitForm(8)" />
 
    
 
 </td>
 <td align=right class="suspecthead">
  <input type="button" class="button" value="Delete all 2 message(s)" onclick="if(confirmTruncate()) document.location='/wam/FolderTruncate?name=EarthLink Services.spamBlocker.Suspect Email&page=%2Findex.jsp&x=-49248806';">
 </td>
 </tr>
</table>

    

  
 
   </td>
  </tr>
 </table>
 
</form>


 

 
 
  <br><center><b>This folder is self cleaning based on your deletion preference.<BR><BR>Note: Because this folder exists online, these messages don't take up any space on your computer. However, messages in this folder do count toward your email storage limit.</b></center>
 
 

 


        </td></tr>
     </table>
    </td>
   </tr>
  </table>
  





<br>
<hr size="1">
<FONT SIZE=2 FACE="Arial">
 &copy; 2004 EarthLink, Inc. All Rights Reserved.<br>
 Members and visitors to the EarthLink Web site agree to abide by our
 <A href="http://www.earthlink.net/about/policies/">Policies and Agreements</A><br>
 <A href="http://www.earthlink.net/about/policies/privacy/">EarthLink Privacy Policy</A>
</FONT>
<br>
<br>

 </body>
</html>

 
<!-- Final ZooPageStats -->
<!-- wam/index.time=118ms -->
<!-- Req.Id: wamui08.slb.atl.earthlink.net.1727226 -->
<!-- Req.Sid: 4B31D7D1A1DA72EB7D6856D63337A3AB -->
<!-- Req.Zsid: 596XJQsPbIT/-d82d002002c4d20e2b123-46 - dfeustel at mindspring.com -->
<!-- Req.Zslb: 46 -->
<!-- Req.Query: folder&#61;EarthLink+Services.spamBlocker.Suspect+Email&amp;start&#61;1&amp;clear&#61;1&amp;x&#61;1216635359 -->
<!-- Req.Url: https://webmail.atl.earthlink.net:443/wam/index.jsp -->
<!-- Req.Timestamp: 1095616545495 -->
<!-- Req.remoteAddr: 192.168.167.59 -->


====================================

-- 

Dave Feustel 260-422-5330



More information about the kde-nonlinux mailing list