niche Posted August 19, 2012 Share Posted August 19, 2012 (edited) I have a button that toggles the display of a hidden div: echo '<button class="button0" onclick="showDiv(this.value)" value="itemInfo' . $counterz . '">Item Info</button>'; Is there a simpler way to save that button click to a table than using an ajax call? If so, please describe how you'd do it. Edited August 20, 2012 by niche Link to comment Share on other sites More sharing options...
thescientist Posted August 20, 2012 Share Posted August 20, 2012 Is there a simpler way to save that button click to a table than using an ajax call?I'm not sure what you're asking for. you mean a table in database? Are you trying to track/store link clicks in JS? Link to comment Share on other sites More sharing options...
niche Posted August 20, 2012 Author Share Posted August 20, 2012 Yes, without refresh. Is an ajax call the way, or is something easier available? Link to comment Share on other sites More sharing options...
thescientist Posted August 20, 2012 Share Posted August 20, 2012 AJAX seems like the simplest method. Link to comment Share on other sites More sharing options...
niche Posted August 20, 2012 Author Share Posted August 20, 2012 Thanks thescientist. That's the answer I was hoping for. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now