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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:57:47+00:00 2026-05-13T21:57:47+00:00

This is a great big mess… I know I could use an iframe, but

  • 0

This is a great big mess…

I know I could use an iframe, but the problem there is that there are some cross-site limitations that wind up botching what I’m trying to do. Namely, the source content is a fixed height div that allows scrolling, but without the scrollbar. If I load that up in an iframe, it won’t have the same effect. It either insists on having a scrollbar, or it doesn’t scroll at all. I’ve been trying to find a way around this, but the destination server doesn’t have php available, so I’m flat-out stuck on how to do this…

On the source server, I tried writing all of the content to a php variable like this:

<script type="text/javascript">
var mycontent = '<?php print $content; ?>';
</script>

and then calling that variable in my test.js file and when I use an alert, I get the text (also on the source server), like this:

var content = mycontent;
alert(content);

It works, but, not from the destination server. So, on the destination server, if I use:

 <script src="http://mysite.com/test.js"></script>

And try to use:

<script type="text/javascript">document.write('content');</script>

It doesn’t print anything out… I’m assuming because of cross-site limitations? I’m desperate for a workaround… Can anyone help out?

  • 1 1 Answer
  • 1 View
  • 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-13T21:57:48+00:00Added an answer on May 13, 2026 at 9:57 pm

    Make a server-side XHR request, grab the content, and include it when your page is served-up.

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

Sidebar

Related Questions

No related questions found

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.