Quantcast
Viewing all articles
Browse latest Browse all 2

Trigger javascript function from Django server

I am working on IPN's. Whenever I receive an IPN in this url: https://www.mywebsitename.com/notifications, I would like to run a simple JavaScript function that displays some html content.

I manage the IPN's from the server side, as follows:

@csrf_exemptdef notifications(request):    if request.method == "POST":       #some code

I would like to trigger my JS function inside that block of code, but I can't come up with any way of doing this. Also I don't really know wether what I am asking is really possible or not, maybe there is another approach that I can't figure out by myself.


Viewing all articles
Browse latest Browse all 2

Trending Articles