I am currently using jQuery to retrieve a database update to a column called "followers_count". The problem is that the data is not being sent. I'm not sure if the issue is with the PHP or jQuery code, or both. Any help is appreciated.
In changes.php:
<script src="{{ url_for('static', filename='node_modules/toastr/toastr.js')}}"></script>
And in index.php:
Sub Copy_Cells_Loop()
Application.ScreenUpdating = False
If Range("B1").Value = "8/1/2017" Then Worksheets("Dispute").Range("C2:C76").Value = Range("H9:H83").Value
Application.ScreenUpdating = True
End Sub
答案 0 :(得分:0)
The real issue here is that you're returning something like
<
And then you're doing
{{myCard._id}}
But _id
doesn't have any descendant elements matching that, they are all at "root" level.
You could use filter
<count1>1</count1>
<count1>2</count1>
<count1>3</count1>
but why bother, all you have if $(dat).find('count1')
elements anyway, so you can just do
dat
Of course, this all very wrong, as $(dat).filter('count1')
isn't valid anything, not XML and certainly not HTML.
What you should be doing is returning JSON instead
As an added bonus, you're wide open to SQL-injection, unless <count1>
does something magical?