I added a proxy script using iframes under http://svn.pmapper.net/trac/browser/pmapper/trunk/pmapper/incphp/xajax/x_proxyiframe.php?format=raw
you can modify the JS function in /config/.../custom.js with lines like ... case 'cities10000eu': var remoteurl = 'http:/' + '/en.wikipedia.org/wiki/' + fldValue; var hyperUrl = PM_XAJAX_LOCATION + 'x_proxyiframe.php?'+SID+ '&remoteurl=' + escape(remoteurl); var dlgOptions = {width: 640, height: 480, left: 100, top: 50, resizeable: true, newsize: false, container: 'pmHyperlinkContainer', name: 'Hyperlink'}; var dlg = PM.Dlg.createDnRDlg(dlgOptions, _p('Link'), hyperUrl); ... as an example to load the wikipedia pages into the dialog window (it becomes a bit 'sticky' though for larger contents). You just need to create your remote Url depending of the data from the layer field. armin On 03/12/2009 09:11, Fco. Javier García Ricca wrote: > I think that this option is easier that Ajax proxy. I´m not a programmer > and I don´t Know if it is right, but I´ll try it. > > Thanks again > > 2009/12/2 Armin Burger <armin.bur...@gmail.com > <mailto:armin.bur...@gmail.com>> > > On 02/12/2009 21:33, Armin Burger wrote: > > On 02/12/2009 13:25, Fco. Javier García Ricca wrote: > > Hello, > > I would like to know if is possible to open a hiperlink in a > floating > window. Can i make a javascript to do it? How can I do it? > > > Thanks > > > > In general see here for hyperlinks: > http://svn.pmapper.net/trac/wiki/DocManual#Hyperlinks > > I guess with 'floating window' you mean the standard dialog > (like for queries, print etc). If the hyperlink url is pointing > to a site on the same server where the p.mapper application is > hosted then it works. There were several explanations and a full > example how to use the dialogs ('PM.Dlg.createDnRDlg...') in > previous postings and the descriptions should have been added to > the wiki. > > Otherwise it will not work directly because the content of the > dialog window is filled via an AJAX call. And Ajax calls do not > allow to load external (cross-domain) URL's. This would just be > possible via a proxy script (using e.g. PHP and curl calls) but > that would be a bit much to discuss the details here, just > google for 'ajax proxy'. > > > and just to complete for the case of cross-domain urls: instead of > an Ajax proxy you could also load a PHP script passing the remote > url as GET parameter and create a simple HTML page with an IFrame > using as "src" the remote url. This has the advantage that also all > styles and Javascript files etc are transfered. > > armin > > > > > -- > FJRicca > ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users