Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5839567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:36:08+00:00 2026-05-22T11:36:08+00:00

this project is is hosted on shopify but i will explain what everything does

  • 0

this project is is hosted on shopify but i will explain what everything does so you dont need to know how shopify works.

here is the site i’ll be referring to. ( http://www.republicway.myshopify.com/collections/united-states ) regarding the stars you see and their readonly on this page.

i’m using a star rating system called (JRating)

here is the section i’m having a problem with.
as you can see in the code im trying to set data equal a value received from my localhost
the value does come through i have tried with alert. but it wont set the numeric value in data.
what basically is happen is the gets rendered through the jrating library found on the bottom of the page that i provided then using ajax i set the data value based on the id sent over. the id does coem back with a value via json but it wont work for some reason. i have also tried regular html to see if the rating works and it did.

<div id="spinner" style='display:none;'> <img src="{{ 'spinner.gif' | asset_url  }}"> </div>

    <div class="rating" ></div>
    <script type="text/javascript">
    $(document).ready(function() 
    {

        $.ajax({
            url: 'http://69.231.223.112:8888/shopify/shopifyajax.php?jsoncallback=?',
            type: 'GET',
            data: 'page=collection&id={{ product.id }}', //shopify command displays a number like 11202
            dataType: "json",


            beforeSend: function() 
            {
                $("#spinner").show();
                $(".rating").attr("data", '0');

            },
            complete: function() 
            {
                $("#spinner").hide();
            },
            success: function(result) 
            {
                    var value = parseInt(result.rvalue);
                    $(".rating").attr("data", value);

            },

        });

    });

    </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:36:09+00:00Added an answer on May 22, 2026 at 11:36 am

    Is this site (from what you want get JSON) on your host? As I know – cross-domain requests are forbidden.. You can use something like proxy for your request – get page from PHP (file_get_contents or other function) and do your request to this file (proxy.php or other) where this content is stored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used the wiki in a project hosted at Google Code. With this wiki
I have a private project, and i want it hosted on google code. this
I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
To have browsable javadocs in a project hosted at Google-code, I got from here
I'm a .Net guy, and I'm interested in starting this project but I'm not
If I am the admin of a project hosted at code.google.com (in this case
I want to add some feature to this project and I need smartgwt for
This is a very precise question about the package installer open source project hosted
This project is the probable first step in migrating a large CMS from Classic
This project started as a development platform because i wanted to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.