Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Loading a view using Ajax #66

Open
SuperlativeEntity opened this issue Nov 5, 2015 · 0 comments
Open

Question: Loading a view using Ajax #66

SuperlativeEntity opened this issue Nov 5, 2015 · 0 comments

Comments

@SuperlativeEntity
Copy link

Hi Mr Way

Please forgive me if this is not the correct platform to ask a question regarding your "PHP-Vars-To-Js-Transformer" package.

If I use the following:

$.ajax
({
    url: href,
    success: function(data)
    {
        $("#content").html(data);
    }
});

It obviously won't inject the vars when loading the partial view.

Any idea how I could go about doing this?

EDIT: I attached the vars to a footer view and the namespace is injected

I also get the following error: "Uncaught ReferenceError: injected is not defined"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant