Login Retreive lost passwordRegister
Search

Forum Index / General / AJAX-Validaten doesn't works always!!?

[ This topic is solved ]

  Thomas Branius 28 February 09 / 11:52  
Changed at 28 February 09 / 11:54
Hi Johan,

I'm there again :-)

I've tested the ajax-validation, but it doesn't work :-(

My example:

<?php
// create new db formhandler object  
$oForm = new Formhandler(); 
$oForm->enableAjaxValidatortrue ); 

$oForm->textField("Type your email""email"FH_EMAIL);  
// button to submit  
$oForm->submitButton(); 

$oForm->Flush( );
?>


I've controlled the traffic and that work's correct! But the awnser from the server should be placed in

email_error (=> var target = 'error_'+ error; [ajax_validator.js] )

But in the HTML-Code there is no tag with this id :-(

This tag will appear, if the validation is done by committing and then the ajax works fine!

Another task:
please replace class.Formhandler.php (line 87):
<?php
define
('FH_INCLUDE_DIR'dirname(__FILE__).'/');
?>


by

<?php
define
('FH_INCLUDE_DIR'str_replace('\\''/'dirname(__FILE__)).'/');
?>


This is needed by running ajax-validation on windows!

bye tom

  Johan Wiegel (Admin) 01 March 09 / 12:03  
both problems fixed.


new default row mask in config.php

  bart 26 September 09 / 12:14  
Problem of the FH_INCLUDE_DIR still exist in version FH3 v1.2.9.

greetings Bart

  Johan Wiegel (Admin) 26 September 09 / 12:27  
Don't know why but your right it was. Untill now, I uploaded a new zip file for 1.2.9

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license