Skip to content

$.pjax doesn't work, but $.pjax.submit does #339

Open
@alonewarrior

Description

@alonewarrior

I have been attempting to get PJAX to work on my site for awhile now. It succeeded for awhile last night, but suddenly it no longer wishes to work properly. Even when I adjust the timeout, 2 requests still occur, with the latter not containing the appropriate X-PJAX information and causing a full page reload.

This is what I'm using to call PJAX:

$(function(){
    $(document).pjax('a.pjax', '#test', { fragment: ('#test'), timeout: 10000 });
});

On the other hand, the form portion works perfectly fine, and I haven't had any issues yet today.

I am at a loss of what to do right now; I'm going insane!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions