aghasemi / streamlit_js_eval

A custom Streamlit component to evaluate arbitrary Javascript expressions
MIT License
81 stars 12 forks source link

cross sites POST requests #10

Open saikumaru opened 6 months ago

saikumaru commented 6 months ago

Is there a sample or method that can allow using this component in executing a JS code on frontend when a button is clicked?

I have checked the example code, but it dint look like its possible through this. Please can you confirm?

aghasemi commented 6 months ago

Hi. What do you exactly want? Can you provide a more concrete example maybe?

saikumaru commented 6 months ago

hi sorry for being very brief, I stumbled across your intresting JS component while I was trying to build a magic link based authentication through Auth0 service provider. I was hoping to run some client side scripts using a Streamlit component, but unable to find a fitting one. It would be great if you can suggest or let me know if its not relevant to the repo.

aghasemi commented 4 weeks ago

Hi. If I understand you correctly, you can run arbitrary JS code using this library and process the result inside Streamlit.