PS: Im loaing jQuery mini 1.8 from jquery website.
__________________
My website is here: http://www.moowdesign.eu/. It is not complete yet, and I want to add language translations for some languages(including english).
Do you mean to go back one directory/folder and then access a sub-folder called "ajax"?
If the URL is the only argument, remove the comma after test.php',
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
You tried to return something from your "outer" function test(), but instead you only return something from the "inner" anonymous closure function.
General rule: Every action that depends on the outcome of an asynchronous method must be run inside the callback of that method or must be called from that callback. Returning anything doesn't make any sense because at the time the callback is run, the outer function has already finished.
PS: removing that comma after test.php' did not affect anything
__________________
My website is here: http://www.moowdesign.eu/. It is not complete yet, and I want to add language translations for some languages(including english).
and what with the return code? how can I return the data?
__________________
My website is here: http://www.moowdesign.eu/. It is not complete yet, and I want to add language translations for some languages(including english).
You didn't get me ... technically you can return something from each and every function, but semantically it doesn't make any sense to return something from the callback of an asynchronous method because it will end up "in thin air". The calling method has long finished before the callback is executed so you cannot return anything from it.
So:
Quote:
General rule: Every action that depends on the outcome of an asynchronous method must be run inside the callback of that method or must be called from that callback. Returning anything doesn't make any sense because at the time the callback is run, the outer function has already finished.
In other words, I don't think you can "return" anything for the alert.. now you should be able to put the alert inside the callback function. Or, alternatively, create a div, give it an id, and use .html() to place the data in it.
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".