I noticed the latest stable version of SM has the

preference that

determines the cursor focus when replying. I was

wondering if someone

could lead me in the right direction to manually

edit the source code.


Sorry to hijack this thread but it's related.

The reply focus starts type After existing text
instead of before. In Options/Display Preference we
can specify before/after text.  Why can't we do the
same with the cursor focus.

What preference are you referring to? The only before/after pref I can think of is for the signature. Javascript is very finicky, especially across all sorts of different platforms, thus there is not one good way to gain that much control over the cursor focus, at least not without polluting the SM source with all kinds of per-browser per-browser-version dhtml-enabled junk that will only work in a few cases anyway. :)


functions/page_header.php in 1.4.3a


In this area what section of the code would I change
to make the cursor appear before text?


Thanks,
            global $action, $reply_focus;
            if (strpos($action, 'reply') !== FALSE &&
$reply_focus)
            {
                if ($reply_focus == 'select') $js .=
"document.forms['compose'].body.select();}\n";

This is 100% browser-dependent, but you can change this last line (and there is another one just like it in the same file) to:


if ($reply_focus == 'select') $js .= "document.forms['compose'].body.focus();}\n";

And either IE or Mozilla/Firefox will focus before the text (can't remember which) but not both.

 - Paul


------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to