Text Boz Validation Not Working

thread: 3 messages  |  last: a year ago  |  started: tuesday, february 23, 2010, 11:15 pm pst


#1  |  Sujith Kumar John G (Chennai,India) India
Tuesday, February 23, 2010, 11:15 PM PST

Hi Guys,
I am in learning stage of Qcodo framework,i have some issue , if i run  sample Registration page that is registration.php and registration.tpl.php with out any html form tags means its works properly esp the form validation are working perfectly,its indicates the blank text box

But if i use Html Tag

<html><head></head><body>
<table> <tr><td>

<?php
include(“registration.php”);        
?>
</td><tr></table>
</body></html>

the validation is not working no error shows.i hope ajax error may occurred,please let me know the solution
if i use chrome browser it show the error like:

“An error occurred during AJAX Response parsing”.

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Tuesday, February 23, 2010, 11:49 PM PST

Without getting into too much detail, since you are doing AJAX-based processing, note that AJAX requests always perform “postbacks” to the original page that is being rendered.

Since your modified page always outputs <HTML>-related tags, and since those tags aren't expected by the qcodo ajax response handler, you get an error.

It's pretty important to adhere to the .php and .tpl.php structure of qcodo if you're wanting to do AJAX-based processing, and not wrapping the top level .php (which is your QForm class instance) in anything else.  If you're wanting to add <html> tags to your page, then this should be added to your .tpl.php file.

If you get a chance, I would recommend reading through the Examples site which should hopefully give you a pretty good overview on what these files are and how they get processed.

#3  |  Sujith Kumar John G (Chennai,India) India
Wednesday, February 24, 2010, 12:15 AM PST

Thanks for your kind reply....



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.