Hello.
I'm making a "show password" button for password input.
Problem that is browsers don't allow to change attribute 'type'.
Ok, i'm cloning this element with jquery's clone() function and change this attribute "in memory".
It works in all 'normal' browsers, but not in IE.
Then i'll try to copy html, replace 'password' to 'text', sav...
I have an XForm that has certain fields that may often be left blank (optional street address). Is there is technique to set a default value for that field, preferably a space (I am running into weird formatting issues with CSS). The html form way of value="" doesn't work, neither does setting a default value in the XML schema.
EXAMPLE:...
I tried <input type="file" value="path..." /> but not working.
How to fix?
...
I have been following this tutorial series for OpenGL: GLUT:
http://www.lighthouse3d.com/opengl/glut/
I have reached the stage of implementing camera controls using the keyboard:
http://www.lighthouse3d.com/opengl/glut/index.php?8
When doing the advanced tutorial it stops working. I've pretty much just copied and pasted it. When I ...
I would like to add a hint value to my JTextField. It should look like Firefox rendering of <input type="text" title="bla">. This creates a edit field with the text 'bla' in the background. If the textbox has focus the title-text disappeares and just reappears if the user leaves the editbox without text.
Is there a (free) swing componen...
EDIT 2:
After writing up an incredibly long explanation in more detail I, of course, discovered my problem and it had nothing to do with the question I asked.
It was caused because I was creating a custom object of mine, assigning an uploaded images name to it's "LogoName" property...then creating a new version later in code, not assigni...
<input type="text" id="target" />
How to do it with jQuery?
...
Hi,
[EDIT 3]
I kind of "solved it" by at using the "strange" version. At least for the most important keys. It is suffient for my case, where I want to check that ALT and ALT+A are not the same (thereby making sure A is not pressed). Not perfect, but already to much time for such a tiny problem. Thanks for all the answers anyway...
[ED...
in other words:
<input type="hidden" value="Can I put as much as I want in here, or is there a limit?" />
and if so, what is it?
...
I'm writing in PHP!
There's a user string input, and I want to cut off all newlines,1 chars that are more than 1 in a row (avoid <br /><br />...).
example:
I am a
SPaMmEr!
would become:
I am a
SPaMmEr!
or
I am a
.
.
.
.
SPaMmEr!
likewise
...
I would like to know if there is anyway I can divide an item on two line inside a select box.
One of the values of my select box is two long to fit in my div.
...
If you have a look at this pic - http://twitpic.com/q0a6p - you can see a strange issue with an outline around the text element of a input tag in a form. (on the right, it is being inspected by Safari's web inspector). The background is the image of the button. The problem only occurs in Safari. FF and IE is fine. Does anyone have any id...
Hi!
I want to test various algorithms on graphs.
Does anyone know a web where I can get lots of examples in text files?
I've found many examples but they are always images. I want a text description
of a graph, by edge listing or whatever... do you know one such source?
Thanks!
Manuel
...
Hey, I am trying to create a search field that will filter or show/hide(which ever is best) the list elements based on what the user typed in and clicked the search button. I have no idea how to do this. everything I tried does not work unfortunately and im unsure of the best approach for this, like do i use show and hide or is there som...
int main()
{
cout << "Buy or sell (b/s): " << endl;
string buy_sell;
cin >> buy_sell;
.....
}
when i try to step through this in Xcode, i just stops at the cin >> buy_sell line, because it's waiting for the user input. How do i enter the value i want in the debugger so i can move past this? I'm using Xcode 3.2.1.
(I k...
i would like to determine if a key gesture is being pressed. I have a control that will kick into edit mode on a keypress, but iw ould like to be able to assign an arbitrary KeyGesture and then test for it in a OnPreviewKeyDown method. any ideas?
another way to ask this question is how can i get a KeyGesture from the set of keys current...
Hoe do you get to see the last print, in other words what to put in for EOF, I checked the defines and it says EOF is -1.
And if you Ctrl-D you won't see nothing?
#include <stdio.h>
int main() {
int c;
while((c = getchar() != EOF)) {
printf("%d\n", c);
}
printf("%d - at EOF\n", c);
}
...
Hi, I want to allow users to enter password using command-line interface. but I don't want to display this password on screen (or display "****").
How to do it in C?
Thanks.
Update:
I'm working on Linux only. So I don't actually care about Win or other systems. I tried Lucas' solution and it worked fine. However, I still have another ...
I'm writing an ASP-MVC application in C#. I have an input element of type submit and I want it to display an image. Here is the declaration of my button:
<input type="submit" value="Login" />
How can I display an image on that button?
...
There is a lot of information on how to place the cursor exactly where you want it to be in a textarea. None of it seems to work for an <input type="text"> field.
Basically, when the page loads, I have an input field with text in it, and it's focused. The problem is that the cursor is at the end of the pre-written text. I need it to be ...