ERPNext Conference 2019* ERPNext.com Blog

How do I call a Javascript function from Python?


#1

Hello,
i need to call java script function from python. so how i can achieve it .


#2

Ref: https://frappe.io/docs/user/en/guides/basics/frappe_ajax_call


#3

Thank you sir,
But i need call js function from python , Frappe.call can call python method not js function i think. please help me.


#4

@maheshlangote
What is the use case of the calling the javascript function in the python?


#5

i make a whitelist() Function and put it into Hourly scheduler_events in Hooks.py
this python function need to call some Javascript …so i can execute this JS every Hour by calling this python Func …

all i need to Do is to execute some JavaScript every Hour