Welcome Guest, Not a member yet? Register   Sign In
Can't read form values
#51

(07-22-2017, 09:45 AM)Junie Wrote:
(07-22-2017, 09:35 AM)Paradinight Wrote:
add_person is not called in you code

Yes, because I don't wan't to use the modal. I think that's what I missed.

you save method is wrong. you call the wrong url.

Because the url variable is empty, you send to the wrong controller.
Reply
#52

(07-22-2017, 09:49 AM)Paradinight Wrote: you save method is wrong. you call the wrong url.

Because the url variable is empty, you send to the wrong controller.

Sir,

When I try to add this line to the save function save_method = 'add';. Still, it doesn't work out. Why is that? I tried the developer's console using Firefox. see the screenshot below

Attached Files Thumbnail(s)
   
Reply
#53

(07-22-2017, 07:38 PM)Junie Wrote:
(07-22-2017, 09:49 AM)Paradinight Wrote: you save method is wrong. you call the wrong url.

Because the url variable is empty, you send to the wrong controller.

Sir,

When I try to add this line to the save function save_method = 'add';. Still, it doesn't work out. Why is that? I tried the developer's console using Firefox. see the screenshot below

3 request. 2 have a 500er.

Did you press the button 3 times? Can you show me the headers?
Reply
#54

(This post was last modified: 07-25-2017, 04:22 AM by Junie.)

Sir,
When I add this line of code save_method = 'add'; into the save function. See the 1st screenshot & without that line of code 2nd screenshot.

Attached Files Thumbnail(s)
       
Reply
#55

(07-25-2017, 04:20 AM)Junie Wrote: Sir,
When I add this line of code save_method = 'add'; into the save function. See the 1st screenshot & without that line of code 2nd screenshot.

2. screen has a wrong url and 1. screen the correct url


can you show the full request header and the preview from the first screen?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB