could you assign the data object to a global variable with the
callback event?

On Mar 30, 2:44 pm, iceangel89 <iceange...@gmail.com> wrote:
> can i want for getJSON to complete before excecuting code? cos i am
> validating my input. and i need some values from server 1st. so apart
> from putting all code that is to be executed after getJSON() inside
>
> .getJSON("url", function(json) {
>    // *** here ***
>
> });
>
> can i have it outside?
>
> and how can i access the json object outside the
>
> .getJSON("url", function(json) {});
>
> function?

Reply via email to