I'm trying to load the However, in my When I see the result as .aspx page using jquery like this; <('click', 'li', function (e) {e.prevent default (); var div = $ ('# content.container -fluid .row-fluid .span12'); var Url = $ (this) .attr ('href'); setTimeout (function) {var html page = div.load (url + '#MainContentHolder', function) // other stuff});}, 1000);}) ;
.aspx page, javascript is embedded in this way;
& lt; Div id = "MainContentHolder" & gt; & Lt; H1 & gt; Test ASPX content & lt; / H1> & Lt; Div & gt; & Lt; Script type = "text / javascript" & gt; Warning ("Hello"); & Lt; / Script & gt; & Lt; / Div & gt; & Lt; / Div
HTML , I can see it (using firebug). But this is not showing the
warning () message - I have read all other questions on
stackoverflow but this is not useful for me;
Update: As suggested, the following code works only for the first time. I tried to turn off the
cache: incorrect and
received to
POST ; Ajax ({url: url, success: function (data)} {div.html (data);}});
$ ('ul # menu li ul.collapse') ('Click', 'li', function (e) {eprovint default (); var div = $ ('# content .container-fluid .row-fluid .panpan'); var url = $ (this) Attr ('href'); setTimeout (function () {$ .ajax ({url: url, success: function (data) {div.html (data); // other stuff}});}, 1000);} );
No comments:
Post a Comment