• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

jquery not rendering on secure page

Explorer ,
Nov 25, 2015 Nov 25, 2015

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?

Views

371

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Nov 26, 2015 Nov 26, 2015

...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;">

Votes

Translate

Translate
Engaged ,
Nov 25, 2015 Nov 25, 2015

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 25, 2015 Nov 25, 2015

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2015 Nov 26, 2015

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 26, 2015 Nov 26, 2015

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');">



Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 26, 2015 Nov 26, 2015

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;">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 26, 2015 Nov 26, 2015

Copy link to clipboard

Copied

LATEST

Yeah!  That worked. What a relief. Thanks so much for your help. Happy Thanksgiving...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines