onclick

How to add the marker on google map?

We're trying to implement the similar to google maps "my maps" behaviour with some customization. The problem we're struggling against is to put the marker on the map in the similar manner as google does. Thats the procedure is the following one should click on the "add new marker icon" then drag it until the point of interest with ...

Posting a (ASP) Form with text area and onClick=Java... via CURL

I'm trying to pass some info to an ASP webpage. The form on the page looks as following: <form name=onlineform method=post onSubmit="javascript:return false;"> <input type=hidden name="form" value=""> <textarea name=item rows=5 cols=33 onBlur="this.value=removeSpaces(this.value);" tabindex="1"></textarea> <input type="text" name="Email...

how can you stop Vimeo video player automatically when clicking slider arrows?

I've run into an issue with a Vimeo player that's been set up for a site I'm working on. I have a friend who implemented the slider. The way it's setup is there is an introductory video embedded from Vimeo on the first slide on the homepage, which only shows up on the homepage. The problem is that when a user clicks on either of the a...

$(document).click() not working correctly on iPhone. jquery.

This function works perfectly on IE, Firefox and Chrome but when on the iPhone, it will only work when clicking on a <img>. Clicking on the page (anywhere but on a img) wont fire the event. $(document).ready(function () { $(document).click(function (e) { fire(e); }); }); function fire(e) { alert('hi'); } The HTML part is ext...

add onclick event on various elements on the basic of css class.

I have various elements on a single page. They share a single class. I want to add a onclick event on all those elements using prototype. For id i can do something like this_ Event.observe(window, 'load', function() { $('id_of_the_element').addEventListener('onclick',any_function,true); } ); This is good if we have id of the el...

anchor tag click listner in Safari

I've posted a question of how Safari behaves for the anchor tag click event here on Apple's Forum. It has not gotten any answers as of posting here. http://discussions.apple.com/thread.jspa?threadID=2581038&amp;tstart=0 I'm asking developers here at Stackoverflow to take a look and provide their intelligent comment how to circumvent th...

Android onClick method

I have two onclick method in android project clr=(Button)findViewById(R.id.Button01); clr.setOnClickListener(new OnClickListener() { public void onClick(View v) { tv1.setText("CLR"); et1.setText(""); refrigerant = ""; pres = ""; temperature = ""; ...

javascript onclick to select item with asp.net ListView control

I'm trying to implement a onclick event to select an item in a asp:ListViewControl. <ItemTemplate> <tr runat="server" id="MemberRow" onclick='<%#ClientScript.GetPostBackClientHyperlink(LvMembers, string.Format("Select${0}", Container.DataItemIndex)) %>'> <td> <asp:Literal runat="server" ID="LtlMember...

Using Canvas Tag in Opera 9.5 Mobile on Windows Mobile 6.1 Treo 800w

Is it possible to use the tag to capture an electronic signature using a stylus? I have an example that works on Desktop Opera, however it fails on windows mobile version of opera. when I tap on the canvas area Opera simply "zooms" the screen. here is my html Canvas Paint - Example 5 Drawing tool:...

android onClick event not firing

Hi everybody, I really need a help on this point because its the only thing not working in my app. I have a listview managed by an adapter that is extending BaseAdapter. In the getview function im using the convertView to set up a OnClickListener. This OnClickListener work well when I am touching the screen but if I use the trackball o...

ClickEvent on animated ImageView fires only at the start position

Android: I have an animated ImageView with an onClickEvent registered. I want the ImageView to move around the screen and then click on the ImageView. But when I click on the moving imageView, nothing happens. When I click at the position of the screen, where the imageView was at the beginning, the clickEvent is fired. So the real posit...

changing the font to bold on a HTML unsorted list when clicked

I have a HTML unsorted list which I capture its “on click” event. When a list item is clicked on I want to change that items font setting to bold so that the user gets a visual indicator that it’s been selected. Is this possible? ...

Event Handling [Android]

I wrote simple Application for Android: public class Figures extends Activity { DemoView demoview; int figure_type = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); ...

ListView OnClickListener not working within TabActivity

I have a ListView and an ExpandableListView inside of a TabActivity. I have overridden the setOnItemClickListener for the ListView. I have 2 tabs and one uses the ListView and the other uses the ExpandableListView. For some reason I cannot click on any of the items in the first ListView. If I change tabs to the ExpandableListView and...

Onclick usage for low z-index elements

Here is my issue--I need to somehow access the onclick of an item that is covered by another element of higher z-index. I know this is going against the point of z-index, but any ideas? In the below example, only the small top-sliver of the red box is clickable. I have a webpage design where tabs that need to be clickable are overlaid ...

How to disable asp.net ImageButton that is wired to server event (so it can't get re-posted)

I have an asp.net ImageButton -- with an OnClick event that another developer originally coded. It looks like this: <asp:ImageButton ID="ImageButtonSaveAddress" runat="server" ImageUrl="btnSave.gif" OnClick="ImageButtonSaveAddress_Click" /> In the code behind, the event code looks like this ... protected void ImageButtonSaveAddr...

Handling clicks for jQuery AJAX (with PHP)

Not sure how to phrase this question exactly, but I'll give it a shot. (If you have a suggestion for how to phrase it better so others can find it, tell me and I'll edit it). I want to know the best practices for handling clicks on a page that are then processed using AJAX. I have been temporarily using code that looks like this in the ...

Jquery/javsacript onclick display next row

I have a table that has a row that is hidden using display:none. I want to show the row when a button is clicked. How can I do this?? <table> <tr> <td> <button class="shownextrow">Show Next Row</button> </td> </tr> <tr style="display:none"> <input type="text" name="input"/> </tr> </table> ...

Jquery add disabled attribute to input

I have an input box and I want it to be disabled at the same time as hidden to avoid problems when porting my form. So far I have the following code to hide my input: $(".shownextrow").click(function() { $(this).closest("tr").next().show().find('.longboxsmall').hide(); }); This is the input that gets hidden as a result: ...

Change Background position onClick

I would like to change the background position of one link when another link is clicked. I want this to change: <a class="fast btn-slide" href="#"></a> ...