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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:37:06+00:00 2026-05-25T01:37:06+00:00

In my web site I’ve multiple calls of the jquery function load(). We can

  • 0

In my web site I’ve multiple calls of the jquery function load().

We can sumarize like this :

1) In My index page calls this $('#mainFrame').load('/antoherPage.jsp');
I insert this code in the head of my index page :

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css"/><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" djConfig="parseOnLoad: true,locale: 'en'"></scipt>

2) In my another page, it calls this $('#main').load('/Form.jsp');

3) In ‘Form’, I’ve some field from dijit : dijit.form.ValidationTextBox, …

<input  dojoType='dijit.form.ValidationTextBox'></input>

In my index page, I’ve this :

Basically, if I load the page Form.jsp, everyhting is correctly displayed. However, when I load my index page, everyhting is not correctly diplayed in the Form.

I’d like to know if I need to write some special code into the form page or into another page. Maybe the multiple calls of the load is not accepted by dojo/dijit?

Thank you very much

Bat

  • 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-05-25T01:37:06+00:00Added an answer on May 25, 2026 at 1:37 am

    After you ajax load a page, you need to call dojo.parser.parse(). Dojo has no idea that you are loading another page via ajax, and thus the parser doesn’t know to look through the new content for dijit widgets in markup.

    You’ll need to dojo.require('dojo.parser') as well.

    EDIT: looking at the jquery load docs, a more full featured example would be:

    $('#main').load('/Form.jsp', function() {
    //make sure we have the dojo.parser component pulled in, although it should probably be done in <head>
    dojo.require('dojo.parser');
    dojo.parser.parse();
    });
    

    As always, the dojo.parser component should be loaded prior to the execution of that ajax call

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

Sidebar

Related Questions

I have a web site in asp.net that uses a master page. In this
My web site has a common horizontal menu and I'd like to put this
I have a web site like this: <html xmlns=http://www.w3.org/1999/xhtml> <head> <title></title> <link rel=stylesheet type=text/css
On my web site a have a page where where user can ask questions.
A page on my web site is taking too long to load - about
In a VS2008 web site project, I have a page open in split view.
My web site (on Linux servers) needs to support multiple languages. What is the
My web site page contains lot of queries. So it takes lot of time
I writing real estate web site with basic function for choosing and ordering realty.
I'm designing a web site and I would like to be able to call

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.