Jump to content
Sign in to follow this  

Browser back button

Recommended Posts

I can't count the number of times I've accidentally clicked the browser's back button (more like alt+right clicked or right clicked and accidentally hit the back button there), and when you go forwards again everything you have written is lost. I know this is IBS-specific because at blogger.com, this same mistake does not cost me. So I was wondering: is there any simple way this could be addressed? I'm entirely out of my depth with programming and the like, but just in case this is something simple, I thought I'd post it. Also because I'm really annoyed (at myself) right now..

Share this post


Link to post
Share on other sites

This has happened to me (or I accidentally X out, or click a bookmark, or whatevahh), but whenever I press forward, my work is always there.

It could be the way the browser interprets this website. I use Safari and never lose my writing, so you could try that! I also use a Mac, so if you're on a PC there could be a problem there too...I know next to nothing about programming so I'm not sure if there's a way to continuously save the text in these messages before they're posted. Tech might have a solution. :)

Another issue I've encountered is the "server down". I'll type something, submit it, and then Safari cannot access the page because the IBS server is down. Is this just me? Is it my network connection or is it actually the IBS server? Both times this has happened, my work was retrieved but it's still nerve-wracking to spend time writing something and fear its entire loss because of the server connection.

Share this post


Link to post
Share on other sites

It's fixable from the website, but I don't know anyone that could do it, and it's not worth the effort. You'de essentially need to rewrite the entire IPB engine to keep everything you write in a session variable as you write it. It'd significantly slow things down, and would be extremely hard to implement.

However, that being said, the browser should automatically store your inputs after a while, so in case you do accidently go to another page, and click back, things should still be there?

What browser are you using?

Share this post


Link to post
Share on other sites

What you're proposing will require lots of bandwidth and extra database. The problem is with the fast reply. When I use it and click back everything is lost, but using the full editor doesn't lose anything.

Share this post


Link to post
Share on other sites

What you're proposing will require lots of bandwidth and extra database. The problem is with the fast reply. When I use it and click back everything is lost, but using the full editor doesn't lose anything.

Ah, yeah. I'm pretty sure that's because the fast reply 'resets' and needs a click to 'turn on', where it then gives you a blank textbook. Before that, it doesn't really act as a textarea, which is why the browser won't save anything. This could actually be solved by just getting rid of the click to post a quick reply thing, and making it act as a textarea onload?

Share this post


Link to post
Share on other sites

Here's a fix if the admins can edit the scripts. This is right after the code for the fast-reply form. I edited only three lines and added one new line.

<script type="text/javascript">
//<![CDATA[
var newly_loaded = ( $('fast-reply_textarea').value == '' ); //New line
if( $('fast-reply_textarea') ){
$('fast-reply_textarea').addClassName('unloaded_editor').setStyle('height: 70px');
if( newly_loaded ) //First edit
$('fast-reply_textarea').value = "Tip: click inside this box to load the editor";

}

if( $('fast-reply_toolbar_1') ){
$('fast-reply_toolbar_1').hide();
}
if( $('fast-reply_toolbar_2') ){
$('fast-reply_toolbar_2').hide();
}

var removeTip = function(e){
if( newly_loaded && $('fast-reply_textarea').hasClassName('unloaded_editor') ){ // Second Edit
$('fast-reply_textarea').value='';
}
};

$('full_compose').observe( 'click', removeTip );
$('submit_post').observe( 'click', removeTip );

in_use = 0;

$('fast-reply_textarea').observe( 'focus', function(e){
if( !in_use )
{
if( $('fast-reply_toolbar_1') ){
$('fast-reply_toolbar_1').show();
}
if( $('fast-reply_toolbar_2') ){
$('fast-reply_toolbar_2').show();
}

$('fast-reply_textarea').removeClassName('unloaded_editor');
if( newly_loaded ) //Third edit.
$('fast-reply_textarea').value = '';

ipb.editors[ 'fast-reply' ] = new ipb.editor( 'fast-reply', USE_RTE );
$( ipb.editors['fast-reply'] ).resize_to( 250 );

try {
ipb.editors[ 'fast-reply' ].editor_window.focus();
} catch(err) { }
in_use = 1;
}
});

//]]>
</script>

Edited by genepeer

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...