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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:42:08+00:00 2026-06-04T05:42:08+00:00

I am probably doing something very wrong and noobish but I can’t seem to

  • 0

I am probably doing something very wrong and noobish but I can’t seem to figure this out. I have a button that, when pressed, I want to set a different contentpane to run and display a .php file. The following does nothing when I press the button:

dojo.addOnLoad(
        function() {
            dojo.connect(dojo.byId("mainPanel"), "onclick", callRecordsPressed);
});

function callRecordsPressed() {
       digit.byId("mainPanel").setContent('modules/content_panes/callrecords.php'); 
}

I have also tried running a get but this doesn’t do anything either:

        function callRecordsPressed() {
            digit.byId("mainPanel").setContent(alert(dojo.xhrGet({
                url: 'modules/content_panes/callrecords.php',
                load: callRecordsCallBack,
                error: callRecordsError
            })));

        }

        // Function that will be called when the find user button is pressed
        function callRecordsCallBack(data, ioArgs){
        }

        function callRecordsError(data, ioArgs){
            alert('Error when attempting load call records!');
        }

Where I define the content pane:

        <div class="centerPanel" data-dojo-type="dijit.layout.ContentPane"
             data-dojo-props="region: 'center'" id="mainPanel" >

            This is the right pane

        </div>

I have also tried setHref(..) and that didn’t seem to have an effect either. Is there a set way to do this?

Thanks

  • 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-04T05:42:09+00:00Added an answer on June 4, 2026 at 5:42 am

    if your content pane has really been created, this si what you are doing wrong

    function callRecordsPressed() {
    digit.byId(“callRecordsButton”).setContent(alert(dojo.xhrGet({
    url: ‘modules/content_panes/callrecords.php’,
    load: callRecordsCallBack,
    error: callRecordsError
    })));

        }
    

    should look likt this:

    function callRecordsPressed() {
            digit.byId("callRecordsButton").set('href', 'modules/content_panes/callrecords.php');
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm probably doing something very stupid but I can't get following regexp to work
I'm probably doing something realy stupid but I cant get this to work: var
I know this probably really simple but Im not sure what im doing wrong...
Ok, I think whatever I'm doing wrong, it's probably blindingly obvious, but I can't
All, This question probably has a very simple answer - something I'm overlooking. But
There is probably something dumb I am doing wrong here. public function get_scores($id) {
I'm sure this is something very simple that I'm screwing up, but here goes:
I know this is probably rather trivial but I have had a look at
This is probably very basic, but it's giving me a headache, and I'm not
This problem is probably very simple to solve but it is not clear to

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.