I had a similar one when you tried to enter $.ajax... Aptana would insert Array(...
I found that I need to install jQuery package!
Go to the command menu> bundle development> install bundle
In the "select bundle to install" window, select jQuery and click "OK." It! You may need to restart Aptana.
Hope this helps.
source share