Hi,

Can anyone please tell me how to solve this. I was using the latest version
of JQModal (I think it was 10) and I upgraded to 11. After that, the page
was being pushed down when I did jqmOpen(). So, I reverted back to version 9
which was listed as the most recent "old version".

The problem is, now when I try to close a window with jqmClose() or just
assigning the class jqmClose to an element,  I get an indication that there
is an error on this line (in Firebug): 

 // attempt utilization of dimensions plugin to fix IE 
if(E.css('position') != 'relative'){try{E.position(p);}catch(e){}}

It doesn't tell me what the error is. I just get an arrow on the line with
the code highlighted (which tells me something is wrong there). I have tried
everything I could think of, to solve this but nothing has worked. It was
working before I tried to upgrade (and I will be very careful regarding that
in the future).

I have tried removing the dimensions plugin, including it, changing position
to all three types and removing the positioning completely; and, a few other
things. 

Another problems is, when I tell the script to run regardless of the error,
it closes the dialog and won't let me open it again. 

Here is the structure of the window (with useless stuff omitted)

<!----------------------- New Question Window
-------------------------------------------------------------------->
<div id='new_question'   class="jqmWindow" >
        <form id='new_question_form' name='new_question_form' onSubmit="return
saveQuestion();"
        onreset="return resetQuestion();">
        <div class='new_question_header jqmnTitle jqDrag' 
id='new_question_header'>
                <table width="100%">
                        <Tr>
                                <td width="98%" align="left" 
style="padding-left: 5px;"> Title </td>
                                <td nowrap="true" align="right">  # X </td>
                        </tr>
                </table>
        </div>
       // -- useless code erased
        </form>
</div>

Here is the CSS:

.jqmWindow {
    display: none;
    
    position: absolute;
    top: 17%;
    left: 50%;
    margin-left: -300px;
    width: 450px;
    height: 400px;
    
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #0098bc;
    padding: 0px;
}

I copied everything else from JQModal's site.


Please let me know if you need more information and I will be more than
happy to provide it.

Thanks in advance, 
Moazzam
-- 
View this message in context: 
http://www.nabble.com/JQModal-errors-out-when-closing-a-dialog-tf4953042s27240.html#a14183244
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to