nazihheni / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Support for browsers without javascript #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment there are many methods on the form where when javascript is
turned off you are no longer able to fill in the entire form.

Do you plan on making the class friendly to users with javascript turned off?

Some of the fields wont be too hard to do, for instance recaptcha already
can support when users dont have javascript turned on... Below are changes
for recaptcha to get it going without javascript, I need to read the
recaptcha API a bit more to let you change the template theme color and
language, but you get the idea.

2067:
                elseif($eleType == "captcha")
                {
                                        if(empty($this->ajax)){
                                            require_once($this->captchaPath
. "/recaptchalib.php");
                                            $str .=
recaptcha_get_html($this->captchaPublicKey);
                                        }

2663:
                    if(!empty($this->ajax)) {
                        if(empty($this->preventCaptchaLoad))
                            $str .= "\n\t" . '<script
type="text/javascript"
src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>';

                        $str .= "\n\t" . '<script type="text/javascript">';
                        $str .= "\n\t\t" . 'Recaptcha.create("' .
$this->captchaPublicKey . '", "' . $captchaID . '", { theme: "' .
$this->captchaTheme . '", lang: "' . $this->captchaLang . '" });';
                        $str .= "\n\t</script>\n\n";
                    }

Original issue reported on code.google.com by moncojhr@gmail.com on 15 Mar 2010 at 2:54

GoogleCodeExporter commented 9 years ago
At this time, I don't have plans to make the class friendly to users with 
javascript turned 
off.  The development time / benefit ratio doesn't make sense.

- Andrew

Original comment by ajporterfield@gmail.com on 17 Mar 2010 at 4:41

GoogleCodeExporter commented 9 years ago
This request has been added to the NewFeatureRequests wiki.

Original comment by ajporterfield@gmail.com on 27 Mar 2010 at 6:24

GoogleCodeExporter commented 9 years ago

Original comment by moncojhr@gmail.com on 9 Apr 2010 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Version 2.0 of this project improves support for users with javascript turned 
off.  Most of the jQuery elements should gracefully fall back to standard html 
form elements.  I'm calling this issue fixed.

Original comment by ajporterfield@gmail.com on 14 May 2011 at 3:30