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

Oliver Christen oliver.christen at camptocamp.com
Mon May 26 10:19:05 EDT 2008


Hi
I have commited into the cvs version of Cartoweb the modification your proposed today.
thank you for reporting this issue.

regards
Oliver
  ----- Original Message ----- 
  From: Nicolás Eugenio Ozimiça 
  To: cartoweb-users at lists.maptools.org 
  Sent: Friday, May 23, 2008 9:26 PM
  Subject: [Cartoweb-users] Bug in ajax when getting input type password value


  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
  "htmlElement.getAttribute('value')".

  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 


------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080526/d6722b0a/attachment.html


More information about the Cartoweb-users mailing list