newhck / 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

Want to run your class offline but can't due to links to google's api #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. install php-form-builder-class on local server (i have it running on my 
laptop)

2. build a form with the following code:

$form = new form('form_1');

$form->setAttributes(array(
    "includesPath" => "api/php-form-builder/includes",
    "preventDefaultCSS" => 1
    )); 
$form->openFieldset('<b>Fieldset 1</b>');
$form->addDate(
                 'Date to publish', // label 
                 'publish_date', // element name 
                 '' // value
                 );  
$form->closeFieldset();
$form->render();

3.  Access form via browser.  Fine, the date field should work if you are 
online.

4.  Turn off your access to the internet, and access the form again.  No good.  
Because the form class relies on 
ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js (among other things)

What is the expected output? What do you see instead?

This the expected output, but it would be nice to be able to take my laptop on 
a train or a flight and do work offline. 

What version of the product are you using? On what operating system?

formbuilder-1.1.2.zip

Please provide any additional information below.

Is the answer to preventJQueryLoad and preventJQueryUILoad, and load them 
myself locally?  Or is there another way?

Original issue reported on code.google.com by rj05cole...@gmail.com on 8 Nov 2010 at 1:57

GoogleCodeExporter commented 8 years ago
Hey rj05coleman,

There are several resources that are loaded into the project from an outside 
location, making an internet connection a requirement.  These include jQuery, 
jQueryUI, Google Maps, and reCAPTCHA.  If offline access is a must, you will 
need to pull down these various resources and reference them locally.  I don't 
think the Google Maps and reCAPTCHA integrations will function properly though.

Good Luck!
- Andrew

Original comment by ajporterfield@gmail.com on 8 Nov 2010 at 4:04