473,569 Members | 2,402 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="<%=urlNon SSL%>Card_Verif _Examp.htm" TITLE="What is Card
Verification Number?"

onClick='window .open("<%=urlNo nSSL%>Card_Veri f_Examp.htm",
"cardverificati on",
"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="<%=urlNon SSL%>Card_Verif _Examp.htm" TITLE="What is Card
Verification Number?"
onClick='window .open("<%=urlNo nSSL%>Card_Veri f_Examp.htm","c ardverification "
,"width=550,hei ght=610,resizab le=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_Exa mp.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 "cardverificati on" paramater right after the
onClick='window .open("<%=urlNo nSSL%>Card_Veri f_Examp.htm", ???

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

"Will" <ws*******@netp v.com> wrote in message
news:8T******** ***********@tor nado.tampabay.r r.com...

QUESTION 1: The code seems redundant to me with the reference to
"Card_Verif_Exa mp.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.j script.
QUESTION 4: What is the "cardverificati on" paramater right after the
onClick='window .open("<%=urlNo nSSL%>Card_Veri f_Examp.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
7622
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 source of the big image to the source of the small image. It's working fine, but on some browsers (I use IE 6.0.2800.1106) the image doesn't change...
1
2001
by: Julius Mong | last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a> execute some Javascript onclick: http://www.google.co.uk/search?q=cache:OPDjMJfL50sJ:www.adobe.com/svg/indepth/pdfs/ReadMewin.pdf+adobe+svg+javascript+problem&hl=en&ie=UTF-8#5 4. Due to design limitations of Netscape, avoid using HTML with the following form: <a...
2
2212
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 hitting of the enter key was to simply not have a submit button, instead going for a regular anchor which calls a javascript confirmation box and...
2
1638
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 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...
4
16417
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 onClick event to call a script and pass the href URL and link text? That is; We'd like to put an identical piece of JS code into each
8
4787
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 have a web page divided into two major segments, with the top segment fixed and the bottom segment allowed to scroll, thus giving the look of frames...
9
3220
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 even if display is set to block. it only look changes when there is a href there. but if i have a href there then when i click it will load the page,...
4
7201
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 it via FindControl. the tag is nested as such:
1
1248
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 location.search so the result will only contain the GET variable in question. From here I need to append this information to an anchor that is part of a <li>...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.