473,714 Members | 3,850 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 1582

"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
7633
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 properly. I click on the image and the big image turns white. Now I have to
1
2013
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 href="#" onclick="myScriptWhichModifiesSVG()">The problem is that JavaScript responds to the onclick...
2
2219
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 then submits the form.
2
1650
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 of the standard ASP Shopping Cart software (CandyPress shopping cart.) It works, but I don't...
4
16422
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
4808
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 without frames. I also have anchors so that users can click on a letter of the alphabet to jump...
9
3227
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, which i dont want. how can i get the anchor to look like a proper link where the users pointer...
4
7208
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
1258
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> menu. Is this possible? I have tried: <SCRIPT LANGUAGE="text/javascript">
0
8808
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9316
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9077
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9023
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6638
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5959
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4466
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4729
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2113
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.