No problems,
I did do some (obviously somewhat)extensive searching and asked a couple of people. I think I may have had something like disable browser auto-enter in my search because I was finding it annoying/surprising that I came up with nothing. Now in my searches I find it difficult to not...
How was I know to know the tag attribute was called autocomplete? With that knowledge I probably wouldn't have needed to ask.
Seemed more like an autofill, an autocompleter being the javascripty tool to produce a list of options based on what you type.
Thank you both for your responses,
My problem is my users will likely not know how to turn this stuff off in there browsers settings, so a server-side solution is nice.
For now I think I'll use the autcomplete=off for the moment and test how it goes, if needed I guess I could generate the...
I have a problem with a web application Im working on.
When a user logs in, firefox will auto-populate the username and password, this is fine however on the "user edit" page if a user wishes to update their details, firefox will auto-populate the variables here too.
I haven't tested this on...
Sorry just realised there is an unrelated error in this code
This
xmlHttp.onreadystatechange=stateChanged()
should be this.
xmlHttp.onreadystatechange=stateChanged
Any help would be very much appreciated!
Sorry about this question I'm new to Javascript.
I'm trying to call a Javascript function from a loop, which in turn calls some php with echos out some information. In this loop I have multiple drop down menus and for each drop down menu I want the php print-out to be displayed beneath...
GetOpt does actually seem pretty cool, something I would definitely use in the future but way more than I need its just a simple string I needed passed. :D
Ah thanks for the reply.
I was focusing on the fact that it the input has spaces might be causing a problem, I missed the $0 completely.
To solve that I wrote the above I wrote.
$numArgs = $#ARGV + 1;
print "thanks, you gave me $numArgs command-line arguments.\n";
$input=NULL;
foreach $argnum...
Hey all,
I'm trying to execute a perl script from php and I want to pass a string via command line.
However it's not liking my syntax which im sure is wrong.
I execute the perl script from php like this.
$stringvariable="This is a string";
exec('perl script.pl $stringvariable',$result);
And...
Thanks for your help everyone.
I gave up an just replaced the calls with DBI.
Yeah I saw how easy it was to change the calls to different db type. That's a nice touch.
:D
Hi all,
I'm having an issue connecting perl to mysql.
I was coding perl a while back and left it for a bit. Now that I've come back the code won't work as it doesn't see mysql.
When I use
use Mysql;
Which I used before, it see's it as an immediate error in my syntax.
I noticed that...
Yeah I really should have gone with strict, but the script wasn't going to be that long, so I was a bit lazy. Regretting it now. :p
Cheers for spotting that, never noticed I wasn't processing a reference, probably because for some reason the code was cycling through a working hash and I never...
Kevin,
I'm not sure what you find wrong with this line.
while(($word,$freq) = each(%answerarray)){
But it works for me.
When I pass in the scalar $totalqwords, not a reference the value stays at 0 when I increment it in the subroutine.
while($record = $sth2->FetchRow) {...
I see what you mean but, when I pass an empty
hash reference into the subroutine and set it to
$answerarray, when I use:
$answerarray->{$temp}=1;
the hash its referencing is never set.
When I use this
$answerarray{$temp}=1;
the key is at least set, the value isn't however.
Hi,
I'm trying to pass a hash into a subroutine a few times.
When I pass the hash in I use
$ref_to_wf=\%wordswithfreq;
then pass the $ref_to_wf to the subroutine.
In the subroutine I set the reference to $answerarray.
When I want to modify a value in the hash, say
$answerarray->{$temp}++...
I assumed split would be the most efficient way of doing things too and went with that.
Grep seemed a little overkill for what I needed, but thanks for the suggestion.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.