211655 Posted April 22, 2004 Posted April 22, 2004 i cannot have my cvv.html popup window to work and it gives me error in bottom. array('title' => 'CVV number ' . ' ' .'<a href="javascript:CVVPopUpWindow(\'' . tep_href_link('cvv.html') . '\')">' . '<u><i>' . '(' . MODULE_PAYMENT_AUTHORIZENET_TEXT_CVV_LINK . ')' . '</i></u></a>', 'field' => tep_draw_input_field('cvv','',"SIZE=4, MAXLENGTH=4")))); return $selection; please help. 211655 SEO Optimization Export Orders into CSV file
bluepony Posted April 22, 2004 Posted April 22, 2004 gives me error in bottom What's the error? I'd rather be flying!
211655 Posted April 22, 2004 Author Posted April 22, 2004 hi thanks fo rreply. i cannot copy the error as it cannot be. let me tell y what it is. when javascript is not working on a page. or page has some problems. it tells in bottom left of internet expl. "error on page" when i double click, i get another window (d-click on that text on ie) "problem with webpage might prevent it from viewing......" in details it tells object required on line 1. this line one chnages each time i load the page. sometime to line 410 or 387, etc....... i hope this help. i am guessing its javascript. i had same problem with click to enlarge. i am using sts and then i put this code in my head of sts_template.html <script language="javascript"> function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=150,height=150,screenX=150,screenY=150,top=150,le ft=150') } </script> click to enlarge works like a charm as well as some other.... help? 211655 SEO Optimization Export Orders into CSV file
bluepony Posted April 22, 2004 Posted April 22, 2004 This is looking for "CVVPopUpWindow", but your JavaScript function is named just "popupWindow". The names need to be the same. I'd rather be flying!
211655 Posted April 22, 2004 Author Posted April 22, 2004 thanks henry: now its : array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('authorizenet_cc_number')), array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('authorizenet_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('authorizenet_cc_expires_year', $expires_year)), array('title' => 'CVV number ' . ' ' .'<a href="javascript:PopUpWindow(\'' . tep_href_link('cvv.html') . '\')">' . '<u><i>' . '(' . MODULE_PAYMENT_AUTHORIZENET_TEXT_CVV_LINK . ')' . '</i></u></a>', 'field' => tep_draw_input_field('cvv','',"SIZE=4, MAXLENGTH=4")))); return $selection; its still doesnt work.....is there a better way to rewrite that javascript line? 211655 SEO Optimization Export Orders into CSV file
bluepony Posted April 22, 2004 Posted April 22, 2004 JavaScript is a strongly typed language, meaning "PopUpWindow" and "popupWindow" are seen as two different functions, i.e. case-sensitive. You need to change your function call to match the function name: "popupWindow" (in the exact same case). I'd rather be flying!
211655 Posted April 22, 2004 Author Posted April 22, 2004 thanks henry...works like a charm. btw. i still get that object required error in left bottom of ie. any clue? i can pm u the link if want. 211655 SEO Optimization Export Orders into CSV file
Recommended Posts
Archived
This topic is now archived and is closed to further replies.