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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:34:25+00:00 2026-06-11T09:34:25+00:00

Having a really hard time figuring this out. I need to submit a form

  • 0

Having a really hard time figuring this out. I need to submit a form in an ExtJS application and then download the data in a .CSV file. The problem is, the way ExtJS has me submitting the form with “isUpload” the parameters I’m POSTing are being sent as “mulitpart/form-data” and I can’t consume them or parse them. I have multiple values of the same input field name.

field: A
field: B
field: C

When I submit for my grids they go over as multiple instances like above. As soon as I introduce “isUpload” to the form they go overs as:

field: A,B,C

My program reads field as “A,B,C” and not three separate instances of field!

Here’s my code. Interesting that when I examine in Firebug the Params tab looks correct, but the POST tab has then all in one value.

I just recently added the parameters to the url to try and fake it out!

    Ext.Ajax.request({
        url : '/cgi-bin/cgijson007.pgm' + '?' + parameters,
        form : myForm,
        params : parameters,
        standardSubmit : true,
        isUpload : true
    });
  • 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-11T09:34:27+00:00Added an answer on June 11, 2026 at 9:34 am

    isUpload: true only defines that you want to upload a file along with fields, so multipart is correct. To download I recommend you to use a hidden frame. For that use a helper defined within a Namespace.

    helper.util.HiddenForm = function(url,fields){
        if (!Ext.isArray(fields))
            return;
        var body = Ext.getBody(),
            frame = body.createChild({
                tag:'iframe',
                cls:'x-hidden',
                id:'hiddenform-iframe',
                name:'iframe'
            }),
            form = body.createChild({
                tag:'form',
                cls:'x-hidden',
                id:'hiddenform-form',
                action: url,
                target:'iframe'
            });
    
        Ext.each(fields, function(el,i){
            if (!Ext.isArray(el))
                return false;
            form.createChild({
                tag:'input',
                type:'text',
                cls:'x-hidden',
                id: 'hiddenform-' + el[0],
                name: el[0],
                value: el[1]
            });
        });
    
        form.dom.submit();
    
        return frame;
    }
    
    // Use it like
    helper.util.HiddenForm('my/realtive/path', [["fieldname","fieldValue"]]);
    

    If the server answer with a download the save window will popup.

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

Sidebar

Related Questions

I'm new to Simple.Data. But i'm having a really hard time finding out how
I'm having a really hard time figuring out the scoping issue with the following
Im having a really hard time figuring out how to specify a good search
I am having a really hard time getting this to work. I have two
I'm having quite a hard time figuring out what's going wrong here: class iterate():
I am having a really hard time extracting a single value I need from
I have been having a really hard time debugging this error since the past
I'm having a really hard time trying to figure out how to store or
Im a complete Noob to this so im having a really hard time wrapping
I am having a really hard time trying to get this to work. All

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.