Server side, you can send back a json encoded variable like so.
Server side, you can send back a json encoded variable like so. Echo json_encode( array('text_color', 'green') ); Then, on the client side, you can access this variable in the callback function. $.
Ajax({ url: 'ajax/test. Html', dataType: 'json', data: $('yourform').serialize(), success: function(data) { var color = data. Text_color; $('yourElement').
Css('color', color); } }); Alternatively you could send back a class and add that class to the element.
If you are using jQuery, you would send the data via AJAX (post/get) and then you would get the response from server script in plain text / json / xml format (your choice). In this case, if you need to return only color code, you can use plain text format. When you get the response, you can manipulate the data.
$. Post("test. Php", $('#form').serialize(), function(returned_data_from_server_script) { $('some dom for color').
Css('color', returned_data_from_server_script); }).
– ihtus Jan 5 at 17:41 you only need to return actual data that will be manipulated, in your case it's color (e.g. Server script will return #000). And then with that data you can do whatever you want, in your case you would manipulate some DOM. Check the code example - there is a callback in all jquery ajax methods that has returned data.
– Aurelijus Valeiša Jan 5 at 17:49.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.