[Cartoweb-users] Bug in ajax when getting input type password value

Nicolás Eugenio Ozimiça nozimica at gmail.com
Fri May 23 15:26:52 EDT 2008

Hi all!

I've searched the internet if someone else pointed out this problem, but
nothing found:

When getting the values of a form in a plugin implementing the ajaxable
interface, it doesn't
get the value of the input type password.

This, when using the function "AjaxHandler.buildPostRequest()" in the
"pluginName.ajax.js" file.

It is because in the file "htdocs/js/AjaxHelper.js", line 27, only for the
type "text" it
accesses the value using "htmlElement.value", and for all the others it uses

So, line 27 is:
        if (inputType == 'text') {

and sould be:
        if (inputType == 'text' || inputType == 'password') {

at least with the last one everything worked fine for me...

Hope this helps!

Nicolás Eugenio Ozimiça
Universidad de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080523/f74b6237/attachment.html

More information about the Cartoweb-users mailing list