|
Hey Eric, I wanted to dive more into this technique, so I figured, I'd post back my findings. I noticed on your offerings call, there were missing quotes around that ID. The script tag was also missing a quote around javascript. I think it's not working b/c of your hyperlink. After trying your hyperlink code, I took my code block and slapped it into doc.ready. This code works as is:
$.ajax({ async: false, url: "http://moss2007x86/Pages/FixedHeaderRow.aspx", complete: function (xData, Status) { alert(Status); //console.log(xData.responseText); //Hardcoded Webpart ID for accuracy var DVWPMarkup = $(xData.responseText).find("#MSOZoneCell_WebPartWPQ4").html(); $("#Output").html(DVWPMarkup); //Used to determine the ID was correct on the current page $("#Output").append("Text"); } });
Hope it helps!
|