<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged qa_clicked</title>
<link>https://www.question2answer.org/qa/tag/qa_clicked</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to clear or disable qa_clicked() when refreshing the page?</title>
<link>https://www.question2answer.org/qa/32169/how-to-clear-or-disable-qa_clicked-when-refreshing-the-page</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have a list of items and a delete button.&lt;br /&gt;
&lt;br /&gt;
item1&lt;br /&gt;
&lt;br /&gt;
item2&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
ItemX&lt;br /&gt;
&lt;br /&gt;
deleteBtn&lt;br /&gt;
&lt;br /&gt;
After I clicked deleteBtn, it will delete the first item which is item1.&lt;br /&gt;
&lt;br /&gt;
Then if I refresh the page, it will continue to delete item2...&lt;br /&gt;
&lt;br /&gt;
I realized that it was because everytime it loads this page, it will do this:&lt;br /&gt;
&lt;br /&gt;
if(qa_clicked(&amp;quot;deleteBtn&amp;quot;)){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// do delete opreation&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
And if after clicking, no other button is clicked, qa_clicked(&amp;quot;deleteBtn&amp;quot;) will still be true, so it will keep deleting things.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Is there any way to solve this problem? Any suggestion or advice is also very much appreciated.&lt;br /&gt;
&lt;br /&gt;
Thank you !</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/32169/how-to-clear-or-disable-qa_clicked-when-refreshing-the-page</guid>
<pubDate>Fri, 21 Feb 2014 14:47:53 +0000</pubDate>
</item>
<item>
<title>how to set qa_clicked('button') to false after finishing click event?</title>
<link>https://www.question2answer.org/qa/32085/how-set-qa_clicked-button-false-after-finishing-click-event</link>
<description>I wrote some function in if(qa_clicked('button')) so that if I click button it will insert a record to db. But I found that if I clicked once and kept refreshing the page, it would keep doing things in the IF CLAUE (inserting). Am I writing the wrong code or is there a way to avoid that?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/32085/how-set-qa_clicked-button-false-after-finishing-click-event</guid>
<pubDate>Wed, 19 Feb 2014 15:57:25 +0000</pubDate>
</item>
</channel>
</rss>