Copy link to clipboard
Copied
I have a jquery function on a payment page to toggle between two different web forms (pay by check and pay by credit card).
It works great on the non-secure page...
Marin Girls Chorus | Payment for New Singer
But does not work on the secure page...
Marin Girls Chorus | Payment for New Singer
Any ideas what is happening here?
...and then you'd probably need to add ;return false;
to the JS to prevent the link jumping to the top of the page. So:
<a id="myHeader" href="#" onclick="showonlyone('newboxes1');return false;">
Copy link to clipboard
Copied
Your second validation script is referencing the non-secure domain:
<script type="text/javascript" src="http://www.marinchorus.org/CatalystScripts/ValidationFunctions.js?vs=b1884.r475844-phase1"></script>
You need to make it:
<script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js?vs=b1884.r475844-phase1"></script>
Copy link to clipboard
Copied
Hey Adam
Thanks for the help... I can always count on you.
I've changed the validation script and its still not working. Did I miss something?
BC support showed me this...
(Thu, 11/26/2015, 07:00:22 am)
Hmm, when I go to secure URL and click on the button it changes the URL:http://prntscr.com/970hbx
(Thu, 11/26/2015, 07:00:57 am)
Where as where it is working, it does not append site's URL to the jquery call:http://prntscr.com/970hiv
Copy link to clipboard
Copied
Looks like you fixed it as the page is shows as valid for me when I look at it. That correct?
Copy link to clipboard
Copied
Ok, I think it's something to do with BC automatically adding the default domain to the link as it's trying to complete it.
Try moving your inline javascript out of the HREF and into an ONCLICK like:
<a id="myHeader" href="#" onclick="showonlyone('newboxes1');">
Copy link to clipboard
Copied
...and then you'd probably need to add ;return false;
to the JS to prevent the link jumping to the top of the page. So:
<a id="myHeader" href="#" onclick="showonlyone('newboxes1');return false;">
Copy link to clipboard
Copied
Yeah! That worked. What a relief. Thanks so much for your help. Happy Thanksgiving...