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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:45:57+00:00 2026-05-12T19:45:57+00:00

I have a contentPane with a remote form, I’m trying to get the form

  • 0

I have a contentPane with a remote form, I’m trying to get the form to submit, and stay within the pane, either displaying the form again on error or reporting success.
I’m sure this is easy but I’m stumped, not the first time and not the last I’m sure.

Store Form :

    class Services_Form_Store extends Zend_Dojo_Form {
    protected $_actionUrl;
    public function __construct($actionUrl = null, $options=null)
    {
        parent::__construct($options);
        $this->setActionUrl($actionUrl);
        $this->init();
    }

    public function setActionUrl($actionUrl) {
        $this->_actionUrl = $actionUrl;
        return $this;
    }

    public function init()
    {
        $required = true;

        $this->setMethod('post')
             ->setAttrib('id', 'storeform')
             ->setAttrib('name', 'storeform')
             ->setAttrib('onSubmit', 'dojo.xhrGet(sub) return false;');

         $this->addElement('TextBox', 'location', array(
            'label'       => 'Location name :',
    'required'  => true,
            'trim'        => true,
            'propercase'  => true)
        );

        $submit = new Zend_Form_Element_Submit('submit');
  $submit->setLabel('save');
  $this->addElement($submit);
    }
}

My View :

    <script type="dojo/method" event="onSubmit">
 var sub = {
  url : "/storemamager/new",
  load : function(data){
   dojo.byId('storeform').value = data;
  },
  error : function(data){
   console.debug("error submitting data :" + data);
  },
  timeout : 2000,
  form : "storeform"
 }
    </script>
    <?php echo(empty($this->formResponse) ? '' : '<p class="errors">' . $this->formResponse . '</p>'); ?>
    <?php echo $this->form; ?>

Fairly new to all this, so apologies for the lines to wtf ratio.

Edit : code was messy

  • 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-12T19:45:58+00:00Added an answer on May 12, 2026 at 7:45 pm

    Barking up the wrong tree.
    A button with onclick event in my form does the trick.

    $this->addElement('Button', 'submit', array(
            'label'     =>  'Save',
            'onclick'   =>  'dojo.xhrPost(
                                {
                                    url : "url",
                                    timeout : 2000,
                                    form : "form"
                                }
                            );'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: <div dojoType=dijit.layout.ContentPane id=filterForm style=padding: 3px> <form dojoType=dijit.form.Form> <input dojoType=dijit.form.TextBox
I have a Panel which is a contentPane of a JDialog . That Panel
I have the following subclass, derived from ContentPane: define([ dijit/layout/ContentPane, dojo/_base/declare ], function (ContentPane,
I've been trying to stick a PApplet in a JFrame and have it resize
I have a requirement where I need to create a dojox.layout.ContentPane programmatically. function constructContentPane(methodToBeCalled){
I'm trying to get the Infragistics TabGroupPane to integrate with Caliburn.Micro as per the
I'm trying to load content into a Dojo content pane in a specific html
I have a form that as more than a 100 fields across 5 categories
I have a ContentPane defined as follows: <div id=searchResultsContentPane data-dojo-type=dijit.layout.ContentPane data-dojo-props='splitter:false, region:center'></div> I am
I have a problem with dojox.form.Uploader. I want to use it to attach files

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.