button

button in XSL for AJAX usage

Hi guys, I wonder if its is possible to do AJAX when I put a button inside the xsl file; <input type = "button" id="laptop" value = "Add to Cart" onclick="sendCartRequest('Add');" /> That's what I do in my xsl file then in my js file I pass the id to the DOM and try to alert it make sure it is passed. And the alert appear to be empt...

Scaled ellipse over button, button not clickable

Hi, I'm scaling an ellipse in an animation with the following code: ScaleTransform myScTransform = new ScaleTransform(); TransformGroup myTransGroup = new TransformGroup(); myTransGroup.Children.Add(myScTransform); newPHRadio.RenderTransform = myTransGroup; newPHRadio.RenderTransformOrigin = new ...

Facebook "Like" button callback

Hello, I am interested in implementing the facebook "Like" button, but I would like to know what user is clicking on this button so I can get some useful information from this. From what I have read, facebook is leaving us in the dark on who is clicking on what. ANyone have an idea on how I could track which user clicked on a like button...

ImageIcon loads no image

I'm trying to get image built from tiled set of images So to JPanel I'm adding JButtons with ImageIcons. All images are in folder with my classes (NetBeans), and they're named u1, u2, ..., u16. But on button there is no image shown. What am I doing wrong ? JPanel panel = new JPanel(new GridLayout(4, 4, 3, 3)); for (int i = 1; i <...

javascript - eventlistener

var Button = createInputButton("checkbox", index); Button.name = "farmAtivada_"+index; FM_log(3,"checkboxFarm "+(index)+" = "+Button.checked); Button.checked = GM_getValue("farmAtivada_"+index, true); Button.addEventListener("click", function() { FM_log(3,"checkboxFarmClick "+(index)+" = "+Button.checked); GM_setValue("f...

How do I change the image of a HTML button on mouse over etc

How do you point to various images for various button states? Onmouseover, etc. ...

How to change a button from another function?

var ButtonFarmAtivada = new Array(); function X() { var tableCol = dom.cn("td"); //cell 0 //create start checkbox button ButtonFarmAtivada[index] = createInputButton("checkbox", index); ButtonFarmAtivada[index].name = "buttonFarmAtivada_"+index; ButtonFarmAtivada[index].checked = GM_getValue("farmAtivada_"+index, true); FM_log(3,"c...

Qooxdoo: Drag a toolbar button to a tree node. is it possible?

I am trying to Drag a toolbar button to a tree node. Is it possible? I have noticed that drag start is never fired. Is there any list of components/classes available that currently allow to be dragged? ...

Button Click Event Getting Lost

I have a Menu and Submenu structure in Silverlight, and I want the submenu to disappear when the parent menu item loses focus - standard Menu behavior. I've noticed that the submenu's click events are lost when a submenu item is clicked, because the parent menu item loses focus and the submenu disappears. It's easier to explain with cod...

CSS sliding doors technique for buttons, IE8 problem

Hello All! I used sliding doors technique, explained here: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html With only one exception, that I decided to add one more image for "hover" effect. My code works well for all browsers, except IE8 (and maybe earlier versions). a.submit-button:active and a.submi...

Android : Cannot cast from View to Button

I just started working with the Android, but seem to have come across a problem that I simply can't find the answer to. I get the error "Cannot cast from View to Button" on this line : Button myButton = (Button)findViewById(R.id.my_button); I've tried many different things to get it going, and I've searched for the answer, but for so...

Trying to Make mini Jeopardy flash game button help pls

Hey im a noob in flash cs3 and i want to create a jeopardy game where when a button is pressed we go in to the main question scene and when we come back the button the we pressed is now disabled via 'button._visible=flase'...pls any help...any suggestions or links to tutorials or tutorials from you guys or girls will grateful thanx... ...

How can I read the HTML contents of the file which contains a button

Folks, I have a HTML file which contains a button called "Email this content to me". Upon pressing this button, I want the complete HTML content of the file to be emailed to me. Can someone tell me if there is a javascript function to do that. A short example would go a long way :) Thanks in advance ...

How can I animate between states in a programmatic skin? [FLEX]

I have a button with the various states (up/over/down etc) that uses a skin file to render the display. I want to achieve animation between the states. For instance, between the change from 'up' to 'over' I want to fade in a color and a border. The way I am doing this at the moment is to use viewstates and animate between them using tra...

Track button click within a iframe

Hi, Is it possible to track a button click within an iFrame if i don't have control over the external website or it's contents? (very fictionnal example)if i had an iframe like this: <iframe src="http://www.johnny.com/plugins/like.php?href=http%253A%252F%252Fexample.com%252Fpage%252Fto%252Flike&amp;amp;layout=standard&amp;amp;show_fa...

Collapse span when input button is hidden

I have a style that wraps around an input button, so the button can be styled very creatively. When the button is hidden in .Net, i would like the style to collapse so it renders like its hidden as well. What the style does, as a result of no value in the button or its hidden, is it keeps a small shape. Click to see a demo: http://media...

Android - What is the best way to create different select (touch regions) on an image button/view

I would like to have different select regions on and image button that are not rectangular? Is that possible? ...

[PyGTK] How to Create a Multiline Button

I'm trying to create a multiline button with PyGTK. I have a label added to my subclass of gtk.Button, but I'm having trouble sizing the label to the button. If the label makes it's own size, there is no text wrapping even with label.set_line_wrap(True) because the label simply resizes beyond the bounds of the button. I would set the siz...

Adding hyperlink button column in silverlight grid from codebehind?

Hi Since I am building the columns from code-behind, I need to attach hyperlink into one of the columns from code behind. And also, I need to add the click event. How can I do that and its data-binding in code behind? Please advise. Thanks AJ ...

Flex: How can I use the @ContextRoot in a Button or LinkButton

I'm trying to create a button that will simply link back to the context root. I noticed flex has a @ContextRoot attribute that appears to work only in certain cases. For example, if I try to use it in the following mxml: <mx:Button label="Back to Root" click="navigateToURL(new URLRequest(@ContextRoot()), '_parent')"/> I get the foll...