I work with a brilliant server.
My application has an entry in the search box. Based on this input, the output is a dataTable that has click links .
My ui.r application contains a JavaScript function that sets the value of a variable whenever a link is clicked. Let the variable be pressed Link . Now I want to save this link value to mysql or any other database. How to do it?
I tried ajax, php unnecessarily. What I did is described in this question: saving json data in a json file using ajax PHP , but I think php files do not work with brilliant ones. Please, help.
EDIT 1
added ui.R code
tags$script(HTML(" function clickFunction(clickedLink){ //alert(clickedLink); var cl = clickedLink; Shiny.onInputChange('clickedLink',cl); } "))
added code to .R server
observe({ print(input$clickedLink) })
EDIT 2
For information only, links are of the form
<a onclick="clickFunction(this.href); " target="_blank" href="http://SOMETING.com">SOMETHING</a>
javascript jquery mysql r shiny
alloyeduniv
source share