The [target] controller is " save_data ", "func" was is just a mistake I 
made

On Thursday, January 6, 2022 at 10:08:43 AM UTC+2 snide...@gmail.com wrote:

> On Tuesday, January 4, 2022 at 1:44:36 AM UTC-8 mostwanted wrote:
>
>> I tried adding this to my code
>>  
>>
>>
>>
>>
>>
>> *$.ajax({          type: "POST",          url: 
>> "https://www.sesoa.co.bw/init/default/func.html 
>> <https://www.sesoa.co.bw/init/default/func.html>",          data: 
>> JSON.stringify(subscribeOptions)       }).done(function( msg ) {          
>> console.log(msg);      });*
>>
>> when i assign *{{=URL('save_data')}}* to url: I get a 400 BAD REQUEST 
>> error
>> When i assign *"/init/default/func.html" *to url: I get a 500 INTERNAL 
>> SERVER error
>>
>> I dont know what to do anymore
>>
>
> Is your [target] controller function called "save_data"  or "func"?
>
>  For the 500 error, is a ticket generated?  If not, do you have logging 
> enabled?  500s are often the result of an exception.
>
> For the 400, what is the actual URL sent to the server?  Your front end 
> should have logged that.
>
> /dps
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/701e76bc-5be9-4843-aa00-f30abf81a929n%40googlegroups.com.

Reply via email to