Created
October 6, 2010 19:40
-
-
Save olvap/613940 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code | |
var win=0; | |
var mygrid; | |
var col; | |
function columns(url){ | |
$.getJSON("/provincias.json", function(data) { | |
col = ["id","nombre"]; | |
}); | |
alert(col); | |
return ["id","name"]; | |
}; | |
$(function(){ | |
columns("/provincias.json") | |
}); | |
// problem. the col var in alert(col) always are undifened |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment