I use FedEx's online shipping web site via Internet Explorer to print FedEx shipping labels. But, the FedEx site only allows printing to a LTP1 or COM port, and I have a USB printer. I can use their shipping software to print the the USB port, but the online version is much easier to use.
Is there a way to create a pseudo printer port so that I can "fool" Windows into sending the print command to the LPT1 port, and instead...
User Profile
Collapse
-
Fooling Windows to use LPT1 port for a USB printer
-
widevision7 started a topic Checkbox - show <div> when checked, or perform <meta refresh> if not checkedin JavascriptCheckbox - show <div> when checked, or perform <meta refresh> if not checked
I have a web page that uses the following JavaScript to hide a <div> unless the checkbox is checked:
[CODE=javascript]<script type="text/javascript">
function showMe (it, box) {
var vis = (box.checked) ? "block" : "none\
document.getEle mentById(it).st yle.display = vis;
}
[/CODE]
I need to have it where if the box is not checked with 10 seconds, then a <meta... -
The cookie worked great!!!
You are a genius.
Thanks - Tony -
-
Thanks for the cookie example - I will give that a try.... TonyLeave a comment:
-
So in my meta refresh tag, how do I reference the variable url?
[HTML] <meta http-equiv="refresh" content="2;url= +url+"> ??[/HTML]
Or like this?
[CODE=javascript]<script type="text/javascript">
var name = "www.mysite.com "
document.write( name)
document.write( "<meta http-equiv="refresh" content="2;url= +name+">)...Leave a comment:
-
I know how to do the meta refresh tag, but I need to pass the variable of the referral URL to the second web page.
For example - they start at www.chevy.com. They click on a link that takes them to a registration page. They fill out the registration information, and click "submit". Then they are taken to a "thank-you" page, where I redirect them after 10 seconds to their original web page of www.chevy.com....Leave a comment:
-
I have already tried adding the checked tag, as in:
<input type="checkbox" name="multi_not e" value="Yes" onclick="showMe ('div1', this)" checked>
and when I load the page, it shows that the checkbox is checked, but the <div1> is hidden. I need for the checkbox to be checked and for the <div1> to be visible.
When they uncheck the checkbox, then the...Leave a comment:
-
Passing the referral URL between web pages via JavaScript
I have a web site where people are directed via links from 12 different web sites.
For example, if the user was on www.chevy.com, and they clicked on a link to win a trip to an awards show, they would then be sent to my web site to register. After they fill out their information, they press submit, and are taken to the thank-you web page. After 10 seconds they get redirected back to www.chevy.com.
Is there a way to... -
JavaScript to hide a <div> via checkbox that is already checked
I have a web site that uses the following JavaScript to hide <div> sections:
[CODE=javascript]<script type="text/javascript">
function showMe (it, box) {
var vis = (box.checked) ? "block" : "none";
document.getEle mentById(it).st yle.display = vis;
}
</script>
[/CODE]
I have a checkbox to hide the <div> when checked:
... -
This is a really great suggestion - and one that is so easy - I can't believe I didn't think of it... I guess that happens after sitting at a computer for 14 hours...
Thanks!Leave a comment:
-
Reading lines from a file and printing variable values
I am creating a web site where I want to have the same menu on each page.
I created a "menu file", and put the html print statements in the file. The menu file contains html code:
<table>
<tr>
<td>
<a href=get_plans_ summary.pl?Invo ice=$FORM{Invoi ce}</a>
</td>
</tr>
</table>
Inside of my perl script, I print... -
I am an idiot.
I was using this code (that I had used earlier):
@files = glob("*import") ;
@files = sort { $b <=> $a } @files;
when I decided to change the word "files" to directory - and so I did this:
@directory = glob("*import") ;
@directory = sort { $b <=> $a } @files;
As you can see, I did not change the third "@files"...Leave a comment:
-
My problem was that I wasn't putting this in the script to tell the browser to expect html...
print "Content-type: text/html\n\n<html>" ;
Thanks.Leave a comment:
-
Change to previous directory with glob
I have a script where I am using glob to get a list of folders that end in "*import", but I am trying to change my directory to the previous one.
Here is what I have:
@directories = glob("*import") ;
@directories = sort { $b <=> $a } @files;
I can't figure out how to make glob go back one directory. I am looking for something similiar to the Unix "cd .." command.... -
I understand that I need to use the CGI module, but what I am looking to do is to create a hyperlink that executes a Perl script.
Currently, if I have a hyperlink like this:
<a href=get_invoic e.pl>Get Invoice</a>
the output is nothing but the Perl script as text. The script doesn't get executed.
ThanksLeave a comment:
-
Thanks for the tips.
I am doing this for a client who is a licensed insurance/promotions company. I actually won't be the one giving the car away - it will be General Motors...
Thanks.Leave a comment:
-
Passing variable in a hyperlink to a Perl script
I am creating a web site where I want to have a hyperlink that executes a Perl script. At the same time, I want to pass along a variable inside of the hyperlink that the Perl script can use when it executes.
I don't want to use a form unless it is necessary.
The hyperlink might look like this:
<a href=get_info.p l?variable="chi cken">I like fried chicken</a>
So, when... -
Using Perl and encryption to validate a form entry
I have a web site that I need to build for a contest.
A person goes to the web site, and enters a two-digit number six times - as in a safe combination. Example - 25-98-46-73-88-02
They would then hit submit, and the Perl script would check their guess against the real combination. If it matches, then they are a winner (they will win a car).
I can create a script to check the submission, but I don't...
No activity results to display
Show More
Leave a comment: