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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:39:26+00:00 2026-06-10T05:39:26+00:00

I have a chart located in a panel. I want to pass the title

  • 0

I have a chart located in a panel. I want to pass the title of the panel to a php script using ajax. I already use ajax proxy for my store. I would like to know the title of the panel so that I can query for the correct data, for example. Here’s what I’ve done so far.

var store = Ext.create('Ext.data.JsonStore', {
    fields: ['project', 'accepted', 'rejected', 'deleted', 'undefined'],
    proxy: {
        type: 'ajax',
        url: 'generate_proj.php',
        extraParams: {foo: this.idname},
        reader: {
            type: 'json'
        }
    },
    autoLoad: true,
    listeners:  { 
        load: function(obj,records) {
            var text = Ext.decode(obj.responseText);
            console.log(this.idname);
            Ext.each(records,function(rec) {});
        }
    }
});  

In my php script I use $value = $_GET['foo'];.

I’m sure I’m close but I can’t find any examples or documentation about how to take better advantage of params. Any help or ideas?

  • 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-10T05:39:28+00:00Added an answer on June 10, 2026 at 5:39 am

    extraparams should be extraParams, camel cased. http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.Server-cfg-extraParams though there is a comment on their documentation saying that it doesn’t work.

    A workaround is to listen to the beforeload event and change the params from there http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.AbstractStore-event-beforeload

    listeners:  {
        scope: this 
        beforeload: function(store, operation) {
            operation.params.foo = this.idname;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a chart with multiple Series. I am using the ChartColorPalette to set
I'm having trouble understanding using D3 events and dispatch functions. I have a chart
I have a REST API written in PHP located on Apache server. It takes
I have a register form, and I use a script to transform a location
I have chart.png with data in it that I would like to put a
I have a chart and I need to clear it in order to populate
I have this chart in which if any point in graphs exceeds specific limit
I have a chart in Highcharts (to be more specific: it's a Highstocks chart,
I have a chart generated from Google Charts that can be found here: Chart
I have a chart on a Windows Form with several line graphs. I would

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.