I've been struggling with this problem for several days now and it's
getting very frustrating.

My weather gadget:
http://www.google.com/ig/directory?hl=en&type=gadgets&url=weareronin.com/weather/ggXml

Direct Access to the gadget with no parameters (default settings):
http://weareronin.com/weather

My XML schema:
http://weareronin.com/weather/ggXml

My Problem:
iGoogle and Blogspot are sending invalid query strings to my
application by not encoding the "parent" parameter (same problem
explained here:
http://groups.google.com/group/Google-Gadgets-API/browse_thread/thread/0465d58043e14137
(Unfortunately his solution won't work for me because I actually need
the query parameters to control my applications behavior ... stripping
out the entire query string just puts me back at square one.)

Scenario:
A user edits settings to define the following:
myLocation: 10013 ( <-- New York )
lock_lockation: true
theme: shiny
size: standard

This would set a static location of 10013 (myLocation), disable the
location input (lock_location) and increase all the font-sizes and
icons to the "Standard" theme size.

Here's what it should look like with those parameters passed in a
valid query string:
http://weareronin.com/weather?up_myLocation=10013&up_lock_location=1&up_theme_name=shiny&up_theme_size=standard

Here's the URI coming from iGoogle:
http://weareronin.com/weather?up_myLocation=10036&up_lock_location=1&up_theme_name=shiny&up_theme_size=standard&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=134&ifpctok=12724538883523197&parent=http://www.google.com&libs=ym08_a6-PFQ/lib/libcore.js,MJLTofH-Kpk/lib/libsetprefs.js&extern_js=/extern_js/f/CgJlbhICdXMrMAo4ACwrMBI4ACwrMBM4ACw/8t56n9W6cwo.js&view=home

Here the bad (not encoded) part of the query string:
parent=http://www.google.com

And here's how the gadget looks with the offending string stripped
out:
http://weareronin.com/weather?up_myLocation=10036&up_lock_location=1&up_theme_name=shiny&up_theme_size=standard&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=134&ifpctok=12724538883523197&libs=ym08_a6-PFQ/lib/libcore.js,MJLTofH-Kpk/lib/libsetprefs.js&extern_js=/extern_js/f/CgJlbhICdXMrMAo4ACwrMBI4ACwrMBM4ACw/8t56n9W6cwo.js&view=home

Anyone have any ideas?

--~--~---------~--~----~------------~-------~--~----~
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