hi, i want to render an address like "/arealist?tg_format=json&city=1"
in JS.

here's my original code:
d = loadJSONDoc('/arealist?tg_format=json&city='+$('address_city'));

but this way will get a not well-formed traceback, so i must use
tg.url.
my problem is how to combine JS variable with ${tg.url()} like:

d = loadJSONDoc(${tg.url('/arealist', tg_format='json',
'city'=$('address_city'))})

of course this doesn't work. any ideas? thanks


PS. $(id) is provided by MochiKit.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to