How can I call these urls in jquery to display content on one page?
Posted
by
Thorbis Website Design
on Stack Overflow
See other posts from Stack Overflow
or by Thorbis Website Design
Published on 2013-10-28T02:42:32Z
Indexed on
2013/10/28
3:54 UTC
Read the original article
Hit count: 78
ok I figured out the jquery part but not the parameters of them all can anyone help figure out the parameters for each url string?
this is the jquery I figured out! also would this work better then what the below answer?
$.get('adminajax.php', {'action':'getUsers'}, function(data){ $('#users .users').html(data); });
He sent me this in an email:
You can specify a page by adding: p=[page #] You can specify a file and it will add a checkbox next to the user which will be checked if the user has permission to download: file=[file location]
adminajax.php?action=createDirectory&directory=[new directory location]
adminajax.php?action=setAvailability&user=[username]&file=[filelocation]&available=[true or false]
I'm trying to get it to display in these html tags:
<div id="files">
<b>Files:</b>
<ul class="files"></ul>
</div>
<div id="file_options">
<b>Options:</b>
</div>
<div id="users">
<b>Users:</b>
<ul class="users"></ul>
</div>
© Stack Overflow or respective owner