[jQuery] jmaps - callback function problem

[jQuery] jmaps - callback function problem

I am trying to make use of the jMaps plugin <a href="http://digitalspaghetti.me.uk/2007/11/20/jmap2-beta-release-out"> http://digitalspaghetti.me.uk/2007/11/20/jmap2-beta-release-out</a> to retrieve the lat and long of an address so I can put it into a form element.
So far I have the following code, I can stop the plugin putting the
pointer on the map (by adding addMarker:false ), so at least I know
that I should be getting a variable with the point coords in it:

(function($){
        //$.fn.jMap.defaults.mapType = "sat";
        $('#map').jmap({language:"en"});
        $('#map').createMarkerManager();
        $('#map').createGeoCache();





        //console.log($.jmap);
        function searchCallBack(point){
                alert(point);
        }




        $('#addressSearch').click(function(){
                $('#map').searchAddress({
                        address: $('#fromAddress').val(),
                        cache: $.jmap.GGeoCache, addMarker:false
                },null,searchCallBack
        );
        });







<div id="qhide_15911" style="display: block;" class="qt">})(jQuery);

</div>However the callback doesnt work properly, I have also tried
$('#addressSearch').click(function(){
                $('#map').searchAddress({
                        address: $('#fromAddress').val(),
                        cache: $.jmap.GGeoCache, addMarker:false
                },null,function(point){alert(point);}
        );
but the function that is passed in is passed simply as text.

and I tried assigning the result to a variable :

$address = $('#map').searchAddress({
                        address: $('#fromAddress').val(),
                        cache: $.jmap.GGeoCache, addMarker:false
                }
but there was no love there either.





Any help great fully appreciated!

Where am I going wrong?
<br clear="all">
--
Duncan I Loxton
<a href="mailto:duncan.loxton@gmail.com">duncan.loxton@gmail.com</a>