473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with OnClick used in Anchor and SSL

(My 4 questins at end after explination) The code below was provided to me
to "Popup" a window explaining what a Credit Card Verification Number is and
where to find it on a card... it is used as people enter their credit card
info on an ecommerce site. This is the first such site (Shopping Cart) I
have done and this code was provded by a user of the standard ASP Shopping
Cart software (CandyPress shopping cart.)

It works, but I don't think it is good code... but I haven't done ASP in a
long tme.

==========HERE IS THE CODE (FORMATTED FOR EASY READING)============

<a href="<%=urlNonSSL%>Card_Verif_Examp.htm" TITLE="What is Card
Verification Number?"

onClick='window.open("<%=urlNonSSL%>Card_Verif_Exa mp.htm",
"cardverification",
"width=550,
height=610,
resizable=1,
scrollbars=1")

;return false;' target="_blank"> What is Card Verification Number? </a>
========== EASY READING FORMATTED CODE ENDS ========================

========== CODE STARTS - Exactly as it appears in program =====
<a href="<%=urlNonSSL%>Card_Verif_Examp.htm" TITLE="What is Card
Verification Number?"
onClick='window.open("<%=urlNonSSL%>Card_Verif_Exa mp.htm","cardverification"
,"width=550,height=610,resizable=1,scrollbars=1"); return false;'
target="_blank">What is Card Verification Number?</a>

========= CODE ENDS ==================================

QUESTION 1: The code seems redundant to me with the reference to
"Card_Verif_Examp.htm" appearing twice.
QUESTION 2: What is the... TITLE="Bla Bla" part? I'm not familar with that
tag in an Anchor Link.
QUESTION 3: Is there a more simple way to create this code?
QUESTION 4: What is the "cardverification" paramater right after the
onClick='window.open("<%=urlNonSSL%>Card_Verif_Exa mp.htm", ???

thanks for any help on this - Will
Jul 22 '05 #1
1 1571

"Will" <ws*******@netpv.com> wrote in message
news:8T*******************@tornado.tampabay.rr.com ...

QUESTION 1: The code seems redundant to me with the reference to
"Card_Verif_Examp.htm" appearing twice.
You could put in a variable if you like. ?
QUESTION 2: What is the... TITLE="Bla Bla" part? I'm not familar with that
tag in an Anchor Link.
Think of it kinda like an alt-tag or a tool-tip.
QUESTION 3: Is there a more simple way to create this code?
Perhaps, but it's client-side code, so you'd be better off inquiring in a
client-side group, such as m.p.scripting.jscript.
QUESTION 4: What is the "cardverification" paramater right after the
onClick='window.open("<%=urlNonSSL%>Card_Verif_Exa mp.htm", ???


It's an ASP variable, which I imagine is supposed to return a full URL
prefixed with http as opposed to https.

Ray at work
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7615
by: Christian Kusenbach | last post by:
Hello group! I've a problem with JavaScript and IMG-Objects. On my webpage I use a big image and several small images. If you click on a small image, it executes a JavaScript to change the...
1
1993
by: Julius Mong | last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a> execute some Javascript onclick: ...
2
2210
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of...
2
1635
by: Will | last post by:
(My 4 questins at end after explination) The code below was provided to me to "Popup" a window explaining what a Credit Card Verification Number is and where to find it on a card... it is used as...
4
16413
by: Jerry Sievers | last post by:
JS Programmers, "I'm a server-side coder PHP, Postgres etc... My question; Given the following anchor <a href="http://www.somesite.com/somefile.html">link text</a> Is there a way to code an...
8
4782
by: knoxautoguy | last post by:
This problem has consumed a lot of my time, and I'm aftraid someone will tell me that my whole approach to this objective is wrong; however, I would like to know if there is a way to do this. I...
9
3218
by: monomaniac21 | last post by:
hi all i want to use hyperlinks to 'load' content by changing the display of div tags. the problem i have is that unless i specify a href the anchor does not change the mouse pointer on hover...
4
7196
by: pbd22 | last post by:
Hi. I am trying to add an "onclick" 'event to an anchor tag and this is proving harder than I imagined. The anchor HAS NO ID. And, there will be tons of them on the page. So, I cannot access...
1
1239
jenkinsloveschicken
by: jenkinsloveschicken | last post by:
I am needing help passing a GET variable to a receiving php page. This html page does not contain an forms for submission(POST/GET methods). First I need to parse the URL string using...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.