Skip to content
Advertisement

Tag: ajax

Passing Value Including Spaces on Ajax Call

Trying to pass spaces along with ajax call. ‘word’ is been passed the same as ‘word ‘ i believe so. On the other hand two words need to be send completely with call. ‘word second’ but not the same as ‘word second ‘ Should I trim before call or do this on server side script? How can I send spaces

Detecting Ajax in PHP and making sure request was from my own website

I use my PHP back-end to detect AJAX requests by checking for a value in $_SERVER[‘HTTP_X_REQUESTED_WITH’]. This gives me a reliable detection, making sure the request is made utilizing AJAX techniques. How can I make sure the request came from my own domain, and not an external domain/robot? www.example.com/ajax?true could allow anyone to make an AJAX call and cut the

PHP session not working with JQuery Ajax?

Update, Solved: After all this I found out that I was calling an old version of my code in the update ajax. ‘boardControl.php’ instead of ‘boardUpdate.php’ These are the kinds of mistakes that make programing fun. I’m writing a browser gomoku game. I have the ajax statement that allows the player to play a piece. value = board square location

Advertisement