EasyUI Forum
June 22, 2024, 03:52:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Post Data and Open in a new browser Window  (Read 7920 times)
getk
Newbie
*
Posts: 23


View Profile
« 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 31, 2013, 08:18:46 AM »

Try this:
Code:
function editAlert(){
var row = $('#dg').datagrid('getSelected');

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

}
Logged
getk
Newbie
*
Posts: 23


View Profile
« Reply #2 on: June 03, 2013, 04:23:50 AM »

thank you again mate
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!