I sent this to the new forum but it appears a lot of traffic is still
here. So to cover my bases here it is again:

 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);
            }

And to add, I do this within the .ready function. I am worried that it
may be too early since it appears the error has to do with jqDialog
being initialized and I do not know when that might happen. I only
know that if the page is displayed and I click a button it works but
if I try to display a dialog on the .ready or .load (I tried it too),
it does not work.

TIA,
John

Reply via email to