About ajax not functiong, Anybody can help?


#1

Is that ajax not supported by 000webhost?
Site:
http://ukwai1203.000webhostapp.com/fyp/display_feedback_franchisor.php

This js code not function and i dont know why, anybody can help?


#2

Ajax is supported by 000webhost, should be some ajax coding mistakes.


#3

Okay, i try again, Thanks


#4

That might help
Replace

data:'request='+value,

With

data{request:value},

So you can get the value using

$_POST['request'];

I believe you should include this jquery library too
http://cksoftwares.com/beta/js/jquery-1.12.4-jquery.min.js
Just copy the code in it, save it in a file called jquery-1.12.4-jquery.min.js and link it

<script src="jquery-1.12.4-jquery.min.js"></script>

#6

Wait for an hour and check it :slightly_smiling_face:


#7

Open your browser JavaScript console, it doesn’t look like jQuery is loaded:

ReferenceError: $ is not defined


#8

Add this to your code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

#9

Thanks everyone, look like is not add the jquery in it, now its work


#10

Glad to hear that. :slightly_smiling_face:

If you have any other question feel free to open new topic :wink:


#11

Okay, thanks for help