Skip to main content
Bob's user avatar
Bob's user avatar
Bob's user avatar
Bob
Unregistered
  • Member for 10 years, 8 months
  • Last seen more than 10 years ago
awarded
awarded
awarded
awarded
comment
Ajaxurl suddenly not defined
Strangely enough I managed to fix it by changing 'url: ajaxurl' to 'url: myAjax.ajaxurl' ... Thanks for the help though peeps
revised
Ajaxurl suddenly not defined
added 1295 characters in body
Loading…
comment
Handling an Ajax form submit
I followed a basic tutorial on using ajax posts in wordpress, would preventDefault work better?
asked
Loading…
comment
Handling an Ajax form submit
I'm using Chrome? Just for interest sake tried to put in a query in the submit_data function to insert some random data into the db table and it didnt run. There can't be any errors with the query as I tested it elsewhere in the script
comment
Handling an Ajax form submit
@RRikesh I just did, what am I looking for though?
comment
Handling an Ajax form submit
@Howdy_McGee Oh, I see what you are saying.
awarded
comment
Handling an Ajax form submit
Posted the full jquery function
revised
Handling an Ajax form submit
added 1184 characters in body
Loading…
comment
Handling an Ajax form submit
Tried dropping the link but still no luck, still get no Hello alert from the submit_data function
comment
Handling an Ajax form submit
My jQuery does actually wait for a button click event, thats why I set the class of the link to button. I used a link because of a tutorial I read which was using links wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpr‌​ess
comment
Handling an Ajax form submit
If I use a click handler though then it doesn't seem to run the submit_data function as I get no Hello alert? I pass the data in the ajax call through the info: info line I think
asked
Loading…