Welcome Guest, Not a member yet? Register   Sign In
Redirect within controller
#1

Hello!

I found a chatbot to add to my site and it works but the issue is that it redirects to my landing page (which was the original welcome message page). Im believe I have to change something within the contoller but dont know where. Trying to fix it that when I hit submit instead  of going to another page the comment/words are in the message board. Here is the git Im using:

https://github.com/afiefsky/chatapp-codeigniter-ajax

Where do I make the change?

Heart Heart ,
Mekaboo
Reply
#2

(06-19-2019, 12:18 PM)Mekaboo Wrote: Hello!

I found a chatbot to add to my site and it works but the issue is that it redirects to my landing page (which was the original welcome message page). Im believe I have to change something within the contoller but dont know where. Trying to fix it that when I hit submit instead  of going to another page the comment/words are in the message board. Here is the git Im using:

https://github.com/afiefsky/chatapp-codeigniter-ajax

Where do I make the change?

Heart Heart ,
Mekaboo

I'm not sure, but if this chatbot uses ajax, then it should not reload the page ... if it does it, then you probably don’t have this: "event.preventDefault ();", and also in the tag "<form > ", you need to change the action =" Link "attribute to an empty value.
Reply
#3

(06-19-2019, 12:33 PM)Digital_Wolf Wrote:
(06-19-2019, 12:18 PM)Mekaboo Wrote: Hello!

I found a chatbot to add to my site and it works but the issue is that it redirects to my landing page (which was the original welcome message page). Im believe I have to change something within the contoller but dont know where. Trying to fix it that when I hit submit instead  of going to another page the comment/words are in the message board. Here is the git Im using:

https://github.com/afiefsky/chatapp-codeigniter-ajax

Where do I make the change?

Heart Heart ,
Mekaboo

I'm not sure, but if this chatbot uses ajax, then it should not reload the page ... if it does it, then you probably don’t have this: "event.preventDefault ();", and also in the tag "<form > ", you need to change the action =" Link "attribute to an empty value.

Thanks so very much Heart

Question: would I place the event, with the controller of view?
Reply
#4

(This post was last modified: 06-21-2019, 07:29 AM by Digital_Wolf.)

(06-20-2019, 12:00 PM)Mekaboo Wrote: Thanks so very much Heart

Question: would I place the event, with the controller of view?

I don't know if you'll place this event or not...

P.S.: Or I not so understood you, sorry but I not know English on all 100%
Reply
#5

Here is another chat system for CodeIgniter I found today.

Facebook-like chat - Using CodeIgniter

A facebook-like chat implemented with using jQuery and CodeIgniter.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(06-21-2019, 07:28 AM)Digital_Wolf Wrote:
(06-20-2019, 12:00 PM)Mekaboo Wrote: Thanks so very much Heart

Question: would I place the event, with the controller of view?

I don't know if you'll place this event or not...

P.S.: Or I not so understood you, sorry but I not know English on all 100%
Sorry about that, no worries Heart
Reply
#7

(06-21-2019, 08:14 AM)InsiteFX Wrote: Here is another chat system for CodeIgniter I found today.

Facebook-like chat - Using CodeIgniter

A facebook-like chat implemented with using jQuery and CodeIgniter.

Thanks a bunches, I will check this out for sure Heart
Reply




Theme © iAndrew 2016 - Forum software by © MyBB