View Full Version : New window on Ajar Request Succes

16 Dec 2010, 8:47 AM
Hi all,
I've got a grid with buttons on the last column.Clicking on this button an Ajax request is sento to arrivo.php and a confirmation message is sent through a messageBoxe
Here's my code

handler: function(grid, rowIndex, columnIndex, e) {
var record = grid.getStore().getAt(rowIndex); // Get the Record
var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
var data = record.get('Vp');
var Intervallo = "week";
url : 'arrivo.php' ,
params : { VP : data,Intervallo:Intervallo },
method: 'POST',
success: function ( result, request ) {
Ext.MessageBox.alert('Success ');
failure: function ( result, request) {
Ext.MessageBox.alert('Failed ');

Now I would like to send the two values 'data' and 'Intervallo' to another php script. This script create a chart, and I would like to render this chart on a new window (or a pop-up window) that shall be open on clicking the button.
Is this possible?I'm strugling with this problem bu can't find out any example.
Any help will appreciate,
thank you all!