How can we implement Toggle button like google places
When click on write Review we smile images and sad images
http://maps.google.com/maps/place?cid=7069125495329769622&hl=en-IN
Do you mean, when click on "Write Review" it focus on the review textarea? I would use jquery (see http://api.jquery.com/click/), if you want an easy solution, on the postback just focus on the textbox...
Related
I'm a beginner programmer and I was wondering how I would go about linking an image to a button. Its for a childrens maths game which contains various questions like "how many sheep are there?", which would require them to select a button which has a certain value. Sorry if this is a really simple thing but I'm having some issues with it.
Thanks
Supposing you are doing a Windows Forms Application, you first place a button wherever you want, you can size it, put text on it... For what you want, those are the steps:
Select the button and find the Properties tab attached in the IDE.
In appearance, find the property "Text" and leave it blank, if there was any text.
In appearance section too, find BackgroundImage and click the button with "..." in the space.
When a window called "Select resource" appears, select "Local resource" and click "Import". When selected, click OK.
Now the image is binded to your Button background. Resize it as you want.
I hope this helps. There's not much info in the question.
I need to change the text shown by the "clear" button in the search results shown in the picture.
The language set on the iPad is Spanish, but the button text remains in English, that's why I need to change it.
Here is same kind of question:
Remove or override the "Clear Button" on UISearchDisplayController in a UIPopoverController on iPad?
Here in answer, it is explained how to add custom button in place of Clear button.
Hope this helps
I want to add my grid view into pop up window. My grid view consist of radio buttons.
so i want to select one of radio button and take clicked button's text value to my web page. Any one can tell me to create pop up to my sharepoint web part.
cheers !!!!
Chinthaka
You might have some success using JavaScript. Here's a few threads that cover the basic idea. I'm no jQuery expert, but I'll bet a pretty rock there's a slick, browser-independent way to do it in jQuery.
http://wiki.asp.net/page.aspx/282/passing-value-from-popup-window-to-parent-form39s-textbox/
http://www.plus2net.com/javascript_tutorial/window-child3.php
http://forums.digitalpoint.com/showthread.php?t=35053
I want to be able to update fields of my models by showing the values and then having a little "edit" button next to it, which would turn the label into textbox/dropdownlist and the edit button should disappear and instead show a Save and Cancel buttons. The save and cancel buttons should disappear when you click on them or on any other thing in the page (and the edit button should come back) .
I'm pretty sure that this will require some javascript (hopefully it could be done all in jQuery).
Do you have any suggestions (links/tutorials) on how to achieve this?
Thanks!
This article might help you out http://www.appelsiini.net/projects/jeditable
Also, just Google "jquery edit in place" and there should be a lot of articles to help you out.
I load files to a TextBox, and I would like some of the information to be hidden and replaced with a LinkLabel (that says something like 'click me to see more'). only when the LinkLabel is clicked will the extra information be shown.
the information to be hidden is marked with "/" in the file.
Can you think of a way to do this? Is it possible? Thanks.
EDIT: Here is an example.
File: Hello everyone have a /nice day/ today and have a nice day /tomorrow too/. Good bye.
TextBox should show: Hello everyone have a 'click me to see more' today and have a nice day 'click me to see more'. Good bye.
If the first LinkLabel is clicked TextBox should show: Hello everyone have a nice day today and have a nice day 'click me to see more'. Good bye.
How about using a RichTextBox instead and handling the RichTextBox.LinkClicked event? In the event handler you can replace the link with the actual text. The RichTextBox has auto url detection, so it can find and create the links for you.
You cannot put clickable zone inside a normal textbox.
You have to declare a personal user control that inherits textbox an handles the click over the text
You can put that extra info into Panel (You can find it in Toolbox-->Containers).
When somebody click LinkLabel you can do this:
Panel.Visible = true;
LinkLabel.Visible = false;
That would do the trick if I understood your question.
If I understand you correctly, your Link Labels are "hiding" the text. What I'd do is assign the hidden text on the Tag property of each of my Link Labels and when they are clicked, swap the Tag into my TextBox.