Welcome Guest, Not a member yet? Register   Sign In
Error 'Can't find a route for GET' on Ajax POST
#7

I think you want the JavaScript to look like this:

PHP Code:
    $.ajax({
      urlsiteurl "produk/" method "Produk",
      method"POST"

'method' not 'type'. I'm not sure if POST needs to be all caps or not but that's what I'm using.
Hope that helps.
Reply


Messages In This Thread
RE: Error 'Can't find a route for GET' on Ajax POST - by sheilaf - 09-22-2023, 06:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB