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.
The forum of the forums
2 posters

    Reply without page change problem

    Tonight
    Tonight
    Forumember


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

    Reply without page change problem Empty Reply without page change problem

    Post by Tonight 24.02.15 0:51

    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

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

    Post by Tonight 25.02.15 19:13

    Any ideas? :/ @JScript
    JScript
    JScript
    Forumember


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

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

    Post by JScript 28.02.15 23:48

    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
    Tonight
    Tonight
    Forumember


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

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

    Post by Tonight 28.02.15 23:55

    Sent via PM.

      Current date/time is 13.11.24 15:16