WearYourBeer Posted November 26, 2004 Posted November 26, 2004 Hi, I installed the Consolidated Authorize.net cont and it includes a new checkout page with the ability to enter a CVV number. next to that it says, What is that? If you click on that, a pop up window comes up with the image of the cvv. it works with internet explorer, but when i try with mozilla, nothing comes up. When I click on Javascript console, I see this error: Error: CVVPopUpWindow Not Defined Source File: java script:CVVPopUpWindow("http://wearyourbeer.com/catalog/cvv.html") line 1 The code in cvv.html is: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>CVV Number Examples</title> </head> <body> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="569" id="AutoNumber1" height="223"> <tr> <td><img border="0" src="images/cvv.jpg" width="569" height="223"></td> </tr> </table> </body> </html> It is called up at checkout_payment.php at: <script language="javascript" type="text/javascript">!-- /******************************** * Addition for Authorize.net Consolidated * by Austin519 - CVV PopUp Window * If using a custom checkout_payment.php * paste the following lines into your file ********************************/ function CVVPopUpWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,lef t=150') } Any ideas how i can overcome this? If you would like to see for yourself, go to www.WearYourBeer.com and get to the checkout_payment page. Do not actually check out as this is a live site! Any help will be much much appreciated! Roy
gscreations Posted November 26, 2004 Posted November 26, 2004 In your cvv.html you have: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>CVV Number Examples</title> </head> <body> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="569" id="AutoNumber1" height="223"> <tr> <td><img border="0" src="images/cvv.jpg" width="569" height="223"></td> </tr> </table> </body> </html> two <body> tags????
WearYourBeer Posted November 26, 2004 Author Posted November 26, 2004 In your cvv.html you have: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>CVV Number Examples</title> </head> <body> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="569" id="AutoNumber1" height="223"> <tr> <td><img border="0" src="images/cvv.jpg" width="569" height="223"></td> </tr> </table> </body> </html> two <body> tags???? <{POST_SNAPBACK}> I do not know, thats the way the contribution came! I will try to take one out.
WearYourBeer Posted November 26, 2004 Author Posted November 26, 2004 Still the same error after I took out the body tag :<
Misteraven Posted December 7, 2004 Posted December 7, 2004 ditto, same error here. any javascript people on here that can lend a hand?
Misteraven Posted December 7, 2004 Posted December 7, 2004 figured it out... there's a missing '<' in the function code. it should be: <script language="javascript" type="text/javascript"> <!-- /******************************** * ?Addition for Authorize.net Consolidated * ?by Austin519 - CVV PopUp Window * ?If using a custom checkout_payment.php * ?paste the following lines into your file ********************************/ function CVVPopUpWindow(url) { window.open(url,'popupWindow',& #39;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,le ft=150') } //--> </script> works fine for me now.
Misteraven Posted December 7, 2004 Posted December 7, 2004 also, the name of the image used in cvv.html is incorrect. you'll either need to correct it in this file or change the name of the image to match what it's requesting. both seem are really simple mistakes considering how complex all the rest of the code it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.