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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:37:43+00:00 2026-05-11T00:37:43+00:00

I have a simple html page with a div. I am using jQuery to

  • 0

I have a simple html page with a div. I am using jQuery to load the contents of an aspx app into the ‘content’ div. Code looks like this:

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'                  'http://www.w3.org/TR/html4/loose.dtd'> <html> <head>     <script type='text/javascript' src='http://code.jquery.com/jquery-latest.js'>     </script>     <script type='text/javascript'>         jQuery.noConflict();     </script> </head> <body>     <div id='content'>         <div id='loading'>              <div class='loading-indicator'>Loading...</div>         </div>     </div> </body> <script type='text/javascript'>     jQuery(document).ready(function() {         jQuery('#content').load('default.aspx');     }); </script> </html> 

The problem is default.aspx uses shadowbox and other javascript libraries. When that code tries to execute on default.aspx it acts like the js source files were not loaded. I check in firebug and the js files are there (no 404 or anything). Anyone know what I’m missing? As you can see I used the jQuery noConflict function because I thought the use of $ might be conflicting with the other libraries but no help there…

  • 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. 2026-05-11T00:37:43+00:00Added an answer on May 11, 2026 at 12:37 am

    Is the code that is not executing rendered out as script blocks, I understand the libraries loaded but any script blocks or inline javascript will not execute when loaded dynamically like that. You have to come up witha solution that will evaluate the script blocks returned for any of it to be valid. I’ll see if I can dig an example from prototype, I remember them having one.

    UPDATE:

    This is straight from prototype…

      ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>'    extractScripts: function() {     var matchAll = new RegExp(Prototype.ScriptFragment, 'img');     var matchOne = new RegExp(Prototype.ScriptFragment, 'im');     return (this.match(matchAll) || []).map(function(scriptTag) {       return (scriptTag.match(matchOne) || ['', ''])[1];     });   }    evalScripts: function() {     return this.extractScripts().map(function(script) { return eval(script) });   } 

    Of course you can simplify that for your needs, but when a page is returned dynamically you have to manually evaluate all scripts as the browser will not evaluate script injected into the element automagically.

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

Sidebar

Ask A Question

Stats

  • Questions 76k
  • Answers 76k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Here's an easy way to do it: in vim, make… May 11, 2026 at 3:11 pm
  • added an answer I don't know why this happens, but I propose some… May 11, 2026 at 3:11 pm
  • added an answer OK so the short answer is 'you can't'. The longer… May 11, 2026 at 3:11 pm

Related Questions

I have a simple HTML page that looks like this: ...<div id="main"> <a href="#">Click
I am trying to find the best practice for generating and outputting html which
I'm trying to convert Matt Berseth's ' YUI Style Yes/No Confirm Dialog ' so
Is it possible to set the cursor to 'wait' on the entire html page

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.