MyClub iFrame Patch


If you are planning to use myClub in an iFrame on your existing web site, there is an issue with this in Safari on a Mac. All other browsers should work fine without issues.

To fix this issue, the code below should be copied into your existing web site join.php page. This code is appending a hidden iframe and auto-posting to a page on our site where we start a session, then when the user links from your join page to ours, the session will already bet set and Safari will use the existing session.

The first line of the code adds a reference to the jQuery library from Google’s CDN so if you already have jQuery embedded in your page you can skip it.

  1. <script src="" type="text/javascript"></script> <script type="text/javascript">
  2. var MOSO = MOSO || {};
  3. MOSO.isSafari = (/Safari/.test(navigator.userAgent));
  4. MOSO.firstTimeSession = 0;
  6. MOSO.SubmitSessionForm = function() {
  7. if (MOSO.firstTimeSession == 0) {
  8. MOSO.firstTimeSession = 1;
  9. $("#moso_sessionform").submit();
  10. }
  11. }
  13. $(document).ready(function() {
  14. if (MOSO.isSafari) {
  15. $("body").append('<iframe id="moso_sessionframe" name="moso_sessionframe" onload="MOSO.SubmitSessionForm()" src="https://{yoursitename}" style="display:none;"></iframe><form id="moso_sessionform" enctype="application/x-www-form-urlencoded" action="https://{yoursitename}" target="moso_sessionframe" method="post"></form>');
  16. }
  17. });
  18. </script>


Home Page
My Account
Join Now

Free Trial
About Us

Mobile Home
myClub Home Page
myClub Navigation Tools