Supply Code Forumotion
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Supply Code Forumotion


You are not connected. Please login or register

Trả lời nhanh không chuyển trang cho phpBB3

2 posters

Go to page : Previous  1, 2

Go down  Message [Page 2 of 2]

Admin

Admin
Admin

First topic message reminder :

ajaxpagefetcher.load("container_id", "pageurl_or_path", bustcacheBool, [array_of_js_files], [array_of_css_files])
Trả lời nhanh không chuyển trang được chuyển sang cho phiên bản phpBB3

Ưu điểm :
• Nhanh ( 4 giây)
• Không lỗi
• Hiện comment dạng trượt

Nhược điểm :
• Cách 10 giây trả lời

Hướng dẫn : { Trả lời để thấy nội dung}

Cho code này vào javascript :

Tittle : Trả lời nhanh không chuyển trang phpBB3
Place : In the all pages

Code :

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);
$('#text_editor_textarea').val('');
});
});
});
});



Last edited by Admin on Fri Jan 25, 2013 8:26 pm; edited 2 times in total

https://codefm.forumvi.com

Admin

Admin
Admin

99999999999999999

https://codefm.forumvi.com

Back to top  Message [Page 2 of 2]

Go to page : Previous  1, 2

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