Quick Reply without Reload Page

Go down

Quick Reply without Reload Page

Post by J0k3R^ on Mon 2 Jun 2014 - 10:20

Hi,
i need a javascript which makes the quick reply on same page after "Submit" and no need to reload the page to post the quick reply.
How to do that? Thank you  :rose:
avatar
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Re: Quick Reply without Reload Page

Post by Paulostge on Tue 3 Jun 2014 - 9:27

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()",400);});});});
function fmreply(){window.location.reload()}
avatar
Paulostge
Forumember

Male Posts : 115
Reputation : 17
Language : Greek
Location : Greece

http://www.thegreeksenergy.com

Back to top Go down

Re: Quick Reply without Reload Page

Post by J0k3R^ on Sun 8 Jun 2014 - 7:24

well, the script for quick reply is looking good but i realised that its not necessary. u can lock this topic or something..
avatar
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Re: Quick Reply without Reload Page

Post by SLGray on Sun 8 Jun 2014 - 15:25

Locked as Requested


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43491
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Back to top


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