SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



SocialAcademy • Forum » Support Section » Ask Question 's & Problems » Solved & Trash Files  →   [Solved] Quick reply to message without page refresh

[Solved] Quick reply to message without page refresh


    Go to page : 1, 2  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 1 of 2]

#1

OfflineUdarsha45

Udarsha45
 
Advance Member
Advance Member

Posted Sun Jun 01, 2014 6:06 am

 
Details: I would like to know, if that is possible? Because it would be very useful.
Forum Address: http://www.bleachstory.net/
Forum Version: PunBB

#2

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Sun Jun 01, 2014 6:21 am

 
Hi,

Go to Javascript Codes Management => Create new javascript => In The Topics

Code:
        $(function() {
          $('#quick_reply input[name=post]').click(function(e) {
            e.preventDefault();
            $.post('/post', $('#quick_reply').serialize() + '&post=hack', function(data) {
              if (/Click here to view your message/.test(data)) {
                location.reload();
              } else {
                alert('An error occurred, please try again.');
              }
            });
          });
        });

Let me know if that works or not. :)

#3

OfflineUdarsha45

Udarsha45
 
Advance Member
Advance Member

Posted Mon Jun 02, 2014 10:49 am

 
Sorry but it doesn't work. You get a message saying, "An error occurred, please try again." when you press send...



Last edited by Udarsha45 on Mon Jun 02, 2014 11:20 am; edited 1 time in total

#4

OfflineJOkeR

JOkeR
 
Member
Member

Posted Mon Jun 02, 2014 11:18 am

 
True, i had tried this code before 1 week and i get the same result with Udarsha45

#5

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Mon Jun 02, 2014 10:34 pm

 
I tested it and so did I.

This code might be something you're looking for.

Javascript => In the topics

Code:
        $(function(){$("form#quick_reply input[name='post']").click(function(){$('<iframe name="replyreload" height="0px" width="0px" frameborder="0"></iframe>').insertBefore('form#quick_reply');$('form#quick_reply').attr('target','replyreload');$('form#quick_reply').submit(function(){var t=setTimeout("fmreply()",1000);});});});function fmreply(){window.location.reload()}

#6

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Tue Jun 03, 2014 1:53 am

 
You need to translate this " Click here to view your message " equal to your forum language.

https://socialacademy.forumotion.com
#7

OfflineUdarsha45

Udarsha45
 
Advance Member
Advance Member

Posted Tue Jun 03, 2014 11:20 am

 
Still not working?.....

@red: What do you mean by equal to my site language?

#8

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Tue Jun 03, 2014 11:28 am

 
try this tick it in all pages


Code:
$(function() {
                  var ta = document.getElementById('text_editor_textarea');
                  if(ta && document.post) {
                      var fix_it = function() {
                        var sc = $(ta).data('sceditor');
                        sc ? sc.bind('keypress', sc.updateOriginal).blur(sc.updateOriginal) : setTimeout(fix_it, 200); 
                      };
                      fix_it();
                  }
                });
                $(function() {
                  $('#quick_reply input[name=post]').click(function(e) {
                    e.preventDefault();
                    $.post('/post', $('#quick_reply').serialize() + '&post=hack', function(data) {
                      if (/Click here to view your message/.test(data)) {
                        location.reload();
                      } else {
                        alert('An error occurred, please try again.');
                      }
                    });
                  });
                });

https://socialacademy.forumotion.com
#9

OfflineUdarsha45

Udarsha45
 
Advance Member
Advance Member

Posted Tue Jun 03, 2014 11:36 am

 
Still ain't working bro. the page refreshes...

#10

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Tue Jun 03, 2014 11:42 am

 
try to uncheck the js one by one .. then check only this js ..

https://socialacademy.forumotion.com
#11

OfflineSponsored content


 

Posted

 

Message (Page 1 of 2)


    Go to page : 1, 2  Next


Share Topics Url

Url
BBcode
HTML

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

 
  • How to make a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022