• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: $(document).ready doesn't work on IE and iOS8

$(document).ready doesn't work on IE and iOS8 8 years 8 months ago #35729

Hello,
I have a problem with this jQuery code I have added on my form

jQuery(document).ready(function(){ // we wait until DOM is ready
jQuery('#search').click(function(){ // we bind a function when clicking the button we added earlier

origin = jQuery('#gmap1').val(); // we grab the value from the first googlemap
origin = origin.replace(/\s+/g, '+'); // remove white spaces
origin = origin.replace(/,/g , ""); // remove commas
destination = jQuery('#gmap2').val(); // we grab the value from the second googlemap
destination = destination.replace(/\s+/g, '+'); // remove white spaces
destination = destination.replace(/,/g , ""); // remove commas

var passagers = jQuery('#passagers').val();


jQuery.ajax({ // we build the AJAX request
type:"POST",
url:"index.php?option=com_rsform&formId=11&action=ajax", // Due to Cross Origin Request Blocks we need to call it sever side (this is the reason why we created the PHP script called on form display ) please make sure you use the correct formId (the ID of this form)
data: {origin, destination}, // we send the origin and destination information to the script we already crated
success: function(results) {

//Mycode...

}

}

});

});

})

</script>

This code works perfectly except on internet explorer and safari on iOS8 where the event doesn't work.

I have added this code in my head section <script src="ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>; but it doesn't works too.

Any idea?

Thank you
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!