Faisal Sharif

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jul 29, 2021 13:37
i missed off() function
Jul 29, 2021 13:36
Hi i fixed this issue thanks :)
Jul 29, 2021 13:11
this code sends multiple or double requests on everyclick
Jul 29, 2021 13:11
   jQuery( document ).ajaxComplete(function() {
		my_fun();
	});

	function my_fun(argument) {
		jQuery('.bookable').on('click', function(event) {
			event.preventDefault();
			month = jQuery(this).data('month');
			year = jQuery(this).data('year');

			date = jQuery(this).find('font').html().match(/\d+/);
			finaldate = date[0];

			productID = '<?php echo $product_id ?>';

			$.post('/customAjax.php', {
				date: finaldate,
				month: month,
				year: year,
				productID: productID,
			}, function(data, textStatus, xhr) {
Jul 29, 2021 13:09
Hi
 

Trash can

Like the recycle bin, but trashier.
Jul 29, 2021 13:09
Hi everyone,
I am using this script on wordpress

```
jQuery( document ).ajaxComplete(function() {
my_fun();
});

function my_fun(argument) {
jQuery('.bookable').on('click', function(event) {
event.preventDefault();
month = jQuery(this).data('month');
year = jQuery(this).data('year');

date = jQuery(this).find('font').html().match(/\d+/);
finaldate = date[0];

productID = '<?php echo $product_id ?>';

$.post('/customAjax.php', {
date: finaldate,
month: month,
year: year,
productID: productID,
}, function(data, textStatus, xhr) {
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Nov 17, 2020 19:01
can anyone tell me how to get all children with in array
Nov 17, 2020 19:01
Array
(
[0] => stdClass Object
(
[slug] => home
[name] => home
[children] => Array
(
[0] => stdClass Object
(
[slug] => contact-us
[name] => Contact Us
[children] => Array
(
[0] => stdClass Object
(
[slug] => new
[name] => new
[children] => Array
(
[0] => stdClass Object
(
[slug] => km
[name] => km
)

)

)

)

)

)

)

)
Nov 17, 2020 18:16
Hey is there any one who will help me in one code ????