[fx.php_list] Re: [OFF] JQuery function question

  • From: Bob Patin <bob@xxxxxxxxx>
  • To: "FX.php Discussion List" <fx.php_list@xxxxxxxxxxxxx>
  • Date: Mon, 13 Feb 2017 09:22:24 -0600

I finally got it to work, no thanks to the guy who wrote the widget, who said 
he hadn’t worked on it in a while and wouldn’t answer a simple question.

I had named a DIV with the class "content" which was a bad idea because it 
conflicted all over the place. Once I renamed it, my code started working 
immediately. :)

B


On Feb 13, 2017, at 7:51 AM, Dale Bengston <dale.bengston@xxxxxxxxx> wrote:

Hi Bob,

I had something similar happen a while back. The date picker might not be 
triggering the change function, or might be preventing the default next 
action. I think I solved this by adding a blur() to the completion of the 
date-pick, so the field “knew” there was a change and fired the change event.

Dale


On Feb 12, 2017, 3:51 PM -0500, Bob Patin <bob@xxxxxxxxx>, wrote:
I think I need to use a callback, but don’t know how to write this:

I have a date picker widget; when you click the button, the widget opens, 
and populates my DATE field with the selected date.

I then want to use that date in a subsequent query; for test purposes, I am 
trying to just show an alert.

How do I do this:

$('#datetimepicker').datetimepicker({
pickTime: false, 
language: 'en'
});

and when this populates a field whose class = “the date” show an alert?

I tried adding this function:

$('.thedate').change(function(){ 
alert('test'); 
});

and it fires when I type into “thedate” but it doesn’t fire when the 
datepicker changes the field.

Thanks for any assistance,

Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx <mailto:bob@xxxxxxxxxxxxxxxxxxxxx>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com ;<http://www.longtermsolutions.com/>
-
iChat: bobpatin@xxxxxx <mailto:bobpatin@xxxxxx>
Twitter: bobpatin

FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting


Other related posts: