[jQuery] $.getJSON - global scope

2006-12-19 Thread Jani Tarvainen
Hi, Just wondering whether it's possible to get the $.getJSON -generated object into local scope? Something along the lines of this: $(document).ready(function(){ createObject(); appendObject(); }); function createObject(){ $.getJSON('animal.js',function(json){

Re: [jQuery] $.getJSON - global scope

2006-12-19 Thread Jörn Zaefferer
Jani Tarvainen schrieb: Hi, Just wondering whether it's possible to get the $.getJSON -generated object into local scope? Something along the lines of this: $(document).ready(function(){ createObject(); appendObject(); }); function createObject(){

[jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Hello, i try to use the $.getJSON function to get some JSON data from my php file. The actual code looks like this: function loadArticle(id) { $.getJSON(../admin/article.php, { mode:get, id: id }, function(json){ if(console) console.log(json); else alert(json);

Re: [jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Hello again, i've now updated to jQuery 1.0.3 and get a new error (same code): / syntax error/ jquery-1.0.3.pack... (line 1) data = $.getJSON(file.php, {mode:get, id:45}, function(json) { console.log(json); } ); Firebug shows me that the GET request is going out but i get no

Re: [jQuery] $.getJSON ?

2006-11-09 Thread Mike Alsup
i've now updated to jQuery 1.0.3 and get a new error (same code): Can you post a link? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Mike Alsup schrieb: at the moment i'm just using jQuery 1.0.1. getJSON wasn't added to jQuery until ver 1.0.2. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ It's working now, don't know what the problem was.

[jQuery] $.getJSON not a function?

2006-09-29 Thread Galen Palmer
I'm using the packed jQuery library from August 31st.My script to display a list of tags is: function loadTags() { $.getJSON(tag.ajx, { id: ${ model.item.id} }, function(json){ tags = json.tags; if(tags.size() 0) { $(#tagDisplayArea).empty().append(Technorati Tags: ul); for(i = 0; i

Re: [jQuery] $.getJSON not a function?

2006-09-29 Thread Mathias Bank
.getJSON is not implemented in the public jquery version. You have to download the source from svn. Or you can use the old style: $.get(src, {data},function(json) {your code},json); My browser (Firefox) is reporting $.getJSON is not a function.

Re: [jQuery] $.getJSON not a function?

2006-09-29 Thread Bryan Buchs
There's been a lot of confusion out there as to what functions are available in which versions or plugins. Would it be possible to add that information to the API documentation? I'd like to see the version number it was added and - if it's in a plugin - in which file. .getJSON is not