This is the js file jQuery(document).ready(function(){
$("#whoja").dialog( { title: 'Dialog Title' , width: 820 , height: 500 , autoOpen: false // false , closeOnEsc: true }); jQuery("#list2").jqGrid({ url:'P0010V2.php', datatype: 'json', mtype: 'GET', colNames: ['id','nombre','variedad','fechae','fechaa','pesoe','w','pw','pl','hoja'], colModel:[ {name:'id',index:'idmuestras', width:80, search:false, editable:false}, {name:'nombre',index:'nombre', width:120, search:true, stype:'text', editable:true}, {name:'variedad',index:'variedad', width:100, search:false, editable:true}, {name:'fechae',index:'fechae', width:100, search:false, editable:true}, {name:'fechaa',index:'fechaa', width:100, search:false, editable:true}, {name:'pesoe',index:'pesoe', width:80, search:false, editable:true}, {name:'w',index:'w', width:80, search:false, editable:true}, {name:'pw',index:'pw', width:80, search:false, editable:true}, {name:'pl',index:'pl', width:80, search:false, editable:true}, {name:'hoja',index:'hoja', width:290, search:false, editable:true} ], caption: 'Tabla Demostracion', rowNum: 20, altRows: 'true', pager: '#pager2', sortname: 'idmuestras', sortorder: "desc", editurl:'P0011V2.php', ondblClickRow: function() { var xid = jQuery("#list2").jqGrid('getGridParam','selrow'); if (xid) { var ret = jQuery("#list2").jqGrid('getRowData',xid); xpdf='"http://127.0.0.1/hal/Trigo/'+ret.hoja+'"'; alert(xpdf); $("#whoja").location = xpdf; } else { alert("Please select row"); } $('#whoja').dialog('open'); }, viewrecords: true }); And the html <iframe name="whoja" id="whoja"></iframe> by double-clicking to open the dialogue but I can not display the pdf file any suggestions? -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.