The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Reply without page change bug

3 posters

Go down

In progress Reply without page change bug

Post by Tonight Mon Oct 27, 2014 9:31 pm

grrr!!!!!
Forum version: phpBB3
Script:

Code:
$(document).ready(function(){
$('.button2[name="post"]').click(function(d){
d.preventDefault();
$.post("/post",$('#quick_reply').serialize()+"&post=1&prevent_post=1",function(b){
b=b.substring(b.indexOf('<meta http-equiv="refresh" content="1;url=')+42,b.indexOf('<meta name="title"')-2);
$(".post:last").after('<div style="display: none;" class="ajax_post"></div>'),$(".ajax_post:last").load(b+" .post:last",function(){
$('.ajax_post').slideDown(500);
$('.sceditor-container > textarea').val('');
});
});
});
});

It used to work flawlessly, but recently it has started to bug a lot.
Bug: If I post by quick reply, message is sent, but you can't see it. New post used to pop by slide, now it just gets stuck. I can see the message, when I manually refresh the page.

Is there a solution for this problem?
Tonight
Tonight
Forumember

Male Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by Tonight Thu Oct 30, 2014 10:19 am

Bump!
Tonight
Tonight
Forumember

Male Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by Ange Tuteur Fri Oct 31, 2014 6:41 pm

Hi Tonight,

I took a look at the code, but wasn't able to come to a solution. Where exactly did you find this script ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Reply without page change bug

Post by Tonight Fri Oct 31, 2014 11:45 pm

I'm not sure actually. I've been using it since 2012/early 2013.
Tonight
Tonight
Forumember

Male Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by Ape Sat Nov 01, 2014 4:30 pm

I think i had that same code some time back and it stopped working after the update of the editor so i removed it but i can't think of where i got it from now lol most of the time i add to the top of the code this so i know where it come from ( // Name of forum // Name of the code )

But as i have removed it that text would have been removed aswell Sad


Reply without page change bug Left1212Reply without page change bug Center11Reply without page change bug Right112
Reply without page change bug Ape_b110
Reply without page change bug Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19437
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum