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 7788741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:04:55+00:00 2026-06-01T21:04:55+00:00

I’m not a experienced developer yet, so please forgive me if I sound too

  • 0

I’m not a experienced developer yet, so please forgive me if I sound too noobish or not clear enough. I’ll try to be as clear as I can. If some info is missing for your insights, please let me know and I’ll follow up to that asap.

So,

The company I work has two kinds of pages running with different jQuery versions (1.2 and 1.4). In addition we run the site through some different domains, eg: company.com, support.company.com, contact.company.com.

company.com runs in jQuery 1.4 (we can access jQuery only with “$”) and the other on 1.2 (where jQuery is “$j” or “jQuery”).

We have an API which retrieves a lot of information from the products like its price, image, descripton, etc. This API we can call on the pages with the 1.4 version of jQuery. The other domains we can’t get any information via this API.

We can only deal here with javascript and jquery codes to make it work. We don’t have access to back end.

So my question is: what is the approach I should have to make the API works from both kind of enviroments on the pages? Can I overwrite the oldest version? Is this an cross-domain issue? What line of thought I’m looking here to solve this problem?

I really hope I’m clear. If not, please let me know and I’ll try to clarify it. 🙂

Thanks in advance!

  • 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-06-01T21:04:56+00:00Added an answer on June 1, 2026 at 9:04 pm

    As far as i know, jQuery overwrites itself when loaded twice, since they both use the same $ variable. there is a way to make one go around and get assigned to another namespace while the other stays as is.

    I think jQuery does have some backwards compatibility with the older API. Just try to check your site’s APIs to verify if those methods still exist. Some methods have been deprecated lately. Otherwise, you’ll just have to rebuild your API using the latest jQuery. It shouln’t be that hard though, nothing much has changed for the basic methods. You might even get improved performance using the latest methods (those that did not yet exist prior to 1.4)

    And tell senior management that they should think of a better strategy than creating two APIs. The effects of not planning APIs to be maintainable and scalable are starting to appear.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
Does anyone know how can I replace this 2 symbol below from the string
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I have some data like this: 1 2 3 4 5 9 2 6

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.