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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:28:11+00:00 2026-06-02T02:28:11+00:00

I know there are other posts like this, but I don’t know if its

  • 0

I know there are other posts like this, but I don’t know if its appropriate to ask a question on someone else’s question. Here’s the link where I think I found the answer to my question of what to do: other question. I think the last solution on the page is probably the one to use.

My question that still remains is how to apply this to my scenario. My scripts are all contained within an outer function. It is based on this concept:

jQuery.noConflict();
jQuery(function($) {

    var Engine = {
        utils : {
            functionName : function(){
                // Do stuff in here
            },
            functionName2 : function(){
                // do something else    
            }
        },
        ui : {
            functionName : function(){
                // Do stuff in here
            },
            functionName2 : function(){
                // do something else    
            }
        },
        fixes : {
            functionName : function(){
                // Do stuff in here
            },
            functionName2 : function(){
                // do something else    
            }
        },
        tweaks : {

            functionName : function(){
                // Do stuff in here
            },
            functionName2 : function(){
                // do something else    
            }
        }
    };


    Engine.utils.functionName();
    Engine.utils.functionName2();

    Engine.ui.functionName();
    Engine.ui.functionName2();

    Engine.fixes.functionName();    
    Engine.fixes.functionName2();   

    Engine.tweaks.functionName();
    Engine.tweaks.functionName2();

});

I’m ultimately trying solve the problem of my scripts not working after an ajax call changes content. The linked question is “jquery : trigger $document.ready (so AJAX code I can’t modify is executed)”. The answers to that one, especially the last one, seem to be what I am looking for, but I’m not sure how to make that work with my scenario.

  • 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-02T02:28:13+00:00Added an answer on June 2, 2026 at 2:28 am

    I found the answer using delegation with on().

    jQuery.noConflict();
    function scriptlist() {
        var $ = jQuery;
        var Engine = {
            utils : {
                functionName : function(){
                    // Do stuff in here
                },
                functionName2 : function(){
                    // do something else    
                }
            },
            ui : {
                functionName : function(){
                    // Do stuff in here
                },
                functionName2 : function(){
                    // do something else    
                }
            },
            fixes : {
                functionName : function(){
                    // Do stuff in here
                },
                functionName2 : function(){
                    // do something else    
                }
            },
            tweaks : {
    
                functionName : function(){
                    // Do stuff in here
                },
                functionName2 : function(){
                    // do something else    
                }
            }
        };
    
    
        Engine.utils.functionName();
        Engine.utils.functionName2();
    
        Engine.ui.functionName();
        Engine.ui.functionName2();
    
        Engine.fixes.functionName();    
        Engine.fixes.functionName2();   
    
        Engine.tweaks.functionName();
        Engine.tweaks.functionName2();
    
    };
    
    jQuery('body').on('change click.productSubmitInput',function(){
        jQuery.ready(scriptlist());
    });
    scriptlist();
    

    This way, all my scripts will rebind after a content update instigated by a a change() event or when my button with the class ‘productSubmitInput’ is clicked.

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

Sidebar

Related Questions

I know there are several other posts with solutions to this, but my current
I know there are several other posts on this topic but they still leave
I realise that there are other topics like this, but none of them really
I know there are plenty of other questions addressing the same problem, but since
I know you can look at the row.count or tables.count, but are there other
I've read a few other posts like this one about avoiding repetition in Java
I have alluded to this issue in my other question , but i think
Variations of this question have been asked before, but it seems like the issue
Just want to know if there other optional wrapper framework available that generate client
Does anyone know there have any other way that (by not using json_encode and

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.