HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Chinese Zodiac and a plugin question relating to a page refresh or redirect after form save.
In developing this plugin. I wanted to redirect the page back to the profile after the settings were saved in the profile so the icon would reset. I tried putting a redirect in several different places in the plugin, but none would do what I wanted, so if you know how to do this, I would learn something new. Anybody got a… -
Re: Chinese Zodiac and a plugin question relating to a page refresh or redirect after form save.
One way would be to call a JS function on form save that updates the symbol through AJAX. $('Form save button selector').click(function (){ var url = gdn.url('/plugin/symboledit/getflair/'); $.ajax({ url: url + userID, global: false, type: "GET", data: null, dataType: "json", success: function(Data){ $(".MySymbol…
2 results