-
Notifications
You must be signed in to change notification settings - Fork 142
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
Lava is not defined at ajax in blade file #324
Comments
I suppose my docs aren't clear enough, but the chart has to be rendered once with a empty datatable with the correct structure. This way the ajax know how to fill the chart.
for example, that would render the chart into the page (but also includes the script tag for lava.js!!) |
This code for non-ajax call that is working fine. I have to display on ajax call using above code example you have given in doc |
try wrapping the ajax call in |
I have tried that already but its not loading anything about lava at blade template file. |
Is your render call above/before the ajax? The php render method outputs
the script tag with lava.js
…On Mon, May 4, 2020, 4:46 AM Muhammad Muazzam ***@***.***> wrote:
I have tried that already but its not loading anything about lava at blade
template file.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#324 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACA6XFXI55IIGCKTN2JQBLRP2TJPANCNFSM4MYU3ZWQ>
.
|
No, I didn' t call lava.js since its already in package installed. How to call this? which path? I have copied it to public/js and call it but no success. |
I checked back through my issue history and I think this might be what we're looking for... #215 |
What Version?
Issue
I am having issue of lava object undefined in blade file for ajax call, however this same code in controller works fine for non-ajax code.
Controller Code (chart creation code)
View Code
The text was updated successfully, but these errors were encountered: