Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Latest Posts on index page using js doesn't work
Topic Started: Feb 22 2018, 06:50 PM (180 Views)
LeBabouin
Member
[ *  * ]
hi there,

I try to display the Latest Post list from the Portal page to the index page by using this in the Above-The-Board template box:

Code:
 
<div id="latest">bijoul </div>
<script type="text/javascript">
$(function() {
$.get('http://s15.zetaboards.com/AnUbIs_Clan/site/, function (data) {
var html = $('#portal_l', data).html();
$('#latest').html(html);
});
});
</script>

The $.get() works for the index page but not for the portal page, "data" just keeps empty.
As i didn't find yet any javascript displaying Latests Posts, i begin to think that it could be impossible to achieve for some reason? Though it works in php.
Thank you for any clue!



Edited by LeBabouin, Feb 22 2018, 07:01 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply