Hi,
Do you have already seen something like what you describe in a web site?
I think it is not possible.
Indeed your browser needs a plugin to display your PDF (from Adobe for
instance). But I think those plugins only works int full window / tab.
Thomas
Le 04/11/2011 11:11, Salvatore Larosa a écrit :
> Hi at all,
> I have a issue with dialog function in pm.pmapper.js.
> I'd like open a PDF in dialog window like query result, but I don't able to
> do it!
>
> I have changed in pm.pmapper.js (my additions in bold):
>
> Dlg: {
>
> ....................
> schedaDlgOptions: {width:600, height:500, left:100, top:50,
> resizeable:true, newsize:true, container:'pmDlgContainer', name:"scheda"},
> ....................
>
> openHelp: function() {
> this.createDnRDlg(this.helpDlgOptions, _p('Help'),
> 'help.phtml?'+SID);
> },
>
> openScheda: function(fldValue) {
> this.createDnRDlg(this.schedaDlgOptions, _p('Scheda'),
> '../shd/'+ fldValue +'.pdf'+SID);
> },
>
> openDownload: function() {
> this.createDnRDlg(this.downloadDlgOptions, _p('Download'),
> 'downloaddlg.phtml?'+SID );
> },
>
> in custom.js (my additions in bold):
>
> $.extend(PM.Custom,
> {
> // Sample Hyperlink function for result window
> openHyperlink: function(layer, fldName, fldValue) {
> switch(layer) {
> case 'pr_agroalimentari':
> if (fldName == 'scheda') {
> PM.Dlg.openScheda(fldValue);
> }
> ..................................
>
>
> i get a dialog window wrong with characters misunderstood (attached image).
>
> Any hint?
>
> http://old.nabble.com/file/p32779273/dialogWindowPdf.png
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users