PDA

View Full Version : Issue with Dyanmic Ajax Content in SharePoint



Kevin W. Lin
08-26-2010, 05:36 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem:

I am trying to load a page located in SharePoint at /Pages/test1.aspx into another page /Pages/loadtest.aspx using the ajaxpage() call. I have copied the script over and the page loads without errors but the ajaxpage() call doesn't seem to have worked.

My code in the loadtest.aspx page looks something like this:


<script type="text/javascript">

_spBodyOnLoadFunctionNames.push("loadtest");

function loadtest()
{
ajaxpage('/Pages/test1.aspx', 'rightcolumn')
}
</script>


I was wondering whether someone has done this before and can provide perhaps some additional steps I might take to troubleshoot. Any advice would be helpful.

Thanks,
Kevin

Kevin W. Lin
08-27-2010, 02:55 PM
This post helped me resolve my issue:

http://forums.asp.net/t/1160491.aspx

Thanks,
Kevin