Homestuck archiveMay 07, 2009 · Wow, what a nice way to write code for this function. I already thought my script was not the best way to do it. But now you mentioned the window.onload as well as the getElementById functions which are a more modern way of writing code I presume. You should specify a handler, or a function, that is called when you click the Button. You can do this my assigning the name (not calling the function) of the function to the property command of your Button. For example: Note the absence of () when assigning buttonClick as the command property of self.submitButton. When the button is clicked, I also want to call a Django view function (along with re-direct to a target website). The view function increments the value in the database which stores the number of times the button is clicked. The column_3_item.link_for_item is a link to an external website (e.g.
When the button is clicked, i want to call a Django view function also (along with re-direct to a target website). The view function is to increment the value in the database which stores the number of times the button is clicked.