About ajax not functiong, Anybody can help?

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?

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

Okay, i try again, Thanks

1 Like

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>

Wait for an hour and check it :slightly_smiling_face:

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

ReferenceError: $ is not defined

Add this to your code

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

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

1 Like

Glad to hear that. :slightly_smiling_face:

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

1 Like

Okay, thanks for help

1 Like