FINAL UPDATE: FIXED!
I have literally no idea what this had to do with the problem whatsoever but apparently due to coding of my main file it changed <form action='something.php'>
to <form action='something.php#12'>
. "#12" then appeared at the end of my URL and somehow successfully caused the networking settings to act weirdly. After filtering this character from the URL, everything seems to be alright.
Any idea how in the literal hell could this break jQuery's $.get? o.O
Anyway, it works now. Thanks so much for help guys! :)
I know I'm noobish as hell but anyway.
I have a PHP code, and the thing I'm having problem with is launching a script (in this case liking a status) without reloading the page. I have solved that with a simple onClick() that after clicking executes a jQuery $.get command.
My problem is that sometimes the script executes, sometimes not! I've got no idea why! I have tried all possible methods of debugging yet nothing helps. This is really weird!
echo "<a onclick=\"$.get('like.php?trackid=$rowtracks[trackid]'); return false\">Give a ♥</a>";
Please excuse me for any stupid mistakes I may have made, I mostly need to fix the main problem.
Even when I tried to copy the Javascript code to the Chrome console, it sometimes works sometimes not ._. What the hell?
UPDATE: In the network tab of the Chrome debug system, I can see "Method: GET | Status: Pending" "1 requests | 0B transferred" instead of "Method: GET | Status: 200 OK" "1 requests | 540B transferred" ... so sometimes it gets reply whilst sometimes it doesn't. Any help?