button

PHP Dynamic Count & Limit Menu items

Hello, I want to modify this code which works pretty good but (or I don't know because I'm new with php) I can't limit the number of li's displayed for the main elements in the menu. The actual code will echo all elements it finds, I want to limit the times <li><a href='{$sLink}' {$sOnclick} target='_parent'>{$sPictureRep}{$sText}</a> ...

Where to find iPhone system buttons and icons graphics?

Hey guys, I'm trying to find a way to use the original Apple system buttons and icons in a web site. Is there a way to get these original graphics in png format? There are not-so-nice ways to obtain them of course. Two I was thinking of: Save them from this link, then convert to png. Take screen captures on the iPhone itself, and ...

ASP.NET - programmatically generated delete button

I'm trying to create a simple button that deletes a row from the database. I would like to set the ID of the control to something like delete_MATERIALID_button however, when I do this: <asp:Button ID='delete_<%# Eval("MatID") %>_button' runat="server" Text="Delete" /> I get an error that the name can't be generated like that. I know ...

custom button: properties change, button should be redrawn

Hi I'm developing an Android app. I have class derived from button to represent a special type of button. This special type has some properties (integers) and according to these one or more circles have to be drawn on top of the button. So I overrode the onDraw function, which looks the values up and accordingly draws the circles. Bu...

How do I replace jQueryUI button text?

I've got a button that I use with jQueryUI somethink like this (simplified). <button id="mybutton">Play<button> <script> $("#mybutton").button().toggle( function(){ $(this).text('Stop'); }, function(){ $(this).text('Start'); }, ); </script> This code breaks the way the button looks because when making it...

calling function in radiobutton group

with your help, i am now able to call the function for each radio button. however, i get a error message Reference to non-existent field 'ics_si' ics_si is my function, which has the following code, i do not know where i am making a mistake i have created the edit box for user to input the values for bore and stroke. and vdisp is cal...

Onclick not firing

I have a set of buttons on my master page (I have attached the code below) but no onclick event is being raised. I pulled the final page source and no onclick event was present. As you can see I tried a few different approaches to solve the problem. I am looking for a normal postback to the server but I am getting nothing when I click an...

Application lifecycle and onCreate method in the the android sdk

I slapped together a simple test application that has a button, and makes a noise when the user clicks on it. Here are it's method: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b = (Button)findViewById(R.id.easy); b.setOnClickListen...

Android: How would you make Buttons un-clickable for some period ?

I've got some Buttons that I want to make un-clickable (but still appear on the screen) until another process (thread) has finished its work ? How would you do this ? The goal is to avoid my users to keep clicking on this button and so, launching a new thread every time they click on it ... Thanks for your help. Hubert ...

Keep PyGTK Button from Resizing on Label Change

I'm working on a PyGTK app with some Buttons that, when clicked, give a text entry dialog, then set the text on the button to whatever was entered in the box. The problem is that if the text is longer than the button can show, the button changes size to accomodate. How do I keep GTK Buttons from resizing when the text changes? ...

How to delay to load the button on image view in iphone

Hi, I am new to iphone development. I have created a view controller and sets the button on the view. On clicking the button, it navigates to the next view and loaded the image in the view. Now i want to display the button on after loaded the image. The button will be shown after 3 seconds on the image view. Please help me out, Thanks...

C# Button with Image does not get 'pushed' in when clicked

I'm dabbling in C#,and I'm rather inexperienced with it. I have a button with text and an image on it. When I run the program and press the button, the button gets pushed in, along with the text, but the Image stays static. Does anyone know a workaround? *EDIT: this.btnRename.AllowDrop = true; this.btnRename.Anchor = ((System...

CSS for toolbar with UI Slider centered between left and right buttons

I'm attempting to create a 100% width toolbar. This toolbar needs to have a variable number of buttons aligned to the left side, as well as a variable number of buttons aligned to the right. That's the easy part. But now I want to put a jQuery UI slider in the center that takes up the full remaining space between the buttons on the left...

styling a form button

Hi I would like to style a form button (input or button tag) with 2 background images to create a stretchable button (relative to the text-length). The form button should also have a hovered state and it should be cross browser (at least IE7 & +) would need to support it. I know how to obtain the effect with just css with an tag => t...

Clicking on a asp.net button, how to scroll down the page when there is an error on the form.

My page scrolls down a bit, so the problem is when the ASP.NET validation kicks in (its a server side validation that sets a table row to visible if there was a failed validation for a given input box). The problem is, when there is an error, the page scrolls back to the top. How can I force the page to the bottom? I can use <a name="...

In JQGrid I want to add a row button that doesnt post back.

The buttons I have added to the rows still post back even if I specifiy not to do so in the onclick method of the button (onclick=' return false;'). I supose its the grid doing the post back? I am tring to prevent the postback and show my own custom popup forms. gridComplete: function(){ var ids = $('#jqGridControl1').jqGrid('getDataI...

List getting cleared every button click inside Update Panel?

No this isn't a copy of this question: http://stackoverflow.com/questions/654423/button-in-update-panel-is-doing-a-full-postback I've got a drop down inside an update panel, and I am trying to get it to allow the person using the page to add users to a list that is bound to a gridview. The list is a global variable, and on page_load I s...

Stopping and Play button for Audio (Android)

I have this problem, I have some audio I wish to play... And I have two buttons for it, 'Play' and 'Stop'... Problem is, after I press the stop button, and then press the Play button, nothing happens. -The stop button stops the song, but I want the Play button to play the song again (from the start) Here is my code: final MediaPlayer ...

How do I write an HTML entity in button text in ASP.NET?

I need to write out a submit button in ASP.NET so that the button text value is HTML-encoded using the proper HTML entities for the various French characters with accents. The button is simply declared as <asp:Button id="button1" runat="server" /> If I do something like button1.text = "Test é" then it displays the button text cor...

Background custom button animation using WPF

Hi, I am using Resources dictionaries to customize my controls and apply them as themes to my WPF application so I have implemented one for the button control. A code snippet for my custom Button.xaml is (its namespace is MyWPFApp.Themes): <ResourceDictionary ...> ... <LinearGradientBrush x:Key="NormalBackground" ...