Rijak0 / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
0 stars 0 forks source link

google map bug of 1.0 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.$form->addLatLng("xxx:", "xxx", array(22.335836,114.181777), 
array("latlngZoom" => 15, "latlngHeight" => 400, "latlngWidth" => 600, 
"latlngHideJump" => 0));
2.
3.

What is the expected output? What do you see instead?
Undefined index: class in /xxxxx/formbuilder/class.form.php on line 1924

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

Please provide any additional information below.

also, may i know how to control the output datatype?
like the format of date range?

Original issue reported on code.google.com by faimob...@gmail.com on 9 Mar 2010 at 6:30

GoogleCodeExporter commented 9 years ago
fimobile,

Thanks for the feedback.  I'm going to take a look at this and let you know 
what I find.

- Andrew

Original comment by ajporterfield@gmail.com on 9 Mar 2010 at 6:46

GoogleCodeExporter commented 9 years ago
faimobile,

I believe I have found and corrected the "Undefined index..." error that you 
were 
experiencing.  Please download the latest release I just published and 
re-check.  Let 
me know if this error persists and I will re-visit.

Now your second question about controlling the date format...
After creating a new instance of the form class - $form = new form(); - you can 
specify the format of the date string returned by both the date and daterange 
field 
types by including the jqueryDateFormat attribute in the setAttributes method - 
$form->setAttributes().  By default, the jqueryDateFormat attribute is set to 
"MM d, 
yy" as seen on line 134 of class.form.php.  See 
http://docs.jquery.com/UI/Datepicker/$.datepicker.formatDate for formatting 
options.  

Here's an example of how to set the jqueryDateFormat in the setAttributes 
method...

$form = new form();
$form->setAttributes(array(
    "jqueryDateFormat" => "yy-mm-dd"
));

Hope this helps.  Please let me know if I can assist you with any other issues.

Best of Luck,
Andrew

Original comment by ajporterfield@gmail.com on 9 Mar 2010 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by ajporterfield@gmail.com on 9 Mar 2010 at 7:17

GoogleCodeExporter commented 9 years ago
also it will post null if the map is using the default location ( not choosing 
any 
thing on the map).

Thank you for your help and sorry for my bad English...

Original comment by faimob...@gmail.com on 9 Mar 2010 at 8:25

GoogleCodeExporter commented 9 years ago
It seems that I caused some unintended issues during the transition from v2 to 
v3 of 
the Google Maps API - my apologies.  I have just published a new copy that I 
believe 
addresses and fixes these problems.

Thanks for reporting these bugs.  Please continue to let me know when you run 
into 
problems during your development using this class.  By the way, your English is 
very 
good.

- Andrew

Original comment by ajporterfield@gmail.com on 9 Mar 2010 at 10:04