Odd… I had to change the link from an A link to a DIV, and then it worked…
B
On Aug 23, 2016, at 11:03 AM, Andrew Denman <adenman@xxxxxxxx> wrote:
It works for me. (my favorite words…) <>
Did you already get it figured out?
Andrew Denman
From: fx.php_list-bounce@xxxxxxxxxxxxx
[mailto:fx.php_list-bounce@xxxxxxxxxxxxx] On Behalf Of Bob Patin
Sent: Tuesday, August 23, 2016 10:06 AM
To: fx.php_list@xxxxxxxxxxxxx
Subject: [fx.php_list] [OFF] JQuery basic dialog issue...
I’m trying to use a basic JQuery dialog; here’s the demo code that they
provided:
<script>
$( function() {
$( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "fade",
duration: 300
},
hide: {
effect: "explode",
duration: 300
}
});
$( "#opener" ).on( "click", function() {
$( "#dialog" ).dialog( "open" );
});
$( ".opener" ).on( "click", function() {
alert('test');
$( "#dialog" ).dialog( "open" );
});
});
</script>
<button id=“opener”>Click Me</button>
<div id="dialog" title="Basic dialog">
<p>This is a test dialog</p>
</div>
OK, so far so good; if you click the button, the dialog appears.
BUT…
I have a page that displays a large table of class schedules; every entry
shares the class “opener” so I should be able to use the 2nd code
$( ".opener" ).on( "click", function() {
alert('test');
$( "#dialog" ).dialog( "open" );
});
to open the dialog. I see the alert, but I never see the dialog.
I also tried using this:
$( ".opener" ).click(function() {
alert('test');
$( "#dialog" ).dialog( "open" );
});
Doesn’t work…
You can see the page here:
https://recreate.longtermsolutions.com/classes.php ;
<https://recreate.longtermsolutions.com/classes.php>
Anyone have an idea what I’m missing?
Thanks,
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