Hello
I've a text editor in my application. I want to programatically set the input language for the text editor alone without affecting other controls.
Any ideas?
Regards
NLV
I have to crawl a site which list item based on user input through http post submission. How to configure post http submission details in Nutch.
I got help on how to do HttpPostAuthentication, but I got no help on "how to do post data submit other than username and password".
I'm creating a site which I want to place content input form in custom themed template. I opted to do this because I wanted the whole site to be looked uniform. That said, I'm not sure as to what is the best approach to do this. Is it proper to invoke hook_insert/delete/update and hook_perm/hook_access by myself or is there anyway I can still use my custom theme and write a code in a way that drupal would take care of invoking appropriate hooks accordingly?
Thanks in advance
PS : I'm on drupal 6.x
I have a class that processes a file, and as part of the constructor with one argument I want to input a file using fstream.
I basically want it do something like this
class someClass{
public:
someClass(char * FILENAME)
{
fstream fileToProcess;
fileToProcess.open(<FILENAME>, fstream::in | fstream::out | fstream::app);
}
};
I want to pass the filename in as an argument to the class constructor, and then the class someClass will access it with fstream.
What's the best way to sanitise user input for a Python-based web application? Is there a single function to remove HTML characters and any other necessary characters combinations to ensure that an XSS or SQL injection attack isn't possible?
Hi experts,
i have an input data in excel which has 2000 rows and 60 columns. I want to read this data in matlab but i need to to interchange the rows and the column so that the matrix will be 2000 column and 60 rows. How can i do this in matlab, because excel only has 256 column which cannot hols 2000 column.
Thanks
What is the difference between declaring a method in a base type "virtual" and then overriding it in a child type using the "override" keyword as opposed to simply using the "new" keyword when declaring the matching method in the child type?
Hi,
I notice when you go to google.com for example, the input field keyboard has a "submit" button as opposed to the original "return" button.
How do I turn on that feature?
I tried type=search but I still see the return button.
Thanks,
Tee
I want to valid if user has entered username and password at the time of creating an account is safe or not based on its length(for my case five) on the right side of input field by showing that in different color i.e. for shorter in red, otherwise in green. How can I do that with javascript?
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 ???
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
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??
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
I need to use a class callback method on an array inside another method (the callback function belongs to the class).
class Database {
public function escape_string_for_db($string){
return mysql_real_escape_string($string);
}
public function escape_all_array($array){
return array_filter($array,"$this->escape_string_for_db");
}
}
Is this the right way to go about that? (I mean, in terms of the second parameter passed to array_filter)
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
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
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.
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'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.
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.