AronChan
AronChan

Reputation: 245

Cant combine PHPfreechat and Jquery

Im trying to implement an onscreen jquery keyboard into my PHPfreechat client.

Everything works fine except when i try to link to the jquery script file. then the chat wont load.

im loading the jquery from my CDN but i have also tried local.

if i create a blank page with the jquery and keyboard scripts everything works fine.

not sure why this is blocking for the rest of the scripts and php on my chat.

any suggestions?

edit: furthermore i have also tried moving the load of the script files from top to bottom of the other scripts. if i load the jquery at the end of my scripts the keyboard works but the chat wont load. if i load it at the start the keyboard doesnt load but the chat works

Upvotes: 0

Views: 389

Answers (2)

kerphi
kerphi

Reputation: 81

Have a look to phpfreechat v2 it has been recoded from scratch and it uses JQuery instead of Prototype client side. The client is a JQuery plugin, here is the code: https://github.com/kerphi/phpfreechat/tree/master/client

Upvotes: 0

Leon
Leon

Reputation: 4532

php is running on the server, so I doubt the jquery include is causing anything over there. I would suggest running your web in GoogleChrome or FireBug to see what's the actual error showing up in the Error Console, that will help your further!!

UPDATE:

seems you are mixing Prototype AND jQuery at the same page - there are some known issues with that, and even a solution, but personally I'd try to stick to only one js library to avoid any conflicts (so either Prototype OR jQuery)

Upvotes: 1

Related Questions