Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to make Ajax work in wordpress

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43711
    sayedtaqui
    Member

    hi,
    I m trying to call a different page template from one page template with AJAX however its not working wordpress.

    $(‘#one’).click(function(){
    $.ajax({
    url:’frame1.php’,
    success:function(data){
    $(‘#taquislider’).html(data);
    }
    });
    });

    I googled it but every tutorial is about getting the post and categories but how do I call a page in wordpress through AJAX.
    Thanks

    #130036
    sayedtaqui
    Member

    ?????

    #130622
    sayedtaqui
    Member

    No one can answer??

    #130631
    sayedtaqui
    Member

    I m sorry I didn’t realize that the information was not sufficient.
    So let me put my question this way(only the part where I m having problem).
    I have a button on a page(let’s say single.php)
    and I m trying to fetch all the data( only html) from another page(Which I have created for this purpuse lets say frame1.php) on the click of this button.
    We can do it easily with the function I have shown above outside of wordpress however it doesn’t fetch any data from the other page in wordpress.
    I read online that wordpress has a different way of making AJAX call, but they dont explain the thing I m trying to achieve.
    Thanks for replying.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.