Re: Select Range not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 5, 2008 at 1:37 PM, Olivier MOULIN <olivier@xxxxxxxx> wrote:
>
>
> Paul Lesniewski a écrit :
>> 2008/12/5 Olivier MOULIN <olivier@xxxxxxxx>:
>>
>>>> On Thu, Dec 4, 2008 at 2:10 AM, Olivier MOULIN <olivier@xxxxxxxx> wrote:
>>>>
>>>>>> Please do not top-post, as explained in the posting guidelines.
>>>>>>
>>>>>>
>>>>>>>> On Wed, Dec 3, 2008 at 3:12 AM, Olivier MOULIN <olivier@xxxxxxxx>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>  I have the last squirrelmail version 1.4.16 on a Mandriva CS 3.0
>>>>>>>>> with
>>>>>>>>> apache2-2.0.48-6.18.C30mdk.
>>>>>>>>> I have a trouble with the "Select Range" plugin, it did not work.
>>>>>>>>> When
>>>>>>>>> I
>>>>>>>>> select 2 mails and click on select range nothing happen.
>>>>>>>>>
>>>>>>>>> Do you have an idea ?
>>>>>>>>>
>>>>>>>> Watch in your browser for JavaScript errors when clicking.  Show all
>>>>>>>> the steps you took to install the plugin.  Show the plugin version.
>>>>>>>> Show configtest output.  Read the posting guidelines:
>>>>>>>>
>>>>>>>> http://squirrelmail.org/postingguidelines
>>>>>>>>
>>>>>>> Nothing appear in the java console or in the browser (IE or Firefox)
>>>>>>>
>>>>>>> The plugin was installed with a squirrelmail package. I did nothing
>>>>>>> more
>>>>>>> Plugin version is 3.7
>>>>>>>
>>>>>> Can you show what other plugins you have installed?  Can you also try
>>>>>> by disabling all plugins except Select Range?
>>>>>>
>>>>> All plugins :
>>>>>
>>>>> Plugins
>>>>>  Installed Plugins
>>>>>    1. delete_move_next
>>>>>    2. squirrelspell
>>>>>    3. newmail
>>>>>    4. filters
>>>>>    5. address_add
>>>>>    6. change_pass
>>>>>    7. quota_usage
>>>>>    8. windows
>>>>>    9. folder_sizes
>>>>>    10. empty_folders
>>>>>    11. unsafe_image_rules
>>>>>    12. vacation_local
>>>>>    13. username
>>>>>    14. view_as_html
>>>>>    15. message_details
>>>>>    16. block_sender
>>>>>    17. mark_read
>>>>>    18. smime
>>>>>    19. preview_pane
>>>>>    20. compatibility
>>>>>    21. select_range
>>>>>
>>>>> I try to disable all, nothing change
>>>>>
>>>>>
>>>>>> Also, neither of these situations should allow the Select Range link
>>>>>> to show, but make sure that Options->Display Preferences->Use
>>>>>> Javascript is set to Always (turn it back to Autodetect after you are
>>>>>> done testing) and verify that the Options->Display Preferences->Select
>>>>>> Range settings are appropriate.  If one of these things fixes it,
>>>>>> please explain which one was the problem -- which setting caused the
>>>>>> link to show but not actually work?
>>>>>>
>>>>> Nothing change to. I played with Select range option but same things.
>>>>>
>>>>>
>>>>>> Otherwise, you'll need to look at the page source for the mailbox list
>>>>>> frame.  Make sure the JavaScript for the Select Range link looks right
>>>>>> (paste it here), and make sure that the JavaScript tag for the select
>>>>>> range (select_range_generic.js) is included at the top of the page
>>>>>> source.
>>>>>>
>>>>> The source code :
>>>>>
>>>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>>>>>
>>>>> <html>
>>>>>
>>>>> <head>
>>>>> <meta name="robots" content="noindex,nofollow">
>>>>> <link rel="stylesheet" type="text/css"
>>>>> href="/themes/css/tahoma-10.css"><script language="JavaScript"
>>>>> type="text/javascript"
>>>>> src="/plugins/select_range/js/select_range_generic.js"></script>
>>>>> <title>Webmail OMPM</title><script language="JavaScript"
>>>>> type="text/javascript">
>>>>> <!--
>>>>> function checkForm() {
>>>>>   var f = document.forms.length;
>>>>>   var i = 0;
>>>>>   var pos = -1;
>>>>>   while( pos == -1 && i < f ) {
>>>>>       var e = document.forms[i].elements.length;
>>>>>       var j = 0;
>>>>>       while( pos == -1 && j < e ) {
>>>>>           if ( document.forms[i].elements[j].type == 'text'
>>>>> ||
>>>>> document.forms[i].elements[j].type == 'password' ) {
>>>>>               pos = j;
>>>>>           }
>>>>>           j++;
>>>>>       }
>>>>>   i++;
>>>>>   }
>>>>>   if( pos >= 0 ) {
>>>>>       document.forms[i-1].elements[pos].focus();
>>>>>   }
>>>>>
>>>>> }
>>>>> function comp_in_new(comp_uri) {
>>>>>       if (!comp_uri) {
>>>>>           comp_uri = "/src/compose.php?newmessage=1";
>>>>>       }
>>>>>    var newwin = window.open(comp_uri,
>>>>> "_blank","width=750,height=750,scrollbars=yes,resizable=yes,status=yes");
>>>>> }
>>>>>
>>>>> // -->
>>>>> </script>
>>>>>
>>>>> <!--[if IE 6]>
>>>>> <style type="text/css">
>>>>> /* avoid stupid IE6 bug with frames and scrollbars */
>>>>> body {
>>>>>    width: expression(document.documentElement.clientWidth - 30);
>>>>> }
>>>>> </style>
>>>>> <![endif]-->
>>>>>
>>>>> </head>
>>>>>
>>>>> <body text="#000000" bgcolor="#ffffff" link="#0000cc" vlink="#0000cc"
>>>>> alink="#0000cc" onload="checkForm();">
>>>>>
>>>>> <a name="pagetop"></a>
>>>>> <table bgcolor="#ffffff" border="0" width="100%" cellspacing="0"
>>>>> cellpadding="2">
>>>>>
>>>>> <tr bgcolor="#ababab">
>>>>>
>>>>> <td align="left">
>>>>>
>>>>>         Dossier courant&nbsp;: <b>Boîte de réception&nbsp;</b>
>>>>>      </td>
>>>>> <td align="right">
>>>>> <b>
>>>>> <a href="/src/signout.php" target="_top">Fermer la session</a></b></td>
>>>>>   </tr>
>>>>> <tr bgcolor="#ffffff">
>>>>>
>>>>> <td align="left" colspan="2">
>>>>>
>>>>> <a href="javascript:void(0)"
>>>>> onclick="comp_in_new('/src/compose.php?mailbox=INBOX&amp;startMessage=1')">Composer</a>&nbsp;&nbsp;
>>>>> <a href="/src/addressbook.php">Adresses</a>&nbsp;&nbsp;
>>>>> <a href="/src/folders.php">Dossiers</a>&nbsp;&nbsp;
>>>>> <a href="/src/options.php">Options</a>&nbsp;&nbsp;
>>>>> <a href="/src/search.php?mailbox=INBOX">Rechercher</a>&nbsp;&nbsp;
>>>>> <a href="/src/help.php">Aide</a>&nbsp;&nbsp;
>>>>>      </td>
>>>>>   </tr>
>>>>> </table><br>
>>>>>
>>>>> <script language='javascript' type='text/javascript'>
>>>>> <!--
>>>>>
>>>>>   if (top == self) this.close();
>>>>>
>>>>> //-->
>>>>> </script>
>>>>> <table bgcolor="#ababab" align="center" width="70%" cellpadding="0"
>>>>> cellspacing="3" border="0"><tr><td><table bgcolor="#ffffff" width="100%"
>>>>> cellpadding="5" cellspacing="1" border="0"><tr><td
>>>>> align="center"><strong>Warning:</strong> Your quota usage is currently
>>>>> 78.3%.  You may want to make sure you empty out your Trash and clean
>>>>> your
>>>>> Sent folder.</td>
>>>>> </tr>
>>>>> </table>
>>>>> </td>
>>>>> </tr>
>>>>> </table>
>>>>> <form name="FormMsgsINBOX" method="post" action="move_messages.php">
>>>>> <input type="hidden" name="mailbox" value="INBOX">
>>>>> <input type="hidden" name="startMessage" value="1">
>>>>> <table border="0" width="100%" cellpadding="0"
>>>>> cellspacing="0"><tr><td><table border="0" width="100%" cellpadding="1"
>>>>> cellspacing="0"><tr bgcolor="#dcdcdc"><td align="left"><table
>>>>> bgcolor="#ffffff" border="0" width="100%" cellpadding="1"
>>>>> cellspacing="0"><tr><td align="left"><script language="JavaScript"
>>>>> type="text/javascript">
>>>>> <!--
>>>>> function CheckAllINBOX() {
>>>>>  for (var i = 0; i < document.FormMsgsINBOX.elements.length; i++) {
>>>>>    if(document.FormMsgsINBOX.elements[i].type == 'checkbox'){
>>>>>      document.FormMsgsINBOX.elements[i].checked =
>>>>> !(document.FormMsgsINBOX.elements[i].checked);
>>>>>    }
>>>>>  }
>>>>> }
>>>>> //-->
>>>>> </script><a href="javascript:void(0)"
>>>>> onClick="CheckAllINBOX();">Inverser
>>>>> la sélection</a>
>>>>> |&nbsp;<a href="#" onClick="selectRange('FormMsgsINBOX', false,
>>>>> 'fill_all', 'Please leave at least one un-selected message between the
>>>>> first and last selected messages', 'Please select at least two
>>>>> messages');
>>>>> return false;">Select Range</a></td>
>>>>> <td align="right">Messages <b>1</b> à <b>11</b> (11 au total)</td>
>>>>> </tr>
>>>>> </table>
>>>>> </td>
>>>>> </tr>
>>>>> </table>
>>>>> </td></tr><tr><td height="5" bgcolor="#ffffff"></td></tr><tr>
>>>>>
>>>>> <td align="left">
>>>>> <table bgcolor="#ababab" border="0" width="100%" cellpadding="1"
>>>>> cellspacing="0">
>>>>> <tr><td><table bgcolor="#dcdcdc" border="0" width="100%" cellpadding="1"
>>>>> cellspacing="0">
>>>>> <tr><td align="left" nowrap><small>Déplacer la sélection vers:&nbsp;
>>>>> </small></td>
>>>>> <td align="right" nowrap><small>Modifier les messages
>>>>> sélectionnés&nbsp;:&nbsp; </small></td>
>>>>> </tr>
>>>>> <tr>
>>>>>
>>>>> <td align="left" valign="middle" nowrap>
>>>>>         <small>&nbsp;<tt><select name="targetMailbox"><option
>>>>> value="INBOX">Boîte de réception</option>
>>>>>
>>>>>
>>>>>                 ...
>>>>>
>>>>>
>>>>>         </select></tt>&nbsp;<input type="SUBMIT" name="moveButton"
>>>>> value="Déplacer">
>>>>> <input type="SUBMIT" name="attache" value="Faire suivre">
>>>>>      </small></td>
>>>>> <td align="right" nowrap>
>>>>> <input type="SUBMIT" name="markRead" value="Lu">
>>>>> <input type="SUBMIT" name="markUnread" value="Non Lu">
>>>>> <input type="SUBMIT" name="delete" value="Supprimer">&nbsp;
>>>>> <input type="hidden" name="location"
>>>>> value="/src/right_main.php?mailbox=INBOX&amp;startMessage=1"></td>
>>>>>   </tr>
>>>>>
>>>>>   ...
>>>>>
>>>>>
>>>>> </table></td></tr></table></td></tr>
>>>>> <tr><td height="5" bgcolor="#ffffff"></td></tr><tr><td>    <table
>>>>> width="100%" cellpadding="1" cellspacing="0" align="center" border="0"
>>>>> bgcolor="#ababab">     <tr><td>       <table width="100%"
>>>>> cellpadding="1"
>>>>> cellspacing="0" align="center" border="0" bgcolor="#ffffcc"><tr
>>>>> bgcolor="#ffffcc" align="center">
>>>>> <td width="1%">&nbsp;</td>
>>>>> <td align="left" width="25%">
>>>>> <b>De</b> <a
>>>>> href="/src/right_main.php?newsort=2&amp;startMessage=1&amp;mailbox=INBOX"><img
>>>>> src="../images/sort_none.png" border="0" width="12" height="10"
>>>>> alt="sort"></a></td>
>>>>> <td align="left" width="5%" nowrap>
>>>>> <b>Date</b> <a
>>>>> href="/src/right_main.php?newsort=1&amp;startMessage=1&amp;mailbox=INBOX"><img
>>>>> src="../images/up_pointer.png" border="0" width="12" height="10"
>>>>> alt="sort"></a></td>
>>>>> <td width="1%">&nbsp;</td>
>>>>> <td align="left" width="63%">
>>>>> <b>Objet</b> <a
>>>>> href="/src/right_main.php?newsort=4&amp;startMessage=1&amp;mailbox=INBOX"><img
>>>>> src="../images/sort_none.png" border="0" width="12" height="10"
>>>>> alt="sort"></a></td>
>>>>> <td align="left" width="5%" nowrap>
>>>>> <b>Taille</b> <a
>>>>> href="/src/right_main.php?newsort=8&amp;startMessage=1&amp;mailbox=INBOX"><img
>>>>> src="../images/sort_none.png" border="0" width="12" height="10"
>>>>> alt="sort"></a></td>
>>>>> </tr>
>>>>> <tr valign="top">
>>>>> </table></td></tr></table><tr><td height="5" bgcolor="#ffffff"
>>>>> colspan="1"></td></tr><tr><td><table bgcolor="#ababab" width="100%"
>>>>> border="0" cellpadding="1"  cellspacing="0"><tr><td><table
>>>>> bgcolor="#ffffff" width="100%" border="0" cellpadding="1"
>>>>> cellspacing="0"><tr><td><script language="JavaScript"
>>>>> type="text/javascript">
>>>>> <!--
>>>>> function CheckAllINBOX() {
>>>>>  for (var i = 0; i < document.FormMsgsINBOX.elements.length; i++) {
>>>>>    if(document.FormMsgsINBOX.elements[i].type == 'checkbox'){
>>>>>      document.FormMsgsINBOX.elements[i].checked =
>>>>> !(document.FormMsgsINBOX.elements[i].checked);
>>>>>    }
>>>>>  }
>>>>> }
>>>>> //-->
>>>>> </script><a href="javascript:void(0)"
>>>>> onClick="CheckAllINBOX();">Inverser
>>>>> la sélection</a>
>>>>> |&nbsp;<a href="#" onClick="selectRange('FormMsgsINBOX', false,
>>>>> 'fill_all', 'Please leave at least one un-selected message between the
>>>>> first and last selected messages', 'Please select at least two
>>>>> messages');
>>>>> return false;">Select Range</a></td>
>>>>> <td align="right">Messages <b>1</b> à <b>11</b> (11 au total)</td>
>>>>> </tr>
>>>>> </table>
>>>>> </td>
>>>>> </tr>
>>>>> </table>
>>>>> </td></tr></table>
>>>>> </form>
>>>>>
>>>>> </body></html>
>>>>>
>>>>> For information the CheckAllINBOX() function work well. So I don't think
>>>>> it's a java trouble.
>>>>>
>>>> Well, I don't see anything missing.  Please show one of the checkbox
>>>> input tags for a message.  Assuming it is OK, then I can't see
>>>> anything that would be a problem and you'll have to do your own
>>>> javascript debugging.  Did you try it in multiple browsers?  What ones
>>>> did you try?  You can also send me the full page source offlist if
>>>> you'd like so I can try to test it statically.
>>>>
>>>>
>>> I created a temporaly mailbox, so I can forward you the full page source.
>>>
>>
>> Thank you.  Replying back on-list...
>>
>>
>>> I tried with Mozilla 3, IE 6 and 7.
>>>
>>> I am the only one having this trouble ?
>>>
>>
>> Apparently.  I tried your page source and it worked just fine.  The
>> only change I had to make to get it to work was to make the URL for
>> the JavaScript absolute, and I used my own server address.  If you
>> want me to test your JavaScript file, you can send me the absolute URL
>> to it and I will test.  It would look something like this:
>>
>> http://example.org/squirrelmail/plugins/select_range/js/select_range_generic.js
>>
>> Otherwise, I can only assume that your browser is blocking the script
>> or a proxy is sanitizing it, etc.  No one else seems to have this
>> issue and the code looks fine to me.  I suggest going to a public
>> library or a friend's house and trying it there.
>>
>
> Very sorry for the time lost but I think I found : I have an reverse
> proxy Apache + Mod_security in front on my Apache for my squirrelmail.
>
> I tried to access directly to the Squirrelmail (bypass the reverse
> proxy) and it's work fine...

OK.  Thanks.  If you find out how to make it work with your proxy,
please share your solution with the list.

Thanks

>>>>>> Ah, but here might be the real problem.  Open
>>>>>> plugins/select_range/templates/default/select_range_link.tpl and see
>>>>>> the line that looks like this:
>>>>>>
>>>>>> echo '<a href=#" onClick="selectRange...
>>>>>>
>>>>>> Change it to this:
>>>>>>
>>>>>> echo '<a href="#" onClick="selectRange...
>>>>>>
>>>>>> There is a quote missing at the beginning of the href value.  Please
>>>>>> confirm if this fixes it for you.
>>>>>>
>>>>> Change it but nothing change too.
>>>>>
>>>>>
>>>>>>> The SMTP server is postfix-2.1.1-0.4.C30mdk
>>>>>>>
>>>>>>> I have installed squirrelmail with RPM : squirrelmail-1.4.16-CS30 and
>>>>>>> squirrelmail-fr-1.4.16-CS30
>>>>>>>
>>>>>>> I have the same apache on another machine acting as reverse proxy
>>>>>>> (manage
>>>>>>> HTTPs). So there is a difference between internal and external URL.
>>>>>>>
>>>>>>> SquirrelMail configtest
>>>>>>>
>>>>>>> This script will try to check some aspects of your SquirrelMail
>>>>>>> configuration and point you to errors whereever it can find them. You
>>>>>>> need
>>>>>>> to go run conf.pl in the config/ directory first before you run this
>>>>>>> script.
>>>>>>>
>>>>>>> SquirrelMail version:   1.4.16
>>>>>>> Config file version:    1.4.0
>>>>>>> Config file last modified:      03 December 2008 13:56:59
>>>>>>> Checking PHP configuration...
>>>>>>>    PHP version 4.3.4 OK.
>>>>>>>    display_errors:
>>>>>>>    error_reporting: 2039
>>>>>>>    variables_order OK: EGPCS.
>>>>>>>    gpc_order OK: GPC.
>>>>>>>    PHP extensions OK. Dynamic loading is enabled.
>>>>>>> Checking paths...
>>>>>>>    Data dir OK.
>>>>>>>    Attachment dir OK.
>>>>>>>    Plugins OK.
>>>>>>>    Themes OK.
>>>>>>>    Default language OK.
>>>>>>>    Base URL detected as: http://webmail.ompm.net/src (location base
>>>>>>> autodetected)
>>>>>>> Checking outgoing mail service....
>>>>>>>    SMTP server OK (220 masshysteria.ompm.net ESMTP)
>>>>>>> Checking IMAP service....
>>>>>>>    IMAP server ready (* OK masshysteria.ompm Cyrus IMAP4
>>>>>>> v2.1.16-Mandrake-RPM-2.1.16-5.4.C30mdk server ready)
>>>>>>>    Capabilities: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+
>>>>>>> MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT
>>>>>>> CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE
>>>>>>> STARTTLS LISTEXT LIST-SUBSCRIBED ANNOTATEMORE X-NETSCAPE
>>>>>>> Checking internationalization (i18n) settings...
>>>>>>>     gettext - Gettext functions are available. On some systems you
>>>>>>> must
>>>>>>> have appropriate system locales compiled.
>>>>>>>     mbstring - Mbstring functions are unavailable. Japanese
>>>>>>> translation
>>>>>>> won't work.
>>>>>>>     recode - Recode functions are unavailable.
>>>>>>>     iconv - Iconv functions are unavailable.
>>>>>>>     timezone - Webmail users can change their time zone settings.
>>>>>>> Checking database functions...
>>>>>>>    not using database functionality.
>>>>>>>
>>>>>>> Congratulations, your SquirrelMail setup looks fine to me!

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux