Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Load ajax subpage
Post: RE: Load ajax subpage
I make file ajax.php in my theme, global functions will be work when ajax call it? How i can do it work? |
|
werty1001 |
General Questions and Problems
|
8 |
18,384 |
2014-07-27, 00:15:57 |
|
|
Thread: Load ajax subpage
Post: RE: Load ajax subpage
shawn_a Wrote: (2014-07-20, 01:58:29)
--
you do not send forms to your functions you send them to your index.
functions is loaded in global scope automatically and your code will run.
--
shawn_a Wr... |
|
werty1001 |
General Questions and Problems
|
8 |
18,384 |
2014-07-20, 03:07:28 |
|
|
Thread: Load ajax subpage
Post: RE: Load ajax subpage
shawn_a Wrote: (2014-07-20, 00:30:50)
--
are you tying to run this outside of GS ?
pretty sure thats is indeed a function in core, you are trying to load it directly outside of GS just submit to ind... |
|
werty1001 |
General Questions and Problems
|
8 |
18,384 |
2014-07-20, 01:00:10 |
|
|
Thread: Load ajax subpage
Post: RE: Load ajax subpage
shawn_a Wrote: (2014-07-19, 13:08:57)
--
Slice the array using the page number via query string
See array_slice
--
Thanks, i add this code in functions.php
PHP Code:
--
if($_POST['ajaxload']) {
... |
|
werty1001 |
General Questions and Problems
|
8 |
18,384 |
2014-07-19, 18:57:21 |
|
|
Thread: Load ajax subpage
Post: Load ajax subpage
Hi. This code echo all subpage. How show only 10 subpage and another load after with ajax.
PHP Code:
--
function getSubMenu($page){
$children=getChildren($page);
foreach ($children as $subpa... |
|
werty1001 |
General Questions and Problems
|
8 |
18,384 |
2014-07-19, 13:07:02 |