The script should be placed in a page where you want to print from. If it is a checkout page - it should be there, and some "Print order" button should activate it:
<input type="button" value="print order" onclick="writeCheckout()">
The script should be...
I'm afraid that none of the above posts are completely correct.
This is the right way in most general case:
<form ... onSubmit="return validateFunction()">
. . .
<input type=submit>
</form>
No buttons: type=submit should do this.
Also, no any event handlers should be called on...
Yes of course. Just do the same as for "normal" page - extract the data from cookie and write it to a new window using method I described, but without any graphics.
You have to add CSS classes to your links, this will make them look the same regardless where they are placed:
a.one:link { }
a.one:hover { }
a.one:visited { }
a.one:active { }
a.two:link { }
a.two:hover { }
a.two:visited { }
a.two:active { }
. . .
<a href=... class="one">
...
You can do it by opening popup window and writing there the checkout data. The idea is this:
function writeCheckout(data) {
a = window.open("","","width=200,height=200,toolbar=no,....")
a.document.open();
a.document.write("<html><head></head><body...
Do there anything you want. You wanted to pass a value to the function? You did it. Then do with it whatever you need:
function getvalue(the_value) {
//example, in case it's numeric:
if (the_value > 20)
{
// do something
}
//example, in case it's literal:
if (the_value != "some...
crazyboy, in order to make page with javascript that is compatible with other browsers, yuo don't need to detect every browser and give them different scripts. That's a bad way to go.
Write scripts that will be supported by all browsers and will execute well in all of them - that's how it...
This is what you need I think:
function openPhoto(img, w, h) {
var windowprops = "location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no" + ",left=300,top=100" + ",width=" + w + ",height=" + h + ";"
a =...
I don't understand you.
You did it already - just looked at your first post. You checked that range for several form fields, and not all of them.
In general, this is what you need to do:
<form ... onsubmit="checkIt(this.txt1)">
...
<input type=text name="txt1">
...
This...
If you had paid attention to my post, you could see this.
You had it already:
function CheckValue(a,upper,lower)
You should call it like this:
... onClick="CheckValue(document.myForm.field1.value, document.myForm.field2.value, document.myForm.field3.value)"
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.