[fx.php_list] Re: fx.php_list Digest V3 #15

  • From: Rodney Schmidt <rschmidt11@xxxxxx>
  • To: fx.php_list@xxxxxxxxxxxxx
  • Date: Mon, 30 Apr 2018 08:04:11 -0400

And your solution was ...?

Yours, 

Rodney Schmidt
-------
Freedom of speech is always under attack by Fascist mentality, which exists in 
all parts of the world, unfortunately.” - Lawrence Ferlinghetti 



On Apr 30, 2018, at 1:07 AM, FreeLists Mailing List Manager 
<ecartis@xxxxxxxxxxxxx> wrote:

fx.php_list Digest    Sun, 29 Apr 2018    Volume: 03  Issue: 015

In This Issue:
       [fx.php_list] Re: Character conundrum with #

----------------------------------------------------------------------

From: Troy Meyers <tcmeyers@xxxxxxxxxxxxxx>
Subject: [fx.php_list] Re: Character conundrum with #
Date: Sun, 29 Apr 2018 15:12:16 -0700

Never mind, I solved it. :-)


I've got an interview form that collects data step wise, all on the same
page without reloading, using AJAX methods (jQuery's $.getScript()
function). Doing this returns some JavaScript to execute in the calling
page for its AJAX response, making appropriate modifications to the
display and potentially moving to the next step.

The weird thing is that my AJAX handler uses FX methods to (try to) save
the entered values to FileMaker, and it works fine except for an
exception. When adding a param to set a field, such as:

$dgCreateFXobj->AddDBParam('DonorCultivars Pollen Parent::Entered
Cultivar Name',$_GET ['polcultivar']);

...where the $_GET ['polcultivar'] is referring to the parameter
polcultivar passed in to the AJAX handler,

...if the value contains a # character then the value saved in FileMaker
is truncated at that point. For example, if the value is supposed to be
"This item #54" then the FileMaker field is set to "This item ". (the "
marks aren't in the data)

The value passed in the polcultivar parameter in the GET string IS
encoded using JS's encodeURIComponent() and the # symbol is correctly
written back to the form page by the passed-back JS functions.

But it doesn't make it into FileMaker.

I don't think I've seen this before using FX. Have I forgotten something
basic?

-Troy


------------------------------

End of fx.php_list Digest V3 #15
********************************

Other related posts:

  • » [fx.php_list] Re: fx.php_list Digest V3 #15 - Rodney Schmidt