I had a input box for users to enter in a custom link to a page from the creation form (somewhat similar to Wordpress). (e.g. about/awards which gets used for http://site.com/pages/about/awards ) At some point, this stopped working in Chrome, as they now do stricter validation of input type="url" field. Which would be good but:
It doe...
Hi,
how can i get the userinput in an input-field?
QObject::connect( webView, SIGNAL(loadStarted()), this, SLOT(slotLoadStarted()) );
void slotLoadStarted()
{
QWebFrame *frame = webView->page()->currentFrame();
if (frame!=NULL)
{
QWebElementCollection collection = frame->findAllElements("input[name=email]");
fore...
What is a good jQuery plugin for a showing default value in an input box that disappears when it gets focus or a user starts entering text?
...
I have a user input their name as a string and then the name is printed out onto the screen. How can i limit what is printed to only 12 characters so that a user cannot type an insanely long name? Here is my code:
Scanner input = new Scanner(System.in);
System.out.print("Enter your player name: ");
String name= input.next();...
So i have a text input
<input type="text" value="3" class="field left">
Here is my css for it
background:url("images/number-bg.png") no-repeat scroll 0 0 transparent;
border:0 none;
color:#FFFFFF;
height:17px;
margin:0 13px 0 0;
text-align:center;
width:17px;
Here is the page
Is there a setting or a trick to this, I was thinking ...
Hi,
I've got a pretty complicated (for me!) form validation to do. I did all js and now I'm doing php stuff.
The thing is I've put a possibility to copy part of the inputs to other, similar section (recipient -> payer). It's all done by jQuery first copying $("input.payer_sth").val() to $("input.payer_sth"), and then doing it again and...
I have to copy and paste the values of input type="button" (ie value="1.25", value="3.50") from a lot of pages. Is it possible using jquery or greasemonkey?
<td>
<input type="button" onmouseout="btnGiocataOut(this)" onmouseover="btnGiocataOver(this)" onclick="aggiungiScommessa(6659, 12, 22, 1, 125)" value="1.25" class="ris">
</td>
...
I have a div that I am floating as a dialog over my page. When I use try and use the , the file selector does not get shown. Any help would be appreciated.
The function to create the floating div looks like
function openFloat($html)
{
$floatDiv = $('<div id="mainFloater" class="floater" ></div>');
$center = $('<div id="floaterC...
What I'm trying to do:
We have one input on the page
We press "add" button and one more input adds after first
On submit we get all their values and add them into an array.
How to add additional inputs on page (with jquery), and then get their contents in php?
...
I don't even know if this is possible or not but is there a method you can take the value of the selected file in a input file field to a input text field?
Like this:
...
I'm trying to find a list of good validation libraries (phone, email, etc.) that are constantly being maintained. I use PHP and am open to libraries from frameworks, but if you recommend a library from a framework, please say whether it allows you to use it without the framework itself?
...
This code doesn't work what's wrong?
$(".re").focus(function() {
if($(this).attr("type") == "text") {
$(this).attr("type", "password");
}
});
It's supposed to change the input text type from text, to password, but doesn't work when I type in it after I get into focus on it; it's still text.
...
... like "Swype settings" in this picture. Been searching for hours on how to do this. Going to go insane. Help appreciated.
...
How do I multiple the value of one input by 2 and save it to another input?
So when I type 10 (for example), the value of the 2nd input will be 20?
Thanks
...
I have a submit image button:
<input id="sbutton" type="image" value=" " />
Styled like that:
#sbutton {
text-indent: -99999px;
border: 0;
background-image: url('submit.png');
width: 201px;
height: 37px;
}
It works perfect in Opera in Firefox the button size is about 10x10px (wtf? :)) and in Safari...
Guys, I've found a very strange thing.
I was complaining about it before, but nobody sees old questions here.
Here's an example:
http://tinyurl.com/2ugzj6j
It works perfectly in Opera only... In Firefox, Chorme, Safari and IE8 there's a border around this button... And I have no idea WHY? How to delete the border?
Thanks.
...
I have a set of custom PHP forms within a set of Drupal pages (not generated through Drupal forms API - I won't explain why I'm not just using Drupal for these forms here - a tad complicated) with text entry fields won't allow keyboard input - but will allow copy and paste. They populate correctly with default values, but just won't let ...
Is there any difference between moving the mouse in windows using the following two techniques?
win32api.SetCursorPos((x,y))
vs:
nx = x*65535/win32api.GetSystemMetrics(0)
ny = y*65535/win32api.GetSystemMetrics(1)
win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE|win32con.MOUSEEVENTF_MOVE,nx,ny)
Does anything happen differently in ...
I'm trying to simulate a mouse click on a window. I currently have success doing this as follows (I'm using Python, but it should apply to general win32):
win32api.SetCursorPos((x,y))
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
This works fine. However, if the click hap...
Hi everyone, I am having trouble "undoing" this method, that dumps essentially a matrix of numbers of variable size into a text file:
void vectorToFile(char *name, vector<vector<double>>* a){
FILE* fp = fopen(name, "w");
for(int i=0;i<a->size();i++){
for(int j=0;j<a->at(i).size();j++){
fprintf(fp, "%f ", a->a...