Sliding Popup in Drupal 6 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.
You need


a hook_menu() implementation that will provide you with the url: 
a page callback funtion that does print() or echo on the html snippet, then exit(). So no drupal_to_js() or drupal_json().