How is it possible to make a input field editable in javascript. I mean onFocus putting it in insert mode so that values can be overwritten. Any suggestions ???
i want to take data from bluetooth into matlab after every 10 to 15 seconds.. have figured out a way to transfer data to matlab via bluetooth. the problem i am facing is that i want matlab to execute a set of commands after a time interval to take input from bluetooth. if u cld plz help in this matter??
hey! ppl m tryin to write a code to lexically analyse python but the codin has to b in c..i.e input should b a python module..but codin inc..help me out plzzzzz
Hi everybody,
I need to send the list of the input arguments to readInput function. But the compiler gives error when I call readInput function. Could you please tell me where my mistake is?
bool readInput(netcorr net,int argc, char * argv[]);
int main(int argc, char * const argv[]) {
netcorr net;
bool error=readInput(net, argc, argv);
}
bool readInput(netcorr &net,int argc, char * argv[])
{
}
thanks for your help.
Pegah
hey guys
i create two input text fields , one for title and another for permanent link
i need to update the second filed automatically when user is typing the tilte
how can i do such a thing in jquery /php
somehow im looking for a way to simulate wordpress creation of permanent link in post section
hi,
In my application i write the code like this
byte [] byt=new byte[ Convert.ToSbyte(textbox1.tex)];
it is giving the error that input string was not in a correct format.
I want to pass some ArrayList X into method a(Collection someCol) that takes Collection as an input.
How can I do this? I thought an ArrayList was a Collection and thus I should be able to "just do it" but it seems that Collection is an interface and ArrayList implements this interface. Is there something I can do to make this work ... if you understand the theory that would also help me and possibly lots of other people.
Thanks
So I have this existing command that accepts a single argument, but I need something that accepts the argument over stdin instead.
A shell script wrapper like the following works, but as I will be allowing untrusted users to pass arbitrary strings on stdin, I'm wondering if there's potential for someone to execute arbitary commands on the shell.
#!/bin/sh
$CMD "`cat`"
Obviously if $CMD has a vulnerability in the way it processes the argument there's nothing I can do, so I'm concerned stuff like this:
Somehow allow the user to escape the double quotes and pass input into argument #2 of $CMD
Somehow cause another arbitary command to run
may i know how to use javascript onChange on <input type="file"... so that when user selected files, onchange will call flash to return files size and decide what to do next
2nd. how to use javascript to exclude this check,if browser doesnt have flash feature
I need to get all input elements within a div and then attach event handlers, so that whenever values change it updates a hidden field. Children elements within the div might already contain event handlers, if so the attach should chain it.
Any help is much appreciated.
I'd like to have an input box that automatically adds a visible percent sign to the user when entering numbers (not just recognizes it as a percent when submitting). Thus, a user hits "2" and sees "2%"
I'm assuming one could use Jquery to do this fairly easily, but I have no idea how! Any ideas?
Thanks everyone.
How could can I get the caret position from within an input field.
I have seen a few bits and pieces on google but nothing bullet proof.
Basically something like a Jquery plugin would be ideal so I could simply do
$("#myinput").caretPosition()
I realise there may by other non-jQuery solutions and these would also be brilliant if anyone has any??
how do I make a boolean statement to only allow text? I have this code for only allowing the user to input numbers but ca'nt figure out how to do text.
bool Dest = double.TryParse(this.xTripDestinationTextBox.Text, out Miles);
bool MilesGal = double.TryParse(this.xTripMpgTextBox.Text, out Mpg);
bool PriceGal = double.TryParse(this.xTripPricepgTextBox.Text, out Price);
Hi there,
I'm creating a set of input fields and using javascript's .style.backgroundColor = "red" to change the colour of any invalid fields.
In Chrome, there is no problem. However, in Firefox, as soon as I touch the backgroundColor (even if I set it to white) then I get these strange shadow effects.
Does anyone know what's going on?
before: http://imgur.com/xYRLT.png
after: http://imgur.com/R1tdI.png
I have an input stream from a binary file. I want to create a bitset for the first 5 bits of the stream. Here is the code I have so far:
ifstream is;
is.open ("bin_file.out", ios::binary );
bitset<5> first_five_bits;
is >> first_five_bits; // always is set to default 00000
There are many solutions suggested on Stack Overflow but i did not find it one that satisfy my requirements.
I was using Jquery Numeric plugin but i found that is not working (does not allow pasting) on FireFox 3.6 on Osx.
I'm searching a Jquery plugin or Javascript snippet that allow just Numeric Text on a Input Text field.
I have these requirements:
Should allow just numeric text
Should NOT allow punctuation (.,)
Should NOT allow dashed text (-)
Should allow pasting just for numeric text
Multibrowser
Multiplatform
I have been trying to change the cursor style to look like a pointer rather than an I beam thing, but it looks like FF does not respect the cursor spec in an input file field. For example, I have made this small fiddle: http://jsfiddle.net/jDZtn/4/ where Id like the cursor to look like a pointer rather than an Ibeam when the user hovers over it. My end plan is to introduce opacity==0 and use a clickable button over it.
I am not sure if this behaviour is a bug or not.
I am writing a GAE application and I would like to have an input box with google auto-suggest. Specifically, when a user types "Shawshank" I would like to see google's suggestions in my drop down.
Can someone tell me what are the different ways of doing this? I understand I may have to use some javascript libraries so any code samples etc will help immensely. (Pure javascript/jquery kinda solutions will be more preferable)
Im trying to combine the name field, and msg field, and input all values into #msg, but cant quite get it to work
$('#DocumentCommentsForm_21').bind('submit', function(){
var name = "##" + $('#navn').val() + "##";
var msg = $('#msg').val();
$('#msg').val(name+' '+msg);
});
alert($('#msg').val(name+' '+msg));
Hi, i am trying to find out, how to get input from html inputs using c++. In windows you can send WM_GETTEXT to the window and it returns text, that you wanted. But is there any way to do the same thing in web interface?.
I am not interesting in sniffing packets now.
For example I have long list of buttons: <input type=button name=clickbutton onclick='dosomething(this)'>
But instead of putting call to the same funcion in every button it would be more rational to add a single listening event that would wait for click of that button with this name. But again, there are maany this buttons so I need pass clicked object to a function. For example this function must update a textarea field that is adjacent (nextSibling) to this button.
Each input field in the CKEditor dialogs are renamed with a unique number, but the number changes depending on what options are visible.
I need to reference 'txtUrl' which has an id something like #35_textInput.
So far I have discovered that something like this should work:
alert(CKEDITOR.instances.myElement.document.$.body.getId('txtUrl'));
But it doesn't. Please help.
Hi there, I'm having trouble working this out. Basically my program has a standard input, I want to modify this so if the user enters a space it automatically replaces it with a / whilst they're typing. I have no idea how i'd even go about doing this or if it is even possible so I am grateful for any help either way.