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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:00:00+00:00 2026-06-07T18:00:00+00:00

My scripts are getting to big to maintain and I want to move some

  • 0

My scripts are getting to big to maintain and I want to move some of that to a separate file but cannot get it to work.

I have the following:

jQuery(document).ready(function ($) {

some code....

initEdit(theme, isAdmin, dataAdapterCustomers, dataAdapterShops, dataAdapterOrderStatus);

some more code.....

});

In the edit.js file I have the following:

function initEdit(theme, isAdmin, dataAdapterCustomers, dataAdapterShops, dataAdapterOrderStatus) {

        $("#dateEdit").jqxDateTimeInput({ 
            width: '200px', 
            height: '18px', 
            formatString: "yyyy-MM-dd",
            theme: theme  
        });

some more code.....

}

When doing that I get the following error:

Uncaught TypeError: Property ‘$’ of object [object DOMWindow] is not a function

I tried to enclose the initEdit function with the following:

(function($) {
function initEdit(theme, isAdmin, dataAdapterCustomers, dataAdapterShops, dataAdapterOrderStatus) {

        $("#dateEdit").jqxDateTimeInput({ 
            width: '200px', 
            height: '18px', 
            formatString: "yyyy-MM-dd",
            theme: theme  
        });

some more code.....

}})(jQuery);

but then I get an error that it cannot find initEdit.

I do include the additional .js file and when I checked the source code of the file and clicking on it, it loads and therefore the page did load it. I must add that the original jQuery script is within script tags within a php file. I also run jQuery in noConflict mode.

Could it be that the edit.js gets executed before it is called from the main function?

Any suggestion would be highly 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-06-07T18:00:02+00:00Added an answer on June 7, 2026 at 6:00 pm

    Try this:

    function initEdit(theme, isAdmin, dataAdapterCustomers, dataAdapterShops, dataAdapterOrderStatus) {
    
            jQuery("#dateEdit").jqxDateTimeInput({ 
                width: '200px', 
                height: '18px', 
                formatString: "yyyy-MM-dd",
                theme: theme  
            });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Perl script that is getting big, so I want to break
I'm getting a stack overflow error on some, but not all, IE7 machines. This
I'm creating a Grasemonkey user script that is getting really big. Can I split
I have a big array ( 1000x500000x6 ) that is stored in a pyTables
Hey. So I have a Rails app that's getting deployed to a production machine
I'm working with some web services that are giving big amount of data. The
We're getting this error once a day on a script that runs every two
I've tried the below script but I am getting an error: dim cn, rs
CGI scripts should have access to a list of environment variables set by the
I have a Powershell script that reads values off of the pipeline: PARAM (

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.