39
rated 0 times
[
43]
[
4]
/ answers: 1 / hits: 15862
/ 15 Years ago, wed, january 6, 2010, 12:00:00
I'm sure I've seen some examples of this in jquery. But for me, the following code does not work. The firebug debugger tells me that: 'Location is undefined'. Could you tell me if this is possible?
function ResolveGeoCode() {
var Location;
Location.Ad1 = Hello ;
Location.Ad2 = World;
return Location;
}
var loc = ResolveGeoCode();
var String1 = loc.Ad1; //This contains Hello ?
var String2 = loc.Ad2; //This contains World?
Could a name be given to this type of feature I'm looking for?
Thanks.
More From » javascript