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 problem

2 posters

Go down

Reply without page change problem Empty Reply without page change problem

Post by Tonight February 24th 2015, 1:51 am

Forum version: phpBB3
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.
So the question is - what is wrong? Very Happy
Big hopes on @JScript
Tonight
Tonight
Forumember

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

Back to top Go down

Reply without page change problem Empty Re: Reply without page change problem

Post by Tonight February 25th 2015, 8:13 pm

Any ideas? :/ @JScript
Tonight
Tonight
Forumember

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

Back to top Go down

Reply without page change problem Empty Re: Reply without page change problem

Post by JScript March 1st 2015, 12:48 am

Tonight wrote:Any ideas? :/ @JScript
Well, if worked normally before, there must be some error or conflict with another code!

I need the address of your forum to check, okay?

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Reply without page change problem Empty Re: Reply without page change problem

Post by Tonight March 1st 2015, 12:55 am

Sent via PM.
Tonight
Tonight
Forumember

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

Back to top Go down

Back to top

- Similar topics

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