Need help with OnClick used in Anchor and SSL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Will

    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


  • Ray Costanzo [MVP]

    #2
    Re: Need help with OnClick used in Anchor and SSL


    "Will" <wstandley@netp v.com> wrote in message
    news:8T4md.2418 6$6w6.12776@tor nado.tampabay.r r.com...[color=blue]
    >
    > QUESTION 1: The code seems redundant to me with the reference to
    > "Card_Verif_Exa mp.htm" appearing twice.[/color]

    You could put in a variable if you like. ?
    [color=blue]
    > QUESTION 2: What is the... TITLE="Bla Bla" part? I'm not familar with that
    > tag in an Anchor Link.[/color]

    Think of it kinda like an alt-tag or a tool-tip.
    [color=blue]
    > QUESTION 3: Is there a more simple way to create this code?[/color]

    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.
    [color=blue]
    > QUESTION 4: What is the "cardverificati on" paramater right after the
    > onClick='window .open("<%=urlNo nSSL%>Card_Veri f_Examp.htm", ???[/color]

    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


    Comment

    Working...