views:

180

answers:

0

I'm trying to use jqModal on page 1 to load the content of page 2 using ajax. It works fine, until i include jquery inside page 2: at that point, the javascript of page 1 breaks.

So, to be clear, it is adding:

 <script type="text/javascript" src="/_js/jquery-1.3.2.min.js"></script>

inside page2's head tags that breaks it all.

Any idea why, or how to avoid that? I would like page 2 to work both as a standalone page and as loaded content.

PS: here is how i call jqModal on page 1. That code works perfectly.

 $('#modalwindow').jqm({
        modal:false,
        ajax:'@href',
        trigger: 'a.modal',
        overlay:1,
        toTop: true
    });