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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:06:13+00:00 2026-05-26T22:06:13+00:00

I have following pages: popup.html <script type=text/javascript> //requires function doFunction(){ alert(hi); } </script> <button

  • 0

I have following pages:

popup.html

<script type="text/javascript">
//requires
function doFunction(){
    alert("hi");
}
</script>
<button dojoType="dijit.form.Button" type="button" onClick="doFunction()">Click me</button>

main.html

    <script type="text/javascript">
    function showPopUp(){
        theContentPane.set("Href", "popup.html");
        theModal.show();

    }
    </script>
        <div dojoType="dijit.Dialog" jsId="theModal">
            <div dojoType="dojox.layout.ContentPane" jsId="theContentPane">

            </div>      
        </div>
<button dojoType="dijit.form.Button" type="button" onClick="showPopUp()">open popup</button>

when I press the button "open popup" in main.html the pop opened, and everything seems to be fine. but when I pression the button of the popup "click me" firebug shows: doFunction is not defined

is it problem of scope? how can I make the popup.html call funciones which is inside popup.html

  • 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-26T22:06:13+00:00Added an answer on May 26, 2026 at 10:06 pm

    after I post it found the answer…. the code I posted actually works, mine didn’t work because I had

    dijit.layout.ContentPane
    

    instead of

    dojox.layout.ContentPane
    

    since dijit.layout.ContentPanel does instantiate dojo widgets but does not execute javascripts and dojox.layout.ContentPane does…

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

Sidebar

Related Questions

I have the following: <EditItemTemplate> <asp:Button ID=wrqst_need_ind_btn runat=server Text = Create WR onClientClick=javascript:popUp('popup_createWR.aspx') CommandArgument='<%#
I have the following snippet in one of my html pages : <div class=inputboximage>
I have the following javascript bookmarklet which opens a new popup window with a
I have the following pages: page1.php <?php if (isset($_GET['link'])) { session_start(); $_session['myvariable'] = 'Hello
Lets say I have the following pages: # Include.asp <% Response.Write IsIncluded() & <br>
I have the following code which redirect pages depends on $path. ... $path =
The rails books and web pages I've been following have all stuck to very
I have written the following: var pages=[[www.google.co.uk] This is the WWW. ,[www.yahoo.co.uk] This is
I have a button named okbutton. A callback function is bind to the click
I have an aspx.cs page with the following code: hypPopup.Attributes.Add(onclick, window.open('Popup.aspx', '', 'height=650, width=800,

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.