Hey,
I have an input text :
<input name="Email" type="text" id="Email" value="[email protected]" />
I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear.
I have an application, when it launches I have to disable all the buttons, I successeded in disabling end call and other i need to disable home buttom if I click it, It should not produce any action.
Any suggestions highly appreciated
Cheers Vinayak
Using suggestions from this thread, I created a ModernButton control that uses the HTML button tag instead of input. This control works great except when embedded within an UpdatePanel control. In this case, it does trigger the partial postback, but its click event does not fire.
The control is defined thus:
[ParseChildren(false)]
[PersistChildren(true)]
public class ModernButton : Button
{
private string _iconURL = "";
protected override string TagName
{
get { return "button"; }
}
protected override HtmlTextWriterTag TagKey
{
get { return HtmlTextWriterTag.Button; }
}
public new string Text
{
get { return ViewState["NewText"] as string; }
set { ViewState["NewText"] = HttpUtility.HtmlDecode(value); }
}
public string IconURL
{
get { return this._iconURL; }
set { this._iconURL = value.Trim(); }
}
protected override void OnPreRender(System.EventArgs e)
{
base.OnPreRender(e);
LiteralControl textCtrl = new LiteralControl(this.Text);
if (this._iconURL != "")
{
LiteralControl openDiv = new LiteralControl(
string.Format(
"<div style=\"background-image:url({0}); background-position:left center; background-repeat:no-repeat; line-height:16px; padding:3px 0 3px 22px;\">",
ResolveClientUrl(this._iconURL)
)
);
LiteralControl closeDiv = new LiteralControl("</div>");
Controls.AddAt(0, openDiv);
Controls.Add(textCtrl);
Controls.Add(closeDiv);
}
else
{
Controls.Add(textCtrl);
}
base.Text = UniqueID;
}
protected override void RenderContents(HtmlTextWriter writer)
{
RenderChildren(writer);
}
}
I use it so:
<asp:UpdatePanel runat="server" ID="uxSearchPanel" ChildrenAsTriggers="true" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="uxSearchButton" />
</Triggers>
<ContentTemplate>
...
<ctrl:ModernButton ID="uxSearchButton" runat="server" Text="Search" IconURL="Icons/magnifier.png" OnClick="uxSearchButton_Click"></ctrl:ModernButton>
</ContentTemplate>
</asp:UpdatePanel>
Which renders:
<div id="uxBody_uxSearchPanel">
...
<button type="submit" name="ctl00$uxBody$uxSearchButton" value="ctl00$uxBody$uxSearchButton" id="uxBody_uxSearchButton">
<div style="background-image:url(Icons/magnifier.png); background-position:left center; background-repeat:no-repeat; line-height:16px; padding:3px 0 3px 22px;">Search</div>
</button>
</div>
The ModernButton generates a postback in every case (whether partial or full), but the server-side click event (uxSearchButton_Click) does not fire in the partial postback scenario.
I try to write a dictionary extension for Google Chrome. Now, I want to pop out a small box when I double click to select text . How can I implement it :)
Or like this one ( Fastest Chrome ). They're written in javascript.
Thanks so much !
Hi,
I have 4 tabs in my iphone application. When user will click a button in tab-1, I want to move/switch user to another tab suppose tab-2.
How to do that?
Thanks in advance.
-Ruchir.
How to change cell background image on click on cell in iphone????I have tried following but it is not working....
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0,0,320,50) reuseIdentifier:myid] autorelease];
cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImage.png"]];
}
Hi,
I need the help in console view of eclipse. When i build my project all my errors and warnings are displayed in console window and if i need to find the place where it showing those errors i need have to go into that file and find those information. I feel its much iritating to find when errors are huge. So is there any plugin available that take us to that location of errors on double click. Thanks in Advance
I have the following Hyperlink as a button:-
<asp:LinkButton ID="loginButton" runat="server" CssClass="loginButton" Text="LOGIN" OnClientClick="return validateLogin(memNoID,pwID)" AddressOf="loginButton.Click"></asp:LinkButton>
It causes a postback but only executes the onload and prerender sections of code. It totally ignores the following function signature:-
Protected Sub loginButton_Click(ByVal sender As Object, ByVal e As EventArgs)
Some code
End Sub
Any pointers appreciated.
I've seen an example somewhere online showing how to customise the appearance of jstree's right-click context menu (using contextmenu plugin).
For example, allow my users to delete "documents" but not "folders" (by hiding the "delete" option from the context menu for folders).
Now I can't find that example. Can anyone point me in the right direction? The official documentation didn't really help.
Hello All
I want to show A Panel on My Button Click Event And I want There is A transparent Screen Come between panel And other window Control . How CAN i Do it ?
i m doing it all dynamic using C# not In xaml.
Thanks in Advance
shashank
I'm new to javascript/jquery and I've done some poking around the web, but I can't figure out why the following is invalid:
var toggleSection = function(sectionName) {
// Do some Jquery work to toggle stuff based on sectionName string
// (concatenate sectionName with other text to form selectors)
};
$('#togglecont1').click(toggleSection("container1"));
Is there something obvious I'm missing? Thanks in advance.
Hi, Is there a way to display the dropdown menu shown on sitepoint by mouse click.
http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/
Currently, it shows the menu only on mouse hover.
I'm using NumericUpDownExtender inside updatepanel which is inside repeater displays comments on article. I use NumericUpDownExtender as thumbs up/down and I need to disable it after first click so that no one can rate the comment more than once. How can I do that? Thanks in advance for your help!
I'm using silverlight 3 and i'd like to create a handler and event wired up to a mouse click in a text box that was created in code behind. Can someone point me in the right direction.
I need to make it so that some things fire off when that textbox is clicked into.
if you have an example in vb.net that would be even better.
thanks
shannon
Hello,
I have 1 main search form with a submit button and several secondary search forms with submit buttons.
What I would like to do is when I enter text and click on the submit button of the main search form, the same text gets copied in all of the secondary search forms and all the submit buttons of the secondary search forms get automatically hit.
The HTML code for the mains earch form is shown below:
<form action="query.php" method="get">
Search: <input type="text" name="item" size="30">
<input type="submit" value="send">
</form>
One of the several secondary search forms is shown below:
<FORM action="http://www.dpbolvw.net/interactive" method="GET" target="_blank">
<div style="float: left; padding: 0 3px 0 0;">
<INPUT type="text" name="src" size="9"
value="<?php
$input = $_GET['item'];
echo $input;?>" style="width: 110px; height: 22px;margin:0; padding: 0; font-size:140%;">
</div>
<div style="float: left; padding: 0 3px 0 0;">
<input type="image" name="submit" value="GO" src="http://images.guitarcenter.com/Content/GC/banner/go.gif"
alt="Search" style="font-size:140%">
/div>
<input type="hidden" name="aid" value="1234"/>
<input type="hidden" name="pid" value="1234"/>
<input type="hidden" name="url" value="http://www.guitarcenter.com/Search/Default.aspx"/>
</form>
Notice the php code that I put in the "value" field of the secondary search form:
<?php
$input = $_GET['item'];
echo $input;?>
This automatically copies the text that I entered in the main search form into the secondary search form. I thus figured out how to do that.
The problem is to "simulate" an "Enter" keystroke or a click on the "GO" button with the mouse on the secondary search form when the user hits the Enter key or hits the "SEND" button with the mouse on the main search form.
Thank you for your insight!
Hi all,
I want to go to a web page on the click of a button in my android app. So say, I have a button called "Google", when the user clicks on that button I want google.com to open up on the screen. How is this achieved?
Also, is there a way I can gain control back to my app once the user is finished with google?
Thanks
George
Hey guys,
I'm trying to sho a contextmenu on right-click on an item in a listbox. So i'm binding a list of "Users" to my listbox. Then i'm a bit lost. I thought i could foreach the list and add a mouserightdown event on the listboxitems, but i can't figure out how.
Is this a good way, or does anyone know a better way of accomplishing what i want.
Thanks in advance.
When I try to show an image on linklabel click, I get an error: unrecognized escape sequence.
Code:
public void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(
"mspaint~C:\Users\Joshua Banks\Desktop\Downtown_atlanta_night.jpg");
}
Hi,
I have a WPF ListView that opens a certain window when double clicked on a certain item inside the list view, but I have a problem. When I double click the GridViewColumn, that also opens up a certain window.
Is there a way to detect if the sender is a gridviewColumn or a listView item?
Thanks
Hi there,
just found out something: If you have a Tabbar combined with a NavigationController (that has some views on it's stack) and you double click the TabBarItem, the view pops to the first ViewController, whether you like it or not.
Is there a way to prevent this?
I have a scrollable div tag (overflow). Now I'd like to use mouse to click and hold and move to navigate up and down (like how the hand cursor feature in Adobe Reader works).
Is there any js script to achieve this?
Specifically, I'm using jquery, any jquery plugins to achieve this?
Hello,
I'm new to PHP programming and I wanted to know that is it possible to handle PHP events as we do in ASP.NET
I mean I've got a img and I want to perform some task on click event of this img.
I know how to do it in ASP.NET but please help me in context of PHP
Thanks,
GURU