jquery dialog fails to load mvc view

jquery dialog fails to load mvc view

I have an ASP.NET MVC4 view that leverages knockout 2.2.  If I load the view direcftly everything works fine.  When I try to load it via jquery dialog load() I get an error related to the knockout bindings associated with the view already loaded, in other words the source view that handles the click event.

I've read a lot about loading partial views but I haven't found out why a full view isn't able to load.  Also, I suspect script files are not loading as I don't think document.ready ever fires when loading the view in the dialog.


Here's the script that loads the view

$(function () {

$('#tradedialog').dialog({

autoOpen: falsee

width: 400,

resizable: true,

title: 'TRADE',

modal: true,

open: function(event, ui) {

$(this).load('Trade');

//$(this).load('@Url.Action("Trade")');


Appreciate some help resolving this.  Is there a sample loading a full view using knockout?

Tim