Fwd: Problems with Compose window in Horde/IMP

Jan Schneider jan@horde.org
Wed, 27 Feb 2002 00:45:34 +0100



----- Weitergeleitete Nachricht von Adam Brown <connor@dicebag.com> -----
    Datum: Tue, 26 Feb 2002 13:22:13 -0600
    Von: Adam Brown <connor@dicebag.com>
Antwort an: Adam Brown <connor@dicebag.com>
 Betreff: Problems with Compose window in Horde/IMP
      An: jan@ammma.de

I've recently upgraded to the newest versions of both Horde and Imp, and
I've encountered a problem with the compose window.  Below is all that is
displayed in either popup mode or not.  About all I've been able to figure
out is that the problem is occuring in javascript.inc somewhere.  Here's a
view of the source genereated when the compose window is called.  That last
<script> statement is the top of javascript.inc.

If you've got any suggestions, let me know.  Thanks for your help!



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001, The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://horde.org/ | IMP: http://horde.org/imp/ -->
<!--    GNU Public License: http://www.fsf.org/copyleft/gpl.html   -->
<html lang="en-US"><head>
<title>Mail :: Message Composition</title>
<link href="/horde/css.php?app=imp" rel="stylesheet" type="text/css" />
</head>

<body>
<link rel="search" href="/horde/imp/search.php" />

<form action="/horde/imp/mailbox.php" method="get" name="menu">
<input type="hidden" name="newmail_popup" value="no" />
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td class="menu">

<table border="0" width="100%">
<tr>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="/horde/imp/mailbox.php?mailbox=INBOX" onmouseout="status='';"
onmouseover="status='INBOX'; return true;" class="menuitem"><img
src="/horde/imp/graphics/folders/inbox.gif" border="0" alt="INBOX"
title="INBOX" /><br />INBOX</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="compose.php?thismailbox=INBOX&amp;page=1" onmouseout="status='';"
onmouseover="status='Compose'; return true;" class="menuitem"><img
src="/horde/imp/graphics/compose.gif" border="0" alt="Compose"
title="Compose" /><br />Compose</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="/horde/imp/folders.php" onmouseout="status='';"
onmouseover="status='Folders'; return true;" class="menuitem"><img
src="/horde/imp/graphics/folders.gif" border="0" alt="Folders"
title="Folders" /><br />Folders</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="/horde/imp/prefs.php" onmouseout="status='';"
onmouseover="status='Options'; return true;" class="menuitem"><img
src="/horde/graphics/prefs.gif" border="0" alt="Options" title="Options"
/><br />Options</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="/horde/imp/search.php" onmouseout="status='';"
onmouseover="status='Search'; return true;" class="menuitem"><img
src="/horde/imp/graphics/search.gif" border="0" alt="Search" title="Search"
/><br />Search</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="javascript:open_help_win('imp');" onmouseout="status='';"
onmouseover="status='Help'; return true;" class="menuitem"><img
src="/horde/graphics/help.gif" border="0" alt="Help" title="Help" /><br
/>Help</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a href="/horde/turba/"
onmouseout="status='';" onmouseover="status='Addressbook'; return true;"
class="menuitem"><img src="/horde/turba/graphics/turba.gif" border="0"
alt="Addressbook" title="Addressbook" /><br />Addressbook</a>&nbsp;</td>
<td align="center" valign="bottom" nowrap="nowrap"><a
href="/horde/imp/login.php?reason=logout" onmouseout="status='';"
onmouseover="status='Logout'; return true;" class="menuitem"><img
src="/horde/graphics/logout.gif" border="0" alt="Logout" title="Logout"
/><br />Logout</a>&nbsp;</td>

<td width="100%">&nbsp;</td><!-- spacer -->

<td class="light" align="center" nowrap="nowrap">
<a class="menuitem" href="" onclick="folderSubmit(true); return false;"
onmouseover="status='Change Folder'" onmouseout="status=''"><img
src="/horde/imp/graphics/folders/folder_open.gif" border="0" alt="Change
Folder" title="Change Folder" /><br />Open Folder</a>
</td>
<td class="light" align="right" nowrap="nowrap">
<input type="hidden" name="Horde" value="b0c6049e8d9333f2dda612250f341bce"
/> <select name="mailbox" onchange="folderSubmit()"><option value="INBOX"
selected="selected">INBOX</option>
<option value="mail/sent-mail">sent-mail</option>
<option value="mail/sent-mail-dec-2001">sent-mail-dec-2001</option>
<option value="mail/sent-mail-nov-2001">sent-mail-nov-2001</option>
<option value="mail/sent-mail-oct-2001">sent-mail-oct-2001</option>
<option value="mail/trash">trash</option>
</select>
</td>

</tr>
</table>

</td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
<!--
var loading;
function folderSubmit(clear)
{
    if (document.menu.mailbox[document.menu.mailbox.selectedIndex].value !=
'') {
        if (loading == null || clear != null) {
            loading = true;
            document.menu.submit();
        }
    }
}
// -->
</script>

<br />
<script language="JavaScript" type="text/javascript">
<!--
function open_help_win(module, topic)
{
    var win_location;
    var screen_width, screen_height;
    var win_top, win_left;
    var HelpWin;

    screen_height = 0;
    screen_width = 0;
    win_top = 0;
    win_left = 0;

    var help_win_width = 300;
    var help_win_height = 300;

    if (window.innerWidth) screen_width = window.innerWidth;
    if (window.innerHeight) screen_height = window.innerHeight;

    if (topic == null) {
        win_location = '/help.php?module=' + module; 
    } else if (topic == "") {
        win_location = '/help.php?module=' + module + '&amp;show=topics';
    } else {
        win_location = '/help.php?module=' + module + '&amp;topic=' + topic;
    }
    
    win_top  = screen_height - help_win_height - 20;
    win_left = screen_width  - help_win_width  - 20;
    HelpWin  = window.open(
        '/horde' + win_location,
        'HelpWindow',

'width='+help_win_width+',height='+help_win_height+',top='+win_top+',left='+
win_left
    );
    HelpWin.focus();
}
//-->
</script>
<script language="JavaScript" type="text/javascript"></script>



-- 
Adam Brown
connor@dicebag.com
http://www.dicebag.com


----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft