Stump the Panel: SharePoint Q&A

Immediate solutions for common SharePoint questions
It is currently Sun May 19, 2013 8:50 am

All times are UTC - 5 hours [ DST ]


Forum rules


What you are viewing is an archive of Stump the Panel. It remains for reference purposes. Please post all new questions on NothingButSharePoint.com
https://www.nothingbutsharepoint.com/sites/eusp/Forum



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: AJAX or Refreshing a DVWP in 2007
PostPosted: Fri May 13, 2011 2:52 pm 
Offline
User avatar

Joined: Mon Jan 04, 2010 1:15 am
Posts: 1839
Location: North Carolina
I did see I was missing a " in my script and that was cauing issues. I fixed that snafu and added an alert after the var. When I click my a link, the alert is never presented, leading me to believe that it isn't doing something right.


Top
 Profile  
 
 Post subject: Re: AJAX or Refreshing a DVWP in 2007
PostPosted: Tue May 17, 2011 10:17 pm 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group