Questions tagged as 'onclick'

3
answers

setOnItemLongClickListener is not working

Can someone help me by saying that my setOnItemLongClickListener is not being called when I give a long click on the item in my list? I have in the same adapter 2 methods of type onclick, one is the setOnItemClickListener and the other is s...
asked by 26.01.2015 / 20:34
1
answer

PHP use onclick to perform function of another page

I have the following link in a header (header.php): <a href="./index.php" id="btnMinhasReservas2" onclick="irParaMinhasReservas()" class="ph00_9"></a> The idea is, when I click on this link, go to the index page and execute a fu...
asked by 20.01.2015 / 14:28
0
answers

how to make an onclick to another class in OneSignal

I want to make OneSignal open another activity in android studio. Follow the activity with the handler. OneSignal.startInit(this) .setNotificationReceivedHandler(new PlocarNotificationReceivedHandler()) .setNot...
asked by 05.12.2018 / 19:31
1
answer

Line break with Onclick JavaScript

I have a function, which when clicking changes an element, but also ends up breaking the line, already tried to solve using preventDefault() , but without success. When clicked on the fa-user-secret icon, onclick and line...
asked by 03.08.2018 / 17:48
1
answer

OnItemClickListener with CustomAdapter, java.lang.NullPointerException error:

Good afternoon, I'm using a listview to show some images per url and save them in cache. Until then, it's okay. But when I put OnItemClickListener just to show the Title with a message it gives the error java.lang.NullPointerException: Attempt...
asked by 12.06.2018 / 18:38
0
answers

Disable OnClick button that loads comments Disqus

So, my theme has this "onClick" button with "comments" as the title. It serves to click and load my comments from Disqus, just below the post. The problem is: it gives error several times, showing only one blank area many times. It takes too lon...
asked by 06.05.2018 / 01:58
0
answers

How to insert onclick to refresh the page using cakephp (1.3)?

I would like to know how to put an onclick event on a submit to refresh the page after the submit action. the submit code line is this. It includes a new option in a registration. echo $form->submit('Incluir', array('id'=>'botao','div...
asked by 06.03.2018 / 16:58
0
answers

"Unfortunately MyApp has stopped" error when clicking the application button

I'm running my app on Genymotion, developing on Android Studio. Every time I run my application I click on the button to register, but when I click, I find the following message "Unfortunately MyApp has stopped", where after the application i...
asked by 17.02.2018 / 19:49
0
answers

Error creating multiple buttons in XML (Android Studio)

I'm creating an Android application that needs to have 20 buttons and each button will open a different screen. The application compiles correctly, but when I get to the screen that has the 20 buttons it automatically closes, I realized that if...
asked by 10.08.2017 / 05:30
1
answer

Javascript Onclick

In the code below I get the option value selected and used as a link (href) , however I need it to be used as onClick : <form action="" method="POST" role="form"> <li> <select id="bens" name="bens" class...
asked by 27.07.2017 / 16:01