Accept Changes to Webgrid in IFrame

2 replies. Last post: July 16, 2010 10:17 AM by John Thompson
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I am trying to AcceptAllChanges to a WebGrid inside an IFrame, but have not been able to figure out how to get the webgrid to  accept the changes (ISGetObject("WebGrid2"))

Below is my code, then line

var grid2 = form.ISGetObject("WebGrid2");

does not work, Can anyone help me?

 

 

var iframeEl = document.getElementById('IStops'); if (iframeEl != null) { if (iframeEl.contentDocument) { // DOM var form = iframeEl.contentDocument.getElementById('IStopsFrm'); } else if (iframeEl.contentWindow) { // IE win var form = iframeEl.contentWindow.document.getElementById('IStopsFrm');

}

if (form != null) { if (form.hdtoSaveData != null) { var grid2 = form.ISGetObject("WebGrid2");

grid2.AcceptAllChanges();

form.hdtoSaveData.value =
"PageClosed";

form.submit();

}

}

}

All times are GMT -5. The time now is 10:39 PM.
Previous Next