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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:27:08+00:00 2026-06-08T04:27:08+00:00

I generate full html+css+javascript page, and paste it on other host via CSSHttpRequest. But

  • 0

I generate full html+css+javascript page, and paste it on other host via CSSHttpRequest.

But javascript not working on pasted page(http://learnit.by/test/).

<!-- language: lang-html -->
<script type="text/javascript" src="csshttprequest.js"></script> 
<script type="text/javascript">
    CSSHttpRequest.get("irus.streetball.name/bsuir/encoded.css";, callback); 

    function callback(data) {
        document.getElementById('put_here').innerHTML = data;
    };
</script> 

<div id="put_here"></div>
  • 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-08T04:27:10+00:00Added an answer on June 8, 2026 at 4:27 am

    Well I can see a couple of syntax errors, whether they are whats causing your problems or not are another matter though, they may not be the only thing.

    CSSHttpRequest.get("http://irus.streetball.name/bsuir/encoded.css", callback); 
    
    function callback(data) {
        document.getElementById('put_here').innerHTML = data;
    }
    

    I have gotten rid of a semi colon after the url and one after the function. You probably also need to add the http:// in as I have done. The reason for this is that without it it will act as a relative url (or so I believe).

    You could alternatley write the callback in anonymously, although this shouldnt make a difference as follows:

     CSSHttpRequest.get("http://irus.streetball.name/bsuir/encoded.css", function(data) {
        document.getElementById('put_here').innerHTML = data;
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to show the server-side generated HTML (full page) into
I have a simple app with a full screen UIWebView. This contains HTML generated
I'm looking for ways to generate the application database full structure based on the
I generate csv files with fputcsv and it works just fine, but when I
I want the Roo-generated JSON controller stuff. I don't want the full HTML scaffolding
I'm using HighStock to generate some charts in browser. But now I want to
I try to port classic Perlin Noise (src: http://mrl.nyu.edu/~perlin/doc/oscar.html#noise ) to JavaScript - for
I have two models generated with generate scaffolding, one is a LogBook the other
I am working with Magento, and there is a function that merges CSS and
I like the idea of HTML helpers, which allows me not to write all

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.