I don't get it what's your problem. In all test I made *every* file with
*.js extension inside the respective config directory is loaded in
map.phtml, like
<script type="text/javascript" src="config/test/custom.js"></script>
(you can see it if you display the source in the browser). So you can 
put your customized hyperlink functions in the JS files there.

Every call from within this window will find all functions from this JS
file. So if the query result is displayed inside the main window (as it
is with 'dynwin') then the functions from the JS file are available.

In case of
infoWin = dynwin
you can easily use the default hyperlink function to point to the 
respective ones inside the config dirs, like

javascript/custom.js:
function openHyperlink(layer, fldName, fldValue) {
   opener.openHyperlinkC(layer, fldName, fldValue) {
   // opener.* will refer to the function available from within map.phtml
}

and then define in the JS files under the config dir

/config/test/custom_whatsoever.js:
function openHyperlinkC(layer, fldName, fldValue) {
        .....
}

armin

zucchiatti wrote:
> Hi Armin
> 
> the parameter infowin=dynwin is already default set and it has not been
> modified.
> I will try to search in which function the hyperlink is created and will
> insert the path corrected based on the requests. If kindly it indicates to
> me where to operate :-)
> I hope to resolve my problem.
> 
> Thank you
> 
> 
> 
> Armin Burger wrote:
>> Try using the config setting
>>
>> infoWin = dynwin
>>
>> it does not open a pop-up window but uses a DIV instead. So the loaded
>> '/config/../custom.js' should be found by the hyperlink clicks.
>>
>> armin
>>
>> -------- Original-Nachricht --------
>> Datum: Fri, 27 Jul 2007 05:15:58 -0700 (PDT)
>> Von: zucchiatti <[EMAIL PROTECTED]>
>> An: pmapper-users@lists.sourceforge.net
>> Betreff: Re: [pmapper-users] custom.js for multiple url config istance
>>
>>> Thanks Armin
>>> I had already tried us this solution but it does not work. In the source
>>> of
>>> loaded HTML page the my custom.js file is loaded correctly
>>> (...."text/javascript" src="config/vt/custom.js">..) without
>>> /javascritpt/custom.js. I think is a problem of path but I dont know
>>> understand where.
>>> I use a last pmapper 3.2 dev but i tried olso in early version.
>>>
>>> Thanks Daniele
>>>
>>>
>>> Armin Burger wrote:
>>>> remove the custom.js below /javascript and add whatever you want as
>>> file
>>>> with *.js extension and your desired customized openHyperlink()
>>> function
>>>> for this config under your respective config directories
>>>> like
>>>> /config/default/custom.js
>>>> /config/pippo/custom.js
>>>> /config/toto/custom.js
>>>>
>>>> the application will only load the respective JS file from the selected 
>>>> /config/subdir.
>>>>
>>>> armin
>>>>
>>>> zucchiatti wrote:
>>>>> ok, thank you for answer
>>>>>
>>>>> if I have understood well I can only use an only one (openHyperlink
>>>>> function) custom.js for application.
>>>>> Thancks Daniele
>>>>>
>>>>>
>>>>>
>>>>> Armin Burger wrote:
>>>>>> every file with extension '.js' under directory '/javascript/' or
>>>>>> '/config/your-config/' is loaded by default. Reversing into subdirs
>>> of
>>>>>> them is not supported. 
>>>>>>
>>>>>> GetLegendGraphics for WMS layers is not supported but you can modify
>>> the
>>>>>> legend.php to get it. Does not look very nice though in most cases.
>>>>>>
>>>>>> armin
>>>>>>  
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> 1) When launch pmapper by INI file at start up using URL parameter &
>>>>>>> config
>>>>>>> based on the same common application, pmapper use only default
>>>>>>> custom.js
>>>>>>> file (javascript/custom) and not my custom file putting in sub
>>> config
>>>>>>> istance directory. (example: /pmapper/custom/comuni/custom.js). Only
>>>>>>> default
>>>>>>> work fine.
>>>>>>>
>>>>>>> Search.xml instead work correctly for any istance.
>>>>>>>
>>>>>>> How to set the correctly custom.js path for any istance?
>>>>>>>
>>>>>>> 2) Use pmapper like wms client. The GetLegendGraphics is supported?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Daniele
>>>>>>>
>>>>>>> -- 
>>>>>>> View this message in context:
>>>>>>>
>>> http://www.nabble.com/custom.js-for-multiple-url-config-istance-tf4150597.html#a11807513
>>>>>>> Sent from the pmapper users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>>
>>> -------------------------------------------------------------------------
>>>>>>> This SF.net email is sponsored by: Splunk Inc.
>>>>>>> Still grepping through log files to find problems?  Stop.
>>>>>>> Now Search log events and configuration files using AJAX and a
>>> browser.
>>>>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>>>>> _______________________________________________
>>>>>>> pmapper-users mailing list
>>>>>>> pmapper-users@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>>>> -- 
>>>>>> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
>>>>>> Alle Infos und kostenlose Anmeldung:
>>> http://www.gmx.net/de/go/freemail
>>>>>>
>>> -------------------------------------------------------------------------
>>>>>> This SF.net email is sponsored by: Splunk Inc.
>>>>>> Still grepping through log files to find problems?  Stop.
>>>>>> Now Search log events and configuration files using AJAX and a
>>> browser.
>>>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>>>> _______________________________________________
>>>>>> pmapper-users mailing list
>>>>>> pmapper-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>>>>
>>>>>>
>>>>
>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by: Splunk Inc.
>>>> Still grepping through log files to find problems?  Stop.
>>>> Now Search log events and configuration files using AJAX and a browser.
>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>> _______________________________________________
>>>> pmapper-users mailing list
>>>> pmapper-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>>
>>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/custom.js-for-multiple-url-config-istance-tf4150597.html#a11828037
>>> Sent from the pmapper users mailing list archive at Nabble.com.
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems?  Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>> _______________________________________________
>>> pmapper-users mailing list
>>> pmapper-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>> -- 
>> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
>> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to