[pmapper-users] openHyperlink

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[pmapper-users] openHyperlink

Eduardo Bieñkowski
ESPAÑOL
Estimados Amigos.
Yo necesito abrir un link a una página nueva  desde un marco de consulta,
estoy usando lo que esta documentado en ttp://
svn.pmapper.net/trac/wiki/DocManual#Hyperlinks

Les envío mi custom.js

$.extend(PM.Custom,
{
    // Sample Hyperlink function for result window
    openHyperlink: function(layer, fldName, fldValue) {
        switch(layer) {
            case 'pais_siembra_pl':
               //if (fldName == 'NOMBRE') {
                    var linkUrl = 'http:/'+'/en.wikipedia.org/wiki/'+fldValue;
              //window.open(linkUrl);
         this.openHyperlinkDialog(linkUrl);
                //}
                break;

            default:  alert ('Vea la funcion en custom.js: ' + layer + ' -
' + fldName + ' - ' + fldValue);
        }
    },

    // Sample how to open a link in a p.mapper dialog box
    hyperlinkDlgOptions: {width:600, height:600, resizeable:true,
newsize:false, container:'pmDlgContainerHyperlink'},

    openHyperlinkDialog: function(linkUrl) {
        var dlg = PM.Dlg.createDnRDlg(this.hyperlinkDlgOptions,
_p('Hyperlink'), false);
        var h = '<iframe width="99%" height="98%" src="' + linkUrl + '" />'
        $('#pmDlgContainerHyperlink_MSG').html(h);
    },

    showCategoryInfo: function(catId) {
        var catName = catId.replace(/licat_/, '');
        alert('Info about category: ' + catName);
    },
    showGroupInfo: function(groupId) {
        var groupName = groupId.replace(/ligrp_/, '');
    }

});
Despliega el link en el marco en pmapper pero no funciona el link cuando es
invocado

***********************************************************************************************************

ENGLISH
Dear Friends .
I need to open a link to a new page from a query framework , I am using
what is documented in ttp :/ / svn.pmapper.net / trac / wiki / DocManual #
Hyperlinks

I send my Custom.js

$ . extend ( PM.Custom ,
{
/ / Sample Hyperlink function for result window
openHyperlink : function (layer , fldName , fldValue ) {
switch (layer) {
case ' pais_siembra_pl ' :
/ / if ( fldName == ' NAME' ) {
linkUrl var = ' http:/ ' + '/ en.wikipedia.org / wiki /' + fldValue ;
/ / window.open ( linkUrl );
this.openHyperlinkDialog ( linkUrl ) ;
/ /}
break;

            default: alert (' See function in Custom.js : ' + layer + '- '
+ fldName + '- ' + fldValue );
}
    } ,

/ / Sample how to open a link in a dialog box p.mapper
hyperlinkDlgOptions : {width : 600 , height: 600, resizeable : true,
newSize : false, container: ' pmDlgContainerHyperlink '} ,

openHyperlinkDialog : function ( linkUrl ) {
        var dlg = PM.Dlg.createDnRDlg ( this.hyperlinkDlgOptions , _p ( '
Hyperlink ' ) , false);
        var h = ' <iframe width="99%" height="98%" src="' + + '" linkUrl />
'
$ ('# pmDlgContainerHyperlink_MSG ' ) html ( h ) . ;
    } ,


showCategoryInfo : function ( catId ) {
var catName = catId.replace ( / licat_ / ,'') ;
alert (' Info about category: ' + catName );
} ,

showGroupInfo : function ( groupId ) {
var groupName = groupId.replace ( / ligrp_ / ,'') ;
    }




} ) ;
Displays the link in the framework pmapper but the link does not work when
invoked



--
Eduardo
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Loading...