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 Tue Feb 24, 2015 12: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
avatar
Tonight
Forumember

Male Posts : 258
Reputation : 69
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Re: Reply without page change problem

Post by Tonight on Wed Feb 25, 2015 7:13 pm

Any ideas? :/ @JScript
avatar
Tonight
Forumember

Male Posts : 258
Reputation : 69
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Re: Reply without page change problem

Post by JScript on Sat Feb 28, 2015 11:48 pm

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
avatar
JScript
Forumember

Male Posts : 741
Reputation : 172
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 Sat Feb 28, 2015 11:55 pm

Sent via PM.
avatar
Tonight
Forumember

Male Posts : 258
Reputation : 69
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