The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Reply without page change problem

View previous topic View next topic Go down

Reply without page change problem

Post by Tonight on 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
Forumember

Male Posts : 241
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Re: Reply without page change problem

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

Any ideas? :/ @JScript

Tonight
Forumember

Male Posts : 241
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Re: Reply without page change problem

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: Reply without page change problem

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

Sent via PM.

Tonight
Forumember

Male Posts : 241
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

View previous topic View next topic Back to top


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