EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: getk on May 31, 2013, 07:46:37 AM



Title: Post Data and Open in a new browser Window
Post by: getk on May 31, 2013, 07:46:37 AM
hi Guys,
I 've a easyUI datagrid and have implemented the CRUD functionality.
We need another button alongside (Update, Delete) to navigate to another web-based application with certain parameters from the selected row.
The best way is to post the relevant messages,
But how to open the relevant parameters in a new Browser Window?  (not the easyUI Window)

This is what I have enabled to open a dialog box
Code:
		function editAlert(){
var row = $('#dg').datagrid('getSelected');

if (row){
$('#dlg').dialog('open').dialog('setTitle','Edit Alert');
$('#fm').form('load',row);
}

}


It would be good to have a similar snippet to open a new browser window and post parameters from the selected rows?


Title: Re: Post Data and Open in a new browser Window
Post by: stworthy on May 31, 2013, 08:18:46 AM
Try this:
Code:
function editAlert(){
var row = $('#dg').datagrid('getSelected');

if (row){
window.open(yoururl);
}

}


Title: Re: Post Data and Open in a new browser Window
Post by: getk on June 03, 2013, 04:23:50 AM
thank you again mate