(Because a (Define) My php file shows a second line). It will have like OK+a empty line
So I would like to make my check so it's like not if responde = OK
but if response contains OK
Full code: http://meepbeta.tk/hotel/minified.js
The line I'm talking about:
var b=d.responseText;if(b=="OK"){saved=true;if(!a){var a="http://sunniedaynl.net/client"}showResult('<img src="dissi-editor.png" style="float: left;padding-left: 25px;"><strong>
Won't work:
Is there any way to make it like
if(b.Contains("OK")) //<--- This doesnt work
It doesn't work because of the second line
This is the script it checks:
function sendMap(){var a=getExport();asyncAjax("POST","check.php","gamemap="+a+"&doorx="+doorX+"&doory="+doorY,doChecks,{}
Then, it checks for the OK
b=d.responseText;if(b=="OK"){saved=true;if(!a){var a="sunniedaynl.net/client";}showResult('<img src="dissi-edit
But I want it to check for something that contains OK not just check if the whole text is OK, so it'd even detect it if it was like OKay32r34.