jqmodal, ajax mode: the loaded content breaks the receiving page scripts

jqmodal, ajax mode: the loaded content breaks the receiving page scripts


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 this line in page2's head tags that breaks it all.:

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

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.


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