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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:51:02+00:00 2026-05-21T08:51:02+00:00

I included yepnope.js and then the following: <script type=text/javascript> /*<![CDATA[*/ yepnope([{ load: ‘http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js’, complete:

  • 0

I included yepnope.js and then the following:

<script type="text/javascript"> 
/*<![CDATA[*/
    yepnope([{
      load: 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js',
      complete: function () {
        if (!window.jQuery) {
          yepnope('local/jquery.min.js');
        } ...

However, while jquery is loading from the cdn, the following script at the end of the page is showing an error:

/*<![CDATA[*/
jQuery(function($) {
jQuery('#Project_projectDateStart').datepicker({'dateFormat...

the error is jQuery is not defined

I have no option but to load the script at the end (loaded with Yii datepicker in this instance).

Any help much appreciated.

  • 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-21T08:51:03+00:00Added an answer on May 21, 2026 at 8:51 am

    If you are going to use yepnope, you need to use callback functions. You cannot directly call jQuery since it is loaded asynchronously. It’s a little difficult to parse the documentation on yepnopejs.com but that’s the gist of it.

    Basically, none of Yii’s default AJAX and other JS helpers are going to work with yenope, from what I can tell. Or if they do work, it will be because Yii included another copy of jQuery in addition to the yepnope async loaded on from Google. You will probably need to do a bunch of work modifying the way Yii loads scripts to get it work correctly with an asynchronous loader like yepnope.

    Good luck though! Async loaders are great for page performance, I use the Facebook one all the time.

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

Sidebar

Related Questions

i have following lines included at the bottom of my index.php: <script type=text/javascript language=javascript
Included Scripts <script src=../../Scripts/jquery-ui-1.8.17.custom.min.js type=text/javascript></script> Accordion Script ` $(function () { $(#accordion).accordion(); }); $(#tabs).tabs();
I included mootools le this <script language=javascript src='<%# ResolveClientUrl(~/Scripts/mootools-core-1.3.1-full-compat.js)%>' type=text/javascript/> It compiles but when
I included Modernizr on my site: <script type=text/javascript src=<?php bloginfo('template_directory'); ?>/js/modernizr.custom.js></script> and I have
The included JavaScript snippet is supposed to do the following: As the user clicks
I included css file as follows, but does not work. <link rel=stylesheet type=text/css href=/_control/navi.css
My javascript gets included multiple times with the script tag, like so: <script src=code.js></script>
I included a script into my document's head that contains the following jquery code:
I included a WebView in my activity and load some Javascript in it which
PyEnchant included in site-packages.zip in bundle, but it cant load any dict! Why not?

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.