jqDialog

jqDialog

 I am using the jqDialog quite successfully but have run across a strange situation. In the following script, the button click event shows the dialog ok but the if statement does not. The alert fires but the dialog does not display. Using IE debug it complains that this.divOptions is null. I can not see any difference in the two calls. Any ideas?

            $('#btnSave').click(function() {
                $('#lblUserMessage').text('Processing request. Please wait.');
                $('#lblUserMessage').css({'color':'red', 'font-size':'125%'});
                jqDialog.notify("<BR />SAVING ENTRY DATA<BR /><BR />Please Wait.", 3);
            });
            
            if (testString.length > 0) {
                alert(testString);
                jqDialog.notify("<BR />SAVING ENTRY DATA<BR /><BR />Please Wait.", 3);          
            }

TIA,
John