I found the problem in jqDialog.js, there was an extra comma as shown
below

        this.makeCenter = function() {
                $(jqDialog.divBox).css (
                        {
                                top: ( (($(window).height() / 2) - ( 
($(jqDialog.divBox).height
()) / 2 ) )) + ($(document).scrollTop()) + 'px',
                                left: ( (($(window).width() / 2) - ( 
($(jqDialog.divBox).width
()) / 2 ) )) + ($(document).scrollLeft()) + 'px',
                        }
                );
        };

Remove the comma after the second 'px' and it is fine.

John
On Nov 21, 8:34 am, john6630 <[email protected]> wrote:
> On another post I discussed how I am usig jqDialog and it works great
> if Firefox. But when I opened the page in IE6 on Win/XP I got the
> following error:
>
> Runtime Error
> Line: 127
> Error: Expected identifier, string or number
>
> I am too new to jQuery and JavaScript to understand what need to be
> fixed. I downloaded Version 1.2.1 from the plugin site. My code is as
> follows:
>
>     <link href="CSS/AppCSS/jqdialog.css" rel="stylesheet" type="text/
> css" />
>     <script src="JavaScript/jquery-1.3.2.js" type="text/javascript"></
> script>
>     <script src="JavaScript/jqdialog.js" type="text/javascript"></
> script>
>
>         $(document).ready(function(){
>             // confirm dialog
>             $('#btnDelete').click(function() {
>                 var userName = $('#comboExistingUsers').val();
>                 jqDialog.confirm("CONFIRM DELETE <BR /><BR />Delete "
> + userName + " now, are you sure?",
>                                 function() { 
> setTimeout('__doPostBack(\'btnDelete\',\'\')',
> 0); },  // callback function for 'YES' button
>                                 function() { return false; }    // callback 
> function for 'NO'
> button
>                         );
>                 return false;
>             });
>         });
>
> Any advice how to fix this for IE?
>
> TIA,
> John

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=.


Reply via email to