question on ThickBox
question on ThickBox
Hello friends, I know this is not a ThickBox forum, but I've seen a
couple questions about this library and besides the ThickBox forum at
codylindley.com seems to be rather unattended.
I'd like to know how to use the tb_show() function to open a ThickBox
with inline content but not after onclick event but from inside a
callback function.
I have a form where users submit a physical address to Google Maps and
it returns step by step driving instructions from the provided address
to a destination address already located in a map.
This is my callback to show the returned instructions:
GEvent.addListener(directions, "load", function() {
$("div#directions").show("slow");
$("input.getdirbtn").attr("value","Close");
$("input.getdirbtn").click(function() { hideDirections(); });
});
I'd like to replace $("div#directions").show("slow"); by a ThickBox
window to show the content of the "directions" div there. But my JS/
jQuery is limited and I can't figure out how to do it. I'll appreciate
any help on this.
Thanks a lot.