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

  • Home
  • SEARCH
  • 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 8427953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:55:14+00:00 2026-06-10T04:55:14+00:00

I have 2 sub domains passwordservices.example.com computers.example.com All computers are attached to the computers.example.com

  • 0

I have 2 sub domains

passwordservices.example.com
computers.example.com

All computers are attached to the computers.example.com

A workstation called PC123456 on the domain has a fully qualified name is

PC123456.computers.example.com

The web pages are hosted on passwordservices.

How can I write a javascript that’s hosted on PC123456
And access DOM elements on password services.

  • 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-10T04:55:16+00:00Added an answer on June 10, 2026 at 4:55 am

    Basically, JS believes that even a subdomain such as img.yourdomain.com is a different domain from http://www.yourdomain.com. Because of that, AJAX across pages from those two subdomains will not work. Also if you have an iframe from one to another, you will not be able to refence JS vars or functions back and forth.

    A way around this involves setting up an iframe html on one domain and then calling that iframe from the page on the other subdomain. You have to set the document.domain to the same thing on both the parent page and its iframe, in order for them to talk to each other.

    document.domain = "yourdomain.com"

    Source: tomhoppe.com

    You might also want to look into Cross-Origin Resource Sharing

    Good Luck!!

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

Sidebar

Related Questions

I've got a class called Domain. Each Domain can have multiple sub-domains (of the
i have a domain for example : example.com and i have sub-domain : sub.example.com
I have created a sub-domain forum.new4u.com for the site new4u.com . Actually the forum
I have domain site.com and there is subdomain sub.site.com Once you open sub.site.com you
I have multiple sub-domains within the document_root. And multiple folders/classes within those sub-domain folders.
What I'm trying to accomplish with htaccess mod-rewrite: Redirect all sub-domains to new domain
I have several applications across sub domains on various servers. Each application has its
I have a couple of sub-domains on my rails app, and the main domain
I have a domain and a group of sub-domains that require authentication to access.
I have a domain like below. I have two sub-domains within that as below.

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.