Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Search the Community

Showing results for tags 'ajax'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Forum
    • News and Announcements
    • Getting Started With Squarespace
    • Coding and Customization
    • Commerce
    • Selling & Scheduling Your Services
    • Feedback on Your Site
    • Images and Videos
    • Pages and Content
    • SEO and Marketing
    • Site Design and Styles
  • Colorado Designers's Topics
  • Squarespace Forum Club Guidelines's Topics
  • Austin, TX Designers's Club Discussion
  • New York City Designers's Club Discussion
  • Berlin Designers's Club Discussion
  • SEO Experts's Club Discussion
  • Photographers's Club Discussion
  • Graphic Designers's Topics
  • London Designers's Topics
  • Podcasters's Club Discussion
  • Custom Coding Help's Club Discussion
  • Atlanta, GA Designers's Topics
  • Seattle, WA Designers's Topics
  • San Diego, CA Designers's Topics
  • Dallas, TX Designers's Topics
  • Australia Designers's Club Discussion
  • Minnesota Designers's Topics
  • Minnesota Designers's Topics
  • Copywriters's Topics
  • France Designers 🇫🇷's Topics
  • France Designers 🇫🇷's Topics
  • Portland, OR Designers's Topics
  • Canadian Website Designers's Club Discussion
  • Los Angeles Designers & Devs's Club Discussion
  • South African Designers's Club Discussion
  • Brazil Designers's Club Discussion
  • Developers's Club Discussion
  • German Circle Members's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Location


Badges


Expert ID

  1. Hi, I am using this tutorial for toggle. https://www.spacetutorials.com/toggle-button-for-content Nothing happens when I switch between buttons i.e. "section 1" shows on page load and on clicking both buttons (section 2 should appear when the right button is clicked). Also I see a bottom scroll (left-right) now. How to fix and make toggle work?
  2. Site URL: https://locqar1.squarespace.com/order I want to post my form data to an external API, but Im unable to override the default submit. I tried using a jquery listener for the submit button but it didn't trigger. Does anyone have any help? IF you need to access the site, the password is 123456
  3. I've added jquery to my site, and I'm trying to override the form submission to post the form to an external api via Ajax but I'm not having any luck. I tried adding a listener to the submit but but it didn't trigger. $('input[type="submit"').on( "click", function() { alert("Button triggered"); }); Can anyone help out? Thanks.
  4. Site URL: https://mommytomom.com/ Hi everyone. I would like to enable Ajax loading on my site but it doesn't work with my social sharing buttons and code I use on a few pages. I am not very knowledgeable with coding so I wanted to ask here if there is anything I can do. Is there a code you can add that makes the page refresh each time? I disabled Ajax for now but can turn it back on to troubleshoot if needed. The social buttons I'm referring to are through Shareaholic, they only show up if you refresh the page. Thanks in advance for any help :) Code injection <!-- BEGIN SHAREAHOLIC CODE --> <link rel="preload" href="https://cdn.shareaholic.net/assets/pub/shareaholic.js" as="script" /> <meta name="shareaholic:site_id" content="73ca7139ab230a40546bce24cbe1c713" /> <script data-cfasync="false" async src="https://cdn.shareaholic.net/assets/pub/shareaholic.js"></script> <!-- END SHAREAHOLIC CODE --> The other code I'm referring to I only have on my secondary navigation pages that I want to look like landing pages. It removes the header and footer. https://mommytomom.com/want-to-work-from-home Pages settings, advanced <style> .Header, .Footer, .Mobile-bar, .Mobile-bar--top, .sqs-announcement-bar-custom-location{ display:none !important; } </style>
  5. Hello! (First Time Here) I'm running into issues with a javascript not loading in a code block for a video player I am trying to implement. The scripts work and load on a local implementation and on a non-squarespace hosted implementation. Here is the code in question: <meta charset="UTF-8"> <html> <head> <script src="https://www.mysite.xyz/vendome/js/jquery-3.1.0.min.js"></script> <script src="https://www.mysite.xyz/vendome/js/jquery.cookie.js"></script> <script src="https://www.mysite.xyz/vendome/webrtc.js"></script> </head> <body> <div class="div-section"> <table> <tr> <td><input type="hidden" id="sdpURL" size="50" value=""/></td></tr> <tr> <td><input type="hidden" id="applicationName" size="25" value=""/></td></tr> <tr> <td><input type="hidden" id="streamName" size="25" value=""/></td></tr> <tr> </table> </div> <div class="div-section"> <video id="remoteVideo" autoplay playsinline controls muted style="width:1000px;"></video> </div> <td><input type="button" id="buttonGo" onclick="start()" value="" /></td> <input type="button" id="buttonCheckStream" onclick="getAvailableStreams()" value="Get Available Streams" /> <script type="text/javascript"> pageReady(); </script> <div> <span id="sdpDataTag"></span> </div> </body> </html> jquery.cookie.js will not load causing the next scripts to not function. When you load the page we get "Uncaught TypeError: $.cookie is not a function". I'm fairly certain that the jquery scripts aren't loading twice and over writing eachother like other posts have suggested. I've tried renaming the the cookie.js as well but no luck. Could this have something to do with AJAX? Is there anything we could do to force the scripts to load? Any advice is appreciated! (Excuse the bad HTML, I'm from a python background.) EDIT: The template is AJAX compatible and the option is enabled.
  6. Hi, Am using contact form on Squarespace. After form submission gets all values in a javascript file. Tried below ways: POST-SUBMIT REDIRECT -> http://rpadmanaban-dev.apptivo.net/create.js This field did not accept the script file Another Way: Code injection fields ->this script called the form reload functionality. I need after submission called the script file
  7. Site URL: http://adamcale.co.uk Hello, I had a few pages on my site where the footer was floating as the content didn't fill the page (past/present/future pages). I added the following code to these pages to fix the footer to the bottom. <style> #footer { position: fixed; bottom: 0; left: 0; right: 0; } </style> Whilst this works in the Squaraspace builder it doesn't work on the live site because of ajax loading. Is there any way to override ajax for just these pages? Or is there a better piece of code i can use across the whole site? If i use the current code for the whole site then the footer locks to the bottom of the window and sits on top of my content rather than below it - which i don't want. Any help would be much appreciated, Thanks Disclaimer: my coding knowledge only goes as far as google > copy > paste.
  8. Site URL: https://www.onlinekarma.ch/ It would be great if you could enable Ajax Loading (asynchronous JavaScript and XML) aka. Lazy Loading for the Bedford Template. Are there plans to implement this? It would help for page-speed and thus SEO. Thank you.
  9. Site URL: https://www.sculptedbybee.com/ I have installed a sentry log in widget that is functional to a point, however it does not disappear after logging you in nor does it land you on the correct page. I have to manually close the log in box and choose the member page. My squarespace template does not have a disable ajax option, is there a workaround?
  10. Hi, as many of you I am using 3rd party code (Typeform for my site) I had some issues with code not loading when navigating internally in the menu to the page where the code was supposed to load. It was working well with reloading the page, but not an acceptable solution ! - There were some tips including disabling ajax (which is the repsonsible) but with major drawbacks regarding sitespeed - i found a great solution here : https://read.compassofdesign.com/typeform-squarespace-2e08bdf05113 Thanks Juliane Bone and Compass of design Which is very simple : move the page with code to unlinked section Set up a link in the main nav and link it to full url : not /codepage but https://yoursite.com/codepage Works great !
  11. Site URL: https://www.websimpelsnel.nl/workshop-opgeven Hello people, Could you please explain what are the long term consequences of disabling ajax loading? Thanks in advance. I just disabled ajax loading to prevent the problem mentioned here: My eventbrite embed code didn't load (only after refreshing the page), just like the post below. I've found the solution in the post: this link https://sf.digital/squarespace-solutions/why-doesnt-my-code-work-until-i-refresh-the-page
  12. Hi, I am trying to understand if we can create a plugin for Squarespace (like a WordPress plugin) and how / where to get started. Background: We are currently injecting our JavaScript library in the head of Squarespace sites to enable our product presentation function on pages. Our plugin function currently looks for specific html on a single root slug e.g. mysite.com/product/ and then, based on the query passed, gets and then loads content (ajax) on to a product page and updates the URL like this: mysite.com/product/?product_id=...... Problem: However, when done like this, the underlying page 'meta' and 'og' tags all remain the same - so we get no SEO benefits at all as the content is all loaded with JavaScript after the page is seen by a browser (and sharing is a problem too). Goal: We want to create a more sophisticated general Plugin that would do the same BUT, based on the query string also controls the generation of a page including setting the page headers ('meta' and og tags based on the product) etc - before the page is output. We have created such a plugin for WordPress - and we have a PHP Class that does this with PHP - and so we are comfortable with coding etc. Question: I am trying to find out how to do this with Squarespace. Can anyone confirm that this can be done? .. and also recommend a specific resource / article etc that explains generally how this can be created for Squarespace - and perhaps a road map for development? We just want a road to head down - but so far I have been unable to find any resources or guidance on where to start. thank you!
  13. Hi community, I'm using the Burke Template from the Brine family and have a fullscreen video background on my landing page. It works on computers and it used to work on mobile phones as well. Today I changed two small things in the site-stlye: 1. I changed the color of the mobile bar, 2. I activated ajax loading. After these changes were saved, I reloaded the mobile page and the video background was gone. I suspected ajax loading to be the reason so I deactivated it again, but the video background still doesn't show anymore. Any hints on this? Thanks, Leander
  14. Hi I have created one page and i am sending data to my other site through third party api url on jquery click event , but when i am submitting form my api is not calling. It's sometime work and sometime not work. Can you please tell me is anything blocking squarespace ? I have put my code inside Page Settings -> Advanced. E.x $(document).on('click', 'target', function () { // ajax code here })
  15. On a “York” template [index] page, I use jQuery {Header Code Injection} to modify the URL of a [Page] link on that [index], allowing me to effectively add a [Link] to an [index] with a photo background that is displayed with the rest of the content on the [index]. The code works fine when the [index] loads or is hard-refreshed by the browser. It does not work after Ajax is used to soft-refresh only the [index] page content and not the <head>, <footer>, or other surrounding elements. This happens consistently when users navigate around the site. Squarespace notes this Ajax usage in the “York” template docs, specifying it cannot be removed. (See: https://support.squarespace.com/hc/en-us/articles/218212297-York-structure-and-style#toc-page-loading) My question: How do you detect an [index] Ajax reload in Squarespace and subsequently re-run {Header/Footer Code Injection} using jQuery (or an alternate method)? For clarity when talking about traditional web and Squarespace features simultaneously: “Squarespace proper names " [ Squarespace page types ] { Squarespace settings } < Standard HTML >
  16. When javascript has been added to a newer template, it doesn't always work until the page/site is refreshed. Why?
×
×
  • Create New...