"Big Cartel - Effortless File Upload and Geolocation with JQuery

Check out my site here:

I've been experimenting with images on my product pages and even created a test page.

I have a few questions that I can't seem to figure out:

  1. Where should I host a jquery file?
  2. Do I need to include the jquery src for both jquery.min.js (many use the one hosted by google) and jquery.elevatezoom.js?
  3. If I decide not to use the zoom feature, is there still a way to have a large image with small thumbnails below it? Maybe clicking on the big image could open a full-screen version.
  4. Should all my pictures be the same size? Currently, I have square and rectangle format photos which might not look great together.
  5. Do I insert code into CSS or just on the specific page where I want the images displayed?
  6. Will the images I add using jquery replace the ones uploaded through Big Cartel's system?
  7. There is already a jquery entry in the layout...do I simply add additional src at the end of this section?

In the layout, I added this:

<script src="http://s000.tinyupload.com/index.php?file_id=24823496361920795072" type="text/javascript"></script>

On my test page, I have:

<img id="zoom_01" src="http://i.imgur.com/1L86Fcms.jpg" data-zoom-image="http://i.imgur.com/1L86Fcm.jpg"/>
$("#img_01").elevateZoom();
<head><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script></head>
<img id="product_zoom" src="http://i.imgur.com/1L86Fcms.jpg" data-zoom-image="http://i.imgur.com/1L86Fcm.jpg" class="fade_in">

Thank you for all your help! I may have bitten off more than I can chew as I delve into this world beyond my basic HTML skills. I was just trying to experiment and see if I liked it, but it turned into a whole new challenge.

If you're interested, here's where I found some information on jquery: Can I integrate an Internal zoom on my products in my big cartel store?

Answer №1

To ensure optimal performance, it is recommended to host your javascript files on a server that you have control over. However, if you do not have access to webspace, services like Dropbox or Google Drive can be used for hosting files with ease.

It is worth noting that the Luna theme already loads jQuery in the <head> section of your Layout, so there is no need to include the script again. Attempting to do so may result in errors being displayed in your browser's javascript console.

If you are utilizing a separate image zooming library with custom CSS, consider hosting your CSS file on a different server. When including files in the Layout section, it is advisable to follow the same format as the existing theme files.

It appears that the javascript file hosted on tinyupload.com is directing users to a download page rather than loading the content onto the webpage directly. It is essential to adjust the loading method to ensure the javascript functions properly. The HTML code seems correct and should work once the loading issue is addressed.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

An issue arose in Leaflet where drawing on the map became impossible after making an update to a marker's position

I have been working with Leaflet, Leaflet-draw, and Cordova Geolocation. Initially, when the map is loaded in globe view, drawing works perfectly. However, when the locate function is called to update the map center and marker position, drawing becomes imp ...

Error Message: An unexpected token 'else' was encountered during the compilation of ejs files

Encountering an error message when attempting to implement dropdown functionality in the navbar. The error is as follows: SyntaxError: /Users/myfile/app/views/layouts/boilerplate.ejs:22 20| 21| <body class="d-flex flex-column vh-100" ...

Troubleshooting: Issue with Ajax Post Request in Django Version 1.10.5

For the past week, I've been facing difficulties in successfully executing a jQuery ajax request to transfer data from a JavaScript function within my annualgoals.html file to a Django view for database storage. Currently, I'm just trying to veri ...

Programmatically extracting a list of utilized CSS images from IE WebBrowser (IHTMLDocument2)

Exploring the IHTMLStyleSheetsCollection, IHTMLStyleSheet, IHTMLStyleSheetRulesCollection etc. of IHTMLDocument2 to compile a list of all styles in the current document is quite simple. Does anyone have any suggestions on how to generate a list of only th ...

How to arrange a collection of objects in JavaScript

I am facing a challenge with sorting the array based on the address._id field of each object. Despite attempting to use the lodash orderby function, I have not been able to achieve the desired outcome. [{ rider_ids: '5b7116ea3dead9870b828a1a& ...

Switch the sign from plus to minus by modifying the :before element

My goal is to change the plus sign to a minus sign when it is collapsed by modifying the plus:before (by setting display to none or something similar to create a minus sign effect.) Currently, my code is functioning properly and collapsing as intended. You ...

How to send information with jquery through php and save it in mysql database

For some reason, I am encountering an issue with writing to the database when creating new registrations. Below is a snippet of my JavaScript code that includes both login and registration components: <!DOCTYPE html> <html> <head> <t ...

Troubleshooting problems with AJAX JSON API responses and dealing with undefined variables and issues related to [

I am currently working on a new API project and I'm facing some challenges. I have removed certain information, like the Bearer token, for privacy reasons. This is my first attempt at creating an API and I could use some guidance. Reading books and br ...

How can I incorporate JSON data retrieved from my backend server into the content of Tabs in a ReactJS application, utilizing either the map() or forEach() method

I need help assigning a key from an object to each tab using a loop in order to navigate to its content when clicked on. I attempted to use map() but it didn't work, so I'm looking for guidance as I am new to React. Below is the code. Any assist ...

"Deactivate the escaping feature in PHP when using heredoc syntax

My PHP code generates minified JS output using the heredoc. Take a look at this snippet: function prerefresh(){$("#len").empty();predata.forEach(item)} I've highlighted that the {$ is causing issues with variable escaping in my heredoc. Is there a ...

Guide to setting up index.js with ApiProvider in the Redux Toolkit (RTK)

Have you ever considered customizing the index.js file in the root directory based on ChatGPT's recommendations? I'm not entirely convinced that it's the most common practice. What are your thoughts on this approach? // Here is an example of ...

Storing and updating object property values dynamically within a for...in loop in JavaScript

I am currently working on a Node application powered by express and I am looking to properly handle apostrophes within the incoming request body properties. However, I am not entirely convinced that my current approach is the most efficient solution. expo ...

Check if the div has been clicked, even if its child elements have also

Is it possible to check if both a div and its child are clicked using jQuery? $('div').click(function(e){ if(e.target.id == 'test') alert(e.target.id); }); I have a specific div with an id of #test in my HTML code, and wh ...

The contents of req.body resemble an empty {}

Does anyone know why the req.body is empty in this code snippet? Even though all form data is submitted, it doesn't seem to be recognized in the req.body. Strangely enough, it works perfectly fine in postman. Take a look at the server-side code: con ...

Display sub-objects within Chart.js

I'm currently tackling a project in Ionic 3 where I am utilizing an API that returns a JSON response with nested objects. My goal is to display certain aspects of these objects within a bar graph using chart.js. Unfortunately, I lack experience in ma ...

Error: The 'inputValue' property in the Select component of antd is malfunctioning

Currently, I am utilizing the antd library's Select component (version v3.23.1) with the mode="multiple" setting. I have observed that when I type in the search field within the Select component and then click outside of it, the searched text gets cle ...

Are there any NPM packages available for extracting PDF metadata?

Does anyone know of an npm module that allows me to modify the metatags such as Author and Title in PDF files? I am also open to suggestions for any open-license JavaScript library that can do this job. I came across a program called pdftk, which seems s ...

What is preventing me from integrating angular-cookies into my application?

I'm struggling to resolve this issue where I can't seem to make it work. My aim is to integrate NgCookies (angular-cookies) into my application, but all I'm encountering are errors. This is what I currently have: JS files being included: ...

Issue with Discord.js voice connection destruction函数

I've been attempting to implement a "Stop" command using the @discordjs/voice package, but I'm encountering an error. Despite my efforts to add some error handling, the issue persists. Below is the code snippet: async function stop(message) { t ...

Using Jquery to set a delay for a specified variable

I have coded a jQuery timer that updates every second by increasing the inner text of a div by +1. The goal is to create a clock-like effect. However, I want this timer to stop updating after 15 seconds. var count = 0; var updateDiv = setInterval(function ...