Hi all, Hi Armin

when we use search form with dynwin or frame info appear solution, we
obtain a bad effect
the loading of blank.html page in another windows...

searching on the web i find this:

http://www.arraystudio.com/as-workshop/disable-form-submit-on-enter-keypress.html

and I fix the bug in this manner

in /config/default/custom.js i put this

function disableEnterKey(e)
{
     var key;

     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox

     if(key == 13){
          submitSearch();
          return false;
     }else{
          return true;
     }
}

and in map.phtml I add this in form formSearch:

 onkeypress="return disableEnterKey(event)"


I hope this can help

Bye
Walter





-- 
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: [EMAIL PROTECTED]
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

-------------------------------------------------------------------------
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