Skip to content

JSONP ReferenceError when loaded using PJAX #42

Description

@bilogic

Hi,

  1. I'm using PJAX to load a bunch of HTML + javascript, let's call this JS-A
  2. In JS-A, there is an inline function called parse_jsonp()
  3. JS-A also makes a JSONP call using $.ajax with the callback of parse_jsonp
  4. However, the $.ajax call returns with an error ReferenceError: parse_jsonp is not defined

$.ajax runs parse_jsonp correctly when the page is loaded normally (non-PJAX).
So the question is, since JS-A (including parse_jsonp()) was loaded by PJAX, why is it undefined when called? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions