Re: [pmapper-users] External link for menu

2010-11-23 Thread Armin Burger
I don't think it will loading the files from both if defined in this way, and it is sort of useless loading the same code once as full source and again as compressed version. If you just want to add your own custom JS files, check the Wiki FAQ for customization of p.mapper. armin On 23/11/2010

Re: [pmapper-users] External link for menu

2010-11-23 Thread Sypou
Dear Armin, Thanks for your answer, I tried it and it works fine. You are right with the window.open that the user will get stuck if he/she doesn't accept to allow the popup window. Anyway, great. One more thing, is it possible to use both javascript for the configuration in the map file, or is

Re: [pmapper-users] External link for menu

2010-11-22 Thread Armin Burger
I thought I already set the possibility for a new target to the code code, which was not the case... So I added it now (and I once will change it to some cleaner code...). In case you're interested, you need the new http://svn.pmapper.net/trac/export/1126/trunk/pmapper/javascript/pm_cjs.js (or

Re: [pmapper-users] External link for menu

2010-11-22 Thread Sypou
Dear Thomas, Thank you for your answer. It gives me what I needed. Very good idea to add this function because I can even manage the specs of the window like the width, height... and so on. Serge Thomas RAFFIN wrote: > > Maybe you could just call a js function that could do it: > > - in js_

Re: [pmapper-users] External link for menu

2010-11-22 Thread Thomas RAFFIN
Maybe you could just call a js function that could do it: - in js_config.php: "linkid:'mywebpage', name:'Mywebpage', run:'your_js_function',imgsrc:'external-c.png'}," - in config/xxx/custom.js: function your_js_function() { window.open('http://www.example.com/'); } Le 22/11/2010 13:00, Sypou a

Re: [pmapper-users] External link for menu

2010-11-22 Thread Sypou
Dear Thomas, Thank you for your answer... Yes I see the link and it works fine. But what I need is to make it as an external link, meaning that it opens a new window of Internet browser to open my Mypage Website. Something like target='_blank' in HTML. Sorry, maybe my explanation was not clear

Re: [pmapper-users] External link for menu

2010-11-22 Thread Thomas RAFFIN
Hi, I've just tested the following lines an it works in pmapper 4.1.1: /** * Tool link elements */ PM.linksDefault = { containerid:'toolLinkContainer', links: [ {linkid:'link', name:'Link', run:'PM.UI.showMapLink', imgsrc:'link-w.png'}, {linkid:'print', name:'Prin

[pmapper-users] External link for menu

2010-11-21 Thread Sypou
Hi all, I use p-mapper 4 I would like to know how to create an external link on the menu top left like help, download, ... What I have done is that I added a new tool link element in js_config.php /** * Tool link elements */ PM.linksDefault = { containerid:'toolLinkContainer', links: