On Oct 2, 10:27 am, codeas <[email protected]> wrote:
> I don't find method how to get parameters from url (for example if I
> want to get width or height). The old functions is named _args(), but
> now doesnt work _args()['w']
You should tokenize the window.location.search string.
For the URL http://www.news.com/?param1=foo&param2=bar
window.location.search will be the string "?param1=foo&param2=bar"

> 2) Does it exist equal to function: _IG_Callback(response,id)
>
> Now I am using this solution: (if I want to call some function (named:
> response) with parameter (named: id) after I get all data (from url)):
> gadgets.io.makeRequest(url, _IG_Callback(response,id), params);
It's time to use anonymous function expressions:
gadgets.io.makeRequest(url, function() {response(id)}, params);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to