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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:25:19+00:00 2026-05-26T11:25:19+00:00

I cant control the function between the outer and inner function. as I use

  • 0

I cant control the function between the outer and inner function.
as I use a top.out1() in the children object. I cannot call the function run
within the $(document).ready(function() { function inner1(){alert("alertinner")}}
the question is:

1.How can I call the function inner() directly by the object children svg page?

2.How can I call the function inner() by the function outer1()?

3.How can I call the function outer2() by the function inner()?

<script type="text/javascript">
function outer1(){
alert("outer1alert");
 }
$(document).ready(function() {
function inner(){
alert("inneralert");
}
});
function outer2(){
alert("outer2alert");
}
</script>
  • 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-26T11:25:20+00:00Added an answer on May 26, 2026 at 11:25 am

    It is not particularly clear what you’re asking. If what you mean by “force” a function is to call it, then you can just call the function directly.

    For the outer1() or outer2() functions, you can call them by executing outer1() or outer2() in any context that you want to call them from.

    inner() is not currently a global functions, but is a local function that is callable from inside the document.ready scope in the same manner by executing inner(). If you want to call inner() from outside that scope, then you need to define it at global scope like this:

    $(document).ready(function() {
        window.inner = function (){
            alert("inneralert");
        }
        // can call it here:
        inner();
    });
    
    // or you can call it here
    inner();
    

    Then, you can call it from any scope as inner().

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

Sidebar

Related Questions

Why cant i use code nuggets to set a control property??For example a validationgroup
Can anyone explain why you can’t use inline code blocks within server control declarations
I have a problem that i cant solve :( I have a user control
It seems that I can't control the NSApp delegate from within a System Preferences
I know it's by design that you can't control what happens when an object
I need to change the HTML rendered by the NumericPagerField. I can't use Control
I'm trying to use the value of an asp:HiddenField control in javascript after postback
My object finish their job. He have the control of work flow, but now
I can't seem to find a control in a login view. The aspx is:
I can’t figure out why Control.CreateChildControls is visible in web page’s code-behind class. Namely,

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.