Im trying to create a sliding popup using jQuery in my drupal module .
Referring the code from:
http://karlagius.com/2009/02/08/creating-a-sitepoint-like-sliding-popup-in-jquery/
My popup window, defined in the module, is a html string (using divs, a, img etc) .
How do I pass this html string to .js file. It gets used there in .get(url, function(data)).
Tried using drupal_to_js and drupal_json, both returns the value 0, not the string.
Need some suggestion on how to proceed.