![]() |
Pop up for CVV2 definition - need help
I am trying to make a popup page that describes where to find the CVV2 code on one's credit card. However, I'm having trouble because I can't put the <script></script> html in the page header without the template deleting itself.
Can anyone suggest a way to create a simple popup page? I'm using the latest version 3.5.x Thanks! |
Enclose them in {literal} tags.. such as:
Code:
{literal} |
I tried that but it still didn't work. Probably because I suck at writing javascript. I'll keep trying.
Thanks! |
How would you just add the text to the page. without it being any kind of popup?
I'd be happy if it was just noted below the field. |
thanks!
I just ended up adding a page describing where to find the CVV2 that opens in a new window. |
Ah...an easy one. All curly braces in your script must be enclosed in smarty {literal} tags to keep smarty from mistaking the javascript braces as smarty template tags. I usually just enclose the whole script in literal tags unless I need to substitute smarty variables into the actual javascript. So it would look like this in your template.
Code:
{literal} or you could put the exact same syntax from the above href into an onClick event for a button or whatever. |
All times are GMT -8. The time now is 11:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.