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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:42:32+00:00 2026-06-14T01:42:32+00:00

I have tried the following way to excute the javascript syncronusly yet i am

  • 0

I have tried the following way to excute the javascript syncronusly yet i am receiving error..

What I done is firstly i included jquery and jquery ui files dynamically using javascript and after that jquery depends files are present. but at the time of loading the page itexecute the jquery and jquery ui files at last and later part first.

Code Used in single js:

(function(){
var script= document.createElement("script");
script.src="jquery.js";
script.type="text/javascript";
var pelement=document.getElementsByTagName('script')[document.getElementsByTagName('script').length-1];  

pelement.insertBefore(script,pelement);

}();


(function(){
var script= document.createElement("script");
script.src="jquery-ui.js";
script.type="text/javascript";
var pelement=document.getElementsByTagName('script')[document.getElementsByTagName('script').length-1];  

pelement.insertBefore(script,pelement);

}();


jquery depend files follows

$(document).ready...

Now i recieves error that jquery is undefined.. Even i tried with xmlhttprequest.. but that too failed…

  • 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-14T01:42:33+00:00Added an answer on June 14, 2026 at 1:42 am

    This looks like the perfect situation for usint the jQuery promise interface.

    You could declare an asynchronous operation, and specify what happens after it. I use it profusely in very complex interfaces that perform parallel calls, and works pretty well.

    Cheers.

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

Sidebar

Related Questions

I have tried following queries to get my facebook fan page insights data SELECT
I have tried the following <input type=file name=upload multiple=multiple value=MyText> However the text on
I have tried the following MySQL update but it only sets the first field
I have tried the following program for writing the contents into Spreadsheet. I downloaded
I have tried the following: <%= image_tag '...path_to_img', :filter => alpha(opacity=50) %> But it
I have tried the following code but has no effect: Imports system.Runtime.InteropServices <DllImport(UxTheme.DLL, BestFitMapping:=False,
I have tried the following code: $('a.buildMenu').click(function (event) { // Prevent normal behaviour event.preventDefault();
I have tried the following but it seems the folder gets created on the
I have no idea why this wont work but I have tried the following:
I am currently working on Problem 62 I have tried the following code to

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.