can you help with this, i'm trying to blank the text field if the cancel button is selected ..
<script>
function uploadImage(thefield) {
input_box=confirm(" Upload / Replace image with this file ? ");
if (input_box==true) {
document.image.submit(); }
else {
thefield.value = "";
}
}
</script>...
I'm getting a 500 Internal Server error with this script, any ideas?
#!/usr/bin/perl
use GD;
use strict;
use warnings;
&jpg_resize();
print "Content-type: text/html\n\n";
print "<html><body>Done</body></html>";
exit();
sub jpg_resize
{...
I'm trying to sort a pointer file by its contents, which will in turn allow me to display (FileName) in the correct order
.
The pointer file is as follows ..
FileName|CompleteDate|OrderDate|OrderNumber|CustomerName
eg. 123456|27|26|123|Jon Doe
On the page is a option to select how to sort ...
i have several text files in a directory, all formated like so:
Date|27/10/2006
Order Number|123456
First Name|Blah
Last Name|Blah
etc ..
question is, how do i sort and display the contents of each file by day of the month ?
Thanks in advance
I need a script to display each months name .. but this only displays the varable name i.e $month10 ..
my $month1 = "January";
my $month2 = "February";
my $month3 = "March";
my $month4 = "April";
my $month5 = "May";
my $month6 = "June";
my $month7 = "July";
my $month8 = "August";
my $month9 =...
heres my onBlur function to change the first letter of each word to uppercase.
function toUpper(value) {
var pattern = /(\w)(\w*)/; // a letter, and then one, none or more letters
var a = value.split(/\s+/g); // split the sentence into an array of words
for (i = 0 ; i <...
Heres my directory tree:
/cgi-bin
-/carts
-/Temp_ORDERS
this_script.cgi
this_script:
$directory = 'carts';
opendir(DELE, $directory) or die "Can't Open directory";
@TODELETE = readdir(DELE);
chdir($directory) or die "Can't Change directory";
foreach $file (@TODELETE) {
if (-d...
I'm trying to print to a Dymo Label Printer ... can this be done with Javascript??
Is there anyway to alter the layout and format of the print i.e rotate the text to print top to bottom ..
Thanks in advance.
how do i list files in a directory, sorted by date ?
i have a directory of completed order files, which need to be displayed in order of completed date (i.e when the file is created).
Thanks in advance.
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.