Welcome Guest, Not a member yet? Register   Sign In
How to Submit textarea comment on Enter key?
#12

[eluser]Prullenbak[/eluser]
Quote:If so, the reason that you’re not seeing any new data on the page (even though it was successfully inserted into your database) is because using the $this->load->view just reloads the same view you had before the DB insert.

That's true, but he should see a change in the address bar, since the form submit (with the regular submit button) sends him to the url comment/addComment. From the code that's visible here, The view with the form is not loaded in that same function, so this form submission will be visible in the address bar.

Otherwise, this would mean the form is broken (i.e. the submit button also doesn't work)
and the problem is not in the jQuery after all Smile



Messages In This Thread
How to Submit textarea comment on Enter key? - by El Forum - 01-08-2013, 08:25 PM
How to Submit textarea comment on Enter key? - by El Forum - 01-08-2013, 11:16 PM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 03:16 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 04:55 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 08:00 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 08:08 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 08:40 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 08:46 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-09-2013, 09:29 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-10-2013, 12:57 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-10-2013, 04:16 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-10-2013, 05:57 AM
How to Submit textarea comment on Enter key? - by El Forum - 01-10-2013, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB