Load an action which is in an url with Jquery

$.load() is used to load content into an element. And you need to send a ping/request to a url, don’t need to use what is returned/responded. So, $.post() or $.get() the the solution for this. $.get(”, ‘wpfpaction=add&postid=350’); Usage With the current post id – $.get(”, ‘wpfpaction=add&postid=<?php the_ID(); ?>’); To dynamically add it from functions.php, you … Read more

Why won’t the Jquery validation plugin work?

You are mixing PHP and Javascript. The part between <script> must not be in the PHP code, but you could put it in the variable just after </form>. Another way of doing it would be to create a Javascript file myfunctions.js, putting the code into it and enqueueing it. The code would be: add_action( ‘wp_enqueue_script’, … Read more

Using Jquery submit with ajax request

That error was identified by stackoverflow – it’s actually caused by Rapport software, a security tool some banks recommend. You could turn it off / remove it from development machines.

How to add external remote JS source to Gravity Forms?

I think you’re looking for gform_enqueue_scripts which is simply a Gravity Forms specific version of the wp_enqueue_scripts hook. Either hook uses the wp_enqueue_script() function. That function can take a local script—usually using get_template_directory_uri() (theme), get_stylesheet_directory_uri() child theme), or plugins_url() (plugin) to reference the file location—or an external location like what you’re trying to do. You’d … Read more

Save jQuery UI Sortable on WordPress

if you use the stop function when you intialise .sortable() you can ajax send the new order to a script, which (when you write it!) would save the new order to the database. jQuery(function(){ jQuery(“#sortable”).sortable({ stop: function (event, ui) { var new_order = jQuery(this).sortable(‘serialize’); jQuery.post( “http://www.thissite.com/wp-admin/ajax.php”, { action: my_custom_ajax_save, order: new_order }, function( data ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)