unexpected T_PAAMAYIM_NEKUDOTAYIM
I figured PHP had gone mad (from the coolness), but no such luck.
It means that there is an unexpected "::" double-colon in the code.
Good to know, eh?
unexpected T_PAAMAYIM_NEKUDOTAYIM
$.get( url, callback )
Once the GET request returns, callback() will be executed with the result of the GET request as the first variable.function retrieveData( url )
{
var parentArguments = arguments;
$.get( url, function( data )
{
for( var i = 1; i < parentArguments.length; i++ )
{
callback = parentArguments.i
callback( data )
}
})
}
And to actually the call the function:retrieveData( 'someurl.php', doThis, doThat )
So now you know! Its pretty simple but for beginner JS'ers its not entirely obvious.